43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
parameters {
|
|
string(
|
|
defaultValue: '5',
|
|
description: 'learning iterations',
|
|
name: 'epoch'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
copyArtifacts filter: 'data.csv', fingerprintArtifacts: true, projectName: 's444386-create-dataset', selector: lastSuccessful()
|
|
sh 'chmod u+x ./sacred_training.py'
|
|
sh 'python3 sacred_training.py $epoch'
|
|
sh 'tar -czf model.tar.gz model/'
|
|
archiveArtifacts 'model.tar.gz'
|
|
archiveArtifacts 'xtest.csv'
|
|
archiveArtifacts 'ytest.csv'
|
|
dir('training') {
|
|
archiveArtifacts artifacts: '**/**'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
success {
|
|
emailext body: 'SUCCESS', subject: 's444386-train-status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
build job: 's444386-evaluation/training-evaluation/'
|
|
}
|
|
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'
|
|
}
|
|
}
|
|
} |