2022-04-25 19:16:01 +02:00
|
|
|
pipeline {
|
2022-05-03 17:44:11 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2022-05-04 18:39:09 +02:00
|
|
|
parameters{
|
|
|
|
string(
|
|
|
|
defaultValue: '5',
|
|
|
|
description: 'Epoch number',
|
|
|
|
name: 'EPOCH_NUMBER'
|
|
|
|
)
|
|
|
|
}
|
2022-04-25 19:16:01 +02:00
|
|
|
stages {
|
2022-05-03 14:20:21 +02:00
|
|
|
stage('Copy') {
|
2022-04-25 20:21:55 +02:00
|
|
|
steps {
|
2022-04-25 21:31:57 +02:00
|
|
|
copyArtifacts projectName: 's444417-create-dataset'
|
2022-04-25 22:11:33 +02:00
|
|
|
sh 'ls -la'
|
2022-05-04 18:42:23 +02:00
|
|
|
sh 'python3 ./src/trainScript.py $EPOCH_NUMBER'
|
2022-05-03 23:00:45 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive') {
|
|
|
|
steps {
|
|
|
|
dir('saved_model') {
|
2022-05-04 15:26:55 +02:00
|
|
|
archiveArtifacts artifacts: '**/**'
|
2022-05-03 23:00:45 +02:00
|
|
|
}
|
2022-05-03 22:09:18 +02:00
|
|
|
}
|
|
|
|
}
|
2022-05-03 22:10:55 +02:00
|
|
|
stage('Starting eval job') {
|
2022-05-03 22:09:18 +02:00
|
|
|
steps {
|
2022-05-04 15:37:38 +02:00
|
|
|
build job: 's444417-evaluation/master', wait: false
|
2022-05-03 14:20:21 +02:00
|
|
|
}
|
|
|
|
}
|
2022-04-25 19:16:01 +02:00
|
|
|
}
|
2022-05-04 15:58:17 +02:00
|
|
|
options {
|
|
|
|
copyArtifactPermission('s444417-evaluation');
|
|
|
|
}
|
2022-04-25 22:44:19 +02:00
|
|
|
post {
|
|
|
|
always {
|
|
|
|
emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
2022-04-25 22:42:35 +02:00
|
|
|
}
|
|
|
|
}
|
2022-04-25 19:16:01 +02:00
|
|
|
}
|