Update Jenkinsfile sacred

This commit is contained in:
Agata 2022-05-09 09:54:19 +02:00
parent f98ec7f6ee
commit 71276b510a

View File

@ -26,13 +26,13 @@ pipeline {
stage('Script') { stage('Script') {
steps { steps {
copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR') copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'rm -rf my_runs'
sh 'ipython ./training_sacred.py with "epochs=$EPOCHS"' sh 'ipython ./training_sacred.py with "epochs=$EPOCHS"'
sh 'mv my_runs/1/config.json config.json' sh 'mv my_runs/1/config.json config.json'
sh 'mv my_runs/1/model.pth model.pth' sh 'mv my_runs/1/model.pth model.pth'
sh 'mv my_runs/_sources/training* training_sacred.py' sh 'mv my_runs/_sources/training* training_sacred.py'
sh 'mv my_runs/1/info.json info.json' sh 'mv my_runs/1/info.json info.json'
archiveArtifacts artifacts: 'config.json, model.pth, training_sacred.py, info.json' archiveArtifacts artifacts: 'config.json, model.pth, training_sacred.py, info.json'
sh 'rm -rf my_runs'
} }
} }
} }