From 567efd4534ef7ce2950bc2b6a56f50c8c9470e7e Mon Sep 17 00:00:00 2001 From: Agata Date: Sun, 8 May 2022 16:10:55 +0200 Subject: [PATCH] Update Jenkinsfile (sacred) --- training.Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/training.Jenkinsfile b/training.Jenkinsfile index ba23d6d..74dc59e 100644 --- a/training.Jenkinsfile +++ b/training.Jenkinsfile @@ -27,10 +27,11 @@ pipeline { steps { copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR') sh 'ipython ./training_sacred.py with "epochs=$EPOCHS"' - sh 'cp my_runs/1/config.json config.json' - sh 'cp my_runs/1/model.pth model.pth' - sh 'cp my_runs/_sources/training* training_sacred.py' - sh 'cp my_runs/1/info.json info.json' + sh 'mv my_runs/1/config.json config.json' + sh 'mv my_runs/1/model.pth model.pth' + sh 'mv my_runs/_sources/training* training_sacred.py' + sh 'mv my_runs/1/info.json info.json' + sh 'rm -rf my_runs' archiveArtifacts artifacts: 'config.json, model.pth, training_sacred.py, info.json' } }