33 lines
850 B
Plaintext
33 lines
850 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')
|
|
sh 'python3 lab06_training.py'
|
|
sh 'ls -l'
|
|
sh 'pwd'
|
|
|
|
}
|
|
}
|
|
|
|
stage('Archive artifacts') {
|
|
steps{
|
|
archiveArtifacts 'model_movies/saved_model.pb'
|
|
}
|
|
}
|
|
stage('Send notification'){
|
|
steps{
|
|
emailext body: currentBuild.result ?: 'SUCCESS +1 YEA',
|
|
subject: 's43705',
|
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
}
|
|
}
|
|
} |