42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
parameters{
|
|
string(
|
|
defaultValue: '5',
|
|
description: 'Epoch number',
|
|
name: 'EPOCH_NUMBER'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Copy') {
|
|
steps {
|
|
copyArtifacts projectName: 's444417-create-dataset'
|
|
sh 'ls -la'
|
|
sh 'echo $EPOCH_NUMBER'
|
|
sh 'python3 ./src/trainScript.py $EPOCH_NUMBER'
|
|
}
|
|
}
|
|
stage('Archive') {
|
|
steps {
|
|
dir('saved_model') {
|
|
archiveArtifacts artifacts: '**/**'
|
|
}
|
|
}
|
|
}
|
|
stage('Starting eval job') {
|
|
steps {
|
|
build job: 's444417-evaluation/master', wait: false
|
|
}
|
|
}
|
|
}
|
|
options {
|
|
copyArtifactPermission('s444417-evaluation');
|
|
}
|
|
post {
|
|
always {
|
|
emailext body: "${currentBuild.currentResult}", subject: 's444417-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
|
}
|
|
}
|
|
} |