ium_434804/Jenkisfile_train
Dawid d566b3869a
Some checks failed
s434804-training/pipeline/head There was a failure building this commit
added Jenkinsfile_train and model saving
2021-05-10 19:36:19 +02:00

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