ium_434704/Jenkinsfile_train
Wojciech Jarmosz 8f8ff28633
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
Add invoking train from create-stats job
2021-05-13 23:40:39 +02:00

31 lines
909 B
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
string(name: 'options', description: 'Trainig script options')
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build', name: 'BUILD_SELECTOR')
}
stages {
stage("Copy artifacts"){
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage("Run training"){
steps {
sh "python3 training.py ${params.options}"
}
}
stage('Save trained model files') {
steps{
archiveArtifacts 'linear_regression/**'
}
}
}
post {
always {
mail body: "${currentBuild.currentResult}", subject: 's434704', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}