ium_444386/Jenkinsfile_train

40 lines
1.3 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters {
string(
defaultValue: '2',
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 ./biblioteki_dl.py'
sh 'python3 biblioteki_dl.py $epoch'
sh 'tar -czf model.tar.gz model/'
archiveArtifacts 'model.tar.gz'
archiveArtifacts 'xtest.csv'
archiveArtifacts 'ytest.csv'
}
}
}
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'
}
}
}