ium_430705/Jenkinsfile_training
Michał Zaręba 0f0e566026
Some checks failed
s430705-training/pipeline/head There was a failure building this commit
Zaktualizuj 'Jenkinsfile_training'
2021-05-07 23:55:30 +02:00

35 lines
859 B
Plaintext

pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
stages {
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's430705-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('run script') {
steps{
sh 'python3 lab06_training.py'
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'model_movies'
}
}
stage('Send notification'){
steps{
emailext body: currentBuild.result ?: 'SUCCESS +1 YEA',
subject: 's43705',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}