ium_434704/Jenkinsfile_train
Wojciech Jarmosz f1083d4e7a
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
Add evaluation
2021-05-14 04:01:11 +02:00

37 lines
1.2 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
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: "TRAINING - ${currentBuild.currentResult}", subject: 's434704', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
success {
build job: 's434704-evaluation/master', parameters: [
string(name: 'branchName', value: "${params.BRANCH}")
], wait: false
}
}
}