From 93516ec2efa09560288389ac32c242d91b3dafb3 Mon Sep 17 00:00:00 2001 From: s434695 Date: Sun, 16 May 2021 20:22:27 +0200 Subject: [PATCH] :( --- Dockerfile | 10 ---------- Jenkinsfile | 18 ++++++++++-------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index bccd785..35cd423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,13 +20,3 @@ RUN pip3 install --user GitPython RUN pip3 install --user pymongo -WORKDIR /app - -COPY ./train.py ./ -COPY ./evaluate.py ./ -COPY ./sacred1.py ./ -COPY ./sacred2.py ./ -COPY ./skrypt.sh ./ -COPY ./zadanie2.py ./ -COPY ./zadanie5.py ./ - diff --git a/Jenkinsfile b/Jenkinsfile index 93a08b9..86a8d97 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent {docker { image 'shroomy/ium2:2'}} + agent any; parameters{ buildSelector( @@ -27,15 +27,17 @@ pipeline { copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-create-dataset', selector: buildParameter('WHICH_BUILD')) } } - stage('train') - { - steps - { - catchError { - sh 'python3 train.py ${BATCH_SIZE} ${EPOCHS}' + stage('docker-training') { + steps { + script { + def img = docker.build('shroomy/ium2:2') + img.inside { + sh "python3 train.py ${EPOCHS} ${BATCH_SIZE}" + } } - } + } + } stage('Archive artifacts') { steps{