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:34:55 +02:00
|
|
|
sh 'mv my_runs/_sources/deepl_* source.py'
|
2022-05-07 15:32:53 +02:00
|
|
|
archiveArtifacts artifacts: "model, source.py"
|
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
|
|
|
}
|