ium_444354/Jenkinsfile_training

28 lines
861 B
Plaintext
Raw Normal View History

2022-05-03 22:12:13 +02:00
pipeline {
agent {
docker { image 's444354_create_dataset_image:latest' }
}
parameters {
string(name: 'epoch', defaultValue: '1000', description: 'Number of epochs to train model.')
}
stages {
stage('Get arifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444354-create-dataset', selector: lastSuccessful()
}
}
stage('Show stats') {
steps {
sh "python3 ./pytorch/pytorch.py $epoch"
}
}
}
post {
success {
archiveArtifacts artifacts: 'pytorch/result.txt', followSymlinks: false
}
always {
emailext body: "${currentBuild.currentResult}", subject: 's444354-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}