ium_444354/Jenkinsfile3
Adrian Charkiewicz 0b27d931f3
Some checks failed
s444354-training/pipeline/head This commit looks good
s444354-evaluation/pipeline/head There was a failure building this commit
dont copy artifact result but create it itself
2022-05-09 10:56:28 +02:00

47 lines
1.2 KiB
Plaintext

pipeline {
agent {
dockerfile true
}
parameters{
string(
defaultValue: '1500',
description: 'Epoch number',
name: 'EPOCH_NUMBER'
)
}
stages {
stage('Copy') {
steps {
//copyArtifacts projectName: 's444354-create-dataset'
// sh 'python3 ./pytorch/pytorch.py $EPOCH_NUMBER'
sh 'python3 ./pytorch/pytorch.py'
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: 'pytorch/result.txt',
allowEmptyArchive: true
dir('my_runs') {
//archiveArtifacts artifacts: '**/*.pth'
archiveArtifacts artifacts: '**/**'
}
}
}
stage('Starting eval job') {
steps {
build job: 's444354-evaluation/master', wait: false
}
}
}
options {
copyArtifactPermission('s444354-evaluation');
}
post {
always {
emailext body: "${currentBuild.currentResult}", subject: 's444354-training build status', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}