ium_434766/pytorch-training-eval/Jenkinsfile-train

31 lines
920 B
Plaintext
Raw Normal View History

2021-04-23 17:33:06 +02:00
pipeline {
agent {
dockerfile true
}
stages {
stage('checkout') {
steps {
git 'https://git.wmi.amu.edu.pl/s434766/ium_434766.git'
copyArtifacts fingerprintArtifacts: true, projectName: 's434766-create-dataset'
}
}
stage('Docker'){
steps{
2021-05-07 21:30:35 +02:00
sh 'python3 "./stroke-pytorch.py" ${BATCH_SIZE} ${EPOCHS} > pred.txt'
2021-04-23 17:33:06 +02:00
}
}
stage('archiveArtifacts') {
steps {
2021-05-07 21:30:35 +02:00
archiveArtifacts 'pred.txt'
2021-04-23 17:33:06 +02:00
archiveArtifacts 'stroke.pkl'
}
2021-05-07 21:30:35 +02:00
post {
success {
emailext body: 'Training of stroke predictions is finished',
subject: 's434766 training finished',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
2021-04-23 17:33:06 +02:00
}
}
}