2021-05-10 19:36:19 +02:00
|
|
|
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: 's434804-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('training') {
|
|
|
|
steps {
|
2021-05-23 15:19:02 +02:00
|
|
|
sh 'chmod +x tensor.py'
|
|
|
|
sh 'python3 tensor.py'
|
2021-05-23 15:03:51 +02:00
|
|
|
sh 'rm -rf country_vaccination'
|
2021-05-23 14:20:16 +02:00
|
|
|
sh 'chmod +x mlflow_model.py'
|
2021-05-23 17:51:10 +02:00
|
|
|
sh 'python3 mlflow_model.py'
|
|
|
|
sh "export MLFLOW_TRACKING_URI=http://172.17.0.1:5000"
|
2021-05-23 14:20:16 +02:00
|
|
|
sh 'python3 mlflow_model.py'
|
2021-05-10 19:36:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('archiveArtifacts') {
|
|
|
|
steps{
|
|
|
|
archiveArtifacts 'vaccines_model/saved_model.pb'
|
2021-05-23 14:31:25 +02:00
|
|
|
archiveArtifacts 'country_vaccination/**'
|
2021-05-10 19:36:19 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('sendMail') {
|
|
|
|
steps{
|
|
|
|
emailext body: currentBuild.result ?: 'TRAINING SUCCESS',
|
|
|
|
subject: 's434804',
|
|
|
|
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|