2022-04-27 19:49:15 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2022-04-27 21:25:40 +02:00
|
|
|
parameters {
|
|
|
|
string(
|
2022-05-01 19:57:17 +02:00
|
|
|
defaultValue: '5',
|
2022-04-27 21:25:40 +02:00
|
|
|
description: 'learning iterations',
|
|
|
|
name: 'epoch'
|
|
|
|
)
|
|
|
|
}
|
2022-04-27 19:49:15 +02:00
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts filter: 'data.csv', fingerprintArtifacts: true, projectName: 's444386-create-dataset', selector: lastSuccessful()
|
2022-04-27 19:54:10 +02:00
|
|
|
sh 'chmod u+x ./biblioteki_dl.py'
|
2022-04-27 21:25:40 +02:00
|
|
|
sh 'python3 biblioteki_dl.py $epoch'
|
2022-04-27 20:06:38 +02:00
|
|
|
sh 'tar -czf model.tar.gz model/'
|
|
|
|
archiveArtifacts 'model.tar.gz'
|
2022-04-27 21:06:37 +02:00
|
|
|
archiveArtifacts 'xtest.csv'
|
|
|
|
archiveArtifacts 'ytest.csv'
|
2022-04-27 19:49:15 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-28 19:33:58 +02:00
|
|
|
post {
|
|
|
|
success {
|
|
|
|
emailext body: 'SUCCESS', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
2022-04-28 19:35:43 +02:00
|
|
|
build job: 's444386-evaluation/training-evaluation/'
|
2022-04-28 19:33:58 +02:00
|
|
|
}
|
|
|
|
failure {
|
|
|
|
emailext body: 'FAILURE', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
unstable {
|
|
|
|
emailext body: 'UNSTABLE', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
changed {
|
|
|
|
emailext body: 'CHANGED', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
}
|
|
|
|
}
|
2022-04-27 19:49:15 +02:00
|
|
|
}
|