2022-05-06 17:08:30 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2022-05-07 12:19:39 +02:00
|
|
|
parameters{
|
|
|
|
string(
|
|
|
|
defaultValue: '1500',
|
|
|
|
description: 'Epoch number',
|
|
|
|
name: 'EPOCH_NUMBER'
|
|
|
|
)
|
|
|
|
}
|
2022-05-06 17:08:30 +02:00
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Copy') {
|
|
|
|
steps {
|
2022-05-09 10:56:28 +02:00
|
|
|
//copyArtifacts projectName: 's444354-create-dataset'
|
2022-05-07 23:53:41 +02:00
|
|
|
// sh 'python3 ./pytorch/pytorch.py $EPOCH_NUMBER'
|
|
|
|
sh 'python3 ./pytorch/pytorch.py'
|
2022-05-06 17:08:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive') {
|
|
|
|
steps {
|
2022-05-07 03:33:13 +02:00
|
|
|
|
2022-05-07 03:38:23 +02:00
|
|
|
archiveArtifacts artifacts: 'pytorch/result.txt',
|
2022-05-07 03:14:35 +02:00
|
|
|
allowEmptyArchive: true
|
2022-05-08 15:45:21 +02:00
|
|
|
dir('my_runs') {
|
2022-05-08 21:46:59 +02:00
|
|
|
//archiveArtifacts artifacts: '**/*.pth'
|
|
|
|
archiveArtifacts artifacts: '**/**'
|
2022-05-08 15:45:21 +02:00
|
|
|
}
|
2022-05-07 03:33:13 +02:00
|
|
|
|
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 {
|
2022-05-07 11:56:32 +02:00
|
|
|
emailext body: "${currentBuild.currentResult}", subject: 's444354-training build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
|
2022-05-06 17:08:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|