ium_444354/Jenkinsfile3

46 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-05-06 17:08:30 +02:00
pipeline {
agent {
dockerfile true
}
parameters{
string(
defaultValue: '5',
description: 'Epoch number',
name: 'EPOCH_NUMBER'
)
}
stages {
stage('Copy') {
steps {
2022-05-07 02:57:34 +02:00
copyArtifacts projectName: 's444354-create-dataset'
2022-05-06 17:08:30 +02:00
sh 'ls -la'
sh 'echo $EPOCH_NUMBER'
sh 'python3 ./pytorch/pytorch.py $EPOCH_NUMBER'
}
}
stage('Archive') {
steps {
dir('saved_model') {
2022-05-07 03:19:04 +02:00
archiveArtifacts artifacts: '**/**',
2022-05-07 03:14:35 +02:00
allowEmptyArchive: true
2022-05-06 17:08:30 +02:00
}
}
}
stage('Starting eval job') {
steps {
build job: 's444354-evaluation/master', wait: false
}
}
}
options {
copyArtifactPermission('s444354-evaluation');
}
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444354-testing build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}