ium_434804/Jenkisfile_train
Dawid f7515627a5
All checks were successful
s434804-training/pipeline/head This commit looks good
Fix overwrite model in train
2021-05-23 15:03:51 +02:00

39 lines
1.1 KiB
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: 's434804-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('training') {
steps {
//sh 'chmod +x tensor.py'
//sh 'python3 tensor.py'
sh 'rm -rf country_vaccination'
sh 'chmod +x mlflow_model.py'
sh 'python3 mlflow_model.py'
}
}
stage('archiveArtifacts') {
steps{
archiveArtifacts 'vaccines_model/saved_model.pb'
archiveArtifacts 'country_vaccination/**'
}
}
stage('sendMail') {
steps{
emailext body: currentBuild.result ?: 'TRAINING SUCCESS',
subject: 's434804',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}
}