From 74f297a353eed3d2b3392bf20d725d8ed463a8da Mon Sep 17 00:00:00 2001 From: Kornelia Girejko Date: Sun, 8 May 2022 19:19:06 +0200 Subject: [PATCH] Zaktualizuj 'Jenkinsfile_sacred' --- Jenkinsfile_sacred | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_sacred b/Jenkinsfile_sacred index 5e4485c..746694c 100644 --- a/Jenkinsfile_sacred +++ b/Jenkinsfile_sacred @@ -30,8 +30,13 @@ pipeline { stage('Main train'){ steps { copyArtifacts filter: '*', projectName: 's478815-create-dataset' - sh 'python3 ./train-sacred.py' - archiveArtifacts artifacts: 'modelP.pkl', followSymlinks: false + sh 'python3 ./train-sacred.py with "epochs=$EPOCHS"' + sh 'cp s478815/_sources/train-sacred* source_code.py' + sh 'cp s478815/1/config.json configuration.json' + sh 'cp s478815/1/info.json param.json' + sh 'cp s478815/1/games_model.pkl model.pkl' + archiveArtifacts artifacts: 'modelP.pkl, source_code.py, configuration.json, param.json, modelS.pkl' + sh 'rm -r s478815' build job: 's478815-evaluation/master/' }