ium_444463/Jenkinsfile

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-04-23 17:15:28 +02:00
pipeline {
agent {
2022-05-03 15:30:24 +02:00
dockerfile true
2022-04-23 17:15:28 +02:00
}
parameters {
string (
2022-05-03 15:30:24 +02:00
defaultValue: '10',
description: 'Epochs number',
name: 'EPOCH',
2022-04-23 17:15:28 +02:00
trim: false
)
}
stages {
stage('checkout: Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
}
}
stage('bash script') {
steps {
2022-05-03 16:47:09 +02:00
withEnv(["EPOCH=${params.EPOCH}"]) {
2022-05-03 15:30:24 +02:00
copyArtifacts filter: '*', projectName: 's444463-create-dataset'
2022-05-07 15:25:47 +02:00
sh 'python3 ./deepl.py with "epochs=$EPOCH"'
2022-05-07 15:40:46 +02:00
archiveArtifacts artifacts: "model, my_runs/*/*"
2022-05-06 22:55:45 +02:00
build job: "s444463-evaluation/master"
2022-04-23 17:15:28 +02:00
}
}
}
}
2022-05-03 18:15:59 +02:00
post {
success {
emailext body: "Model successfully trained", subject: "Model training 444463", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
}
failure {
emailext body: "Training failure", subject: "Model training 444463", to: "e19191c5.uam.onmicrosoft.com@emea.teams.ms"
}
}
2022-04-23 17:15:28 +02:00
}