From 9884244768a98f5e2fba5616dc8744a23b8607d0 Mon Sep 17 00:00:00 2001 From: s434695 Date: Sat, 15 May 2021 14:09:44 +0200 Subject: [PATCH] sadge2 --- train_evaluate/Jenkinsfile_train | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/train_evaluate/Jenkinsfile_train b/train_evaluate/Jenkinsfile_train index 5c05c27..39da288 100644 --- a/train_evaluate/Jenkinsfile_train +++ b/train_evaluate/Jenkinsfile_train @@ -1,6 +1,6 @@ pipeline { agent { - dockerfile true + any; } parameters{ buildSelector( @@ -26,13 +26,19 @@ pipeline { copyArtifacts fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD') } } - stage('Docker'){ - steps{ - sh 'python3 "./train.py"' - sh 'python3 "./sacred1.py"' - sh 'python3 "./sacred2.py"' - } - } + stage('docker-training') { + steps { + script { + def img = docker.build('shroomy/ium:5') + img.inside { + sh "python3 train.py" + sh "python3 sacred1.py" + sh "python3 sacred2.py" + + } + } + } + } stage('archiveArtifacts') { steps{ archiveArtifacts 'ium_s434695/**'