2022-05-03 11:09:00 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
|
|
|
parameters {
|
2022-05-03 11:31:40 +02:00
|
|
|
string(
|
2022-05-03 11:09:00 +02:00
|
|
|
defaultValue: '200',
|
|
|
|
description: 'number of epochs',
|
|
|
|
name: 'EPOCH'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
|
|
|
echo 'Hello world!'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Copy from different Pipeline') {
|
|
|
|
steps {
|
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444517-create-dataset', selector: lastSuccessful()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Get data save artifacts') {
|
|
|
|
steps {
|
|
|
|
sh 'python3 ./nn_train.py $EPOCH'
|
2022-05-03 13:24:06 +02:00
|
|
|
archiveArtifacts artifacts: 'my_model/saved_model.pb, results.txt'
|
2022-05-03 11:09:00 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-03 12:59:33 +02:00
|
|
|
//post {
|
|
|
|
// always {
|
|
|
|
// emailext body: "${currentBuild.currentResult}", subject: 's444517_build_status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
|
|
// }
|
|
|
|
//}
|
2022-05-03 11:09:00 +02:00
|
|
|
}
|
|
|
|
|