2021-05-13 22:20:25 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker { image 'jarmosz/ium:1.1' }
|
|
|
|
}
|
|
|
|
parameters {
|
|
|
|
string(name: 'optioms', 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"){
|
2021-05-13 22:43:26 +02:00
|
|
|
steps {
|
|
|
|
sh "python3 training.py ${params.options}"
|
|
|
|
}
|
2021-05-13 22:20:25 +02:00
|
|
|
}
|
|
|
|
stage('Save trained model files') {
|
|
|
|
steps{
|
|
|
|
archiveArtifacts 'linear_regression/**'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always {
|
2021-05-13 22:43:26 +02:00
|
|
|
mail body: "${currentBuild.currentResult}", subject: 's434704', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
2021-05-13 22:20:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|