From 02ab65baae9ba279cf55120b3ea17f6d0b2a9592 Mon Sep 17 00:00:00 2001 From: s434732 Date: Sun, 11 Apr 2021 19:58:18 +0200 Subject: [PATCH] docker-v3 --- Jenkinsfile2 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 91e8c1f..7921566 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + docker {image 's434732/ium' } + } parameters { buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') } @@ -8,13 +10,10 @@ pipeline { steps { copyArtifacts fingerprintArtifacts: true, projectName: 's434732-create-dataset', selector: buildParameter('BUILD_SELECTOR') - def image = docker.build("s434732/ium") - image.inside { sh 'python3 "./skrypt_stat.py" > stats.txt' archiveArtifacts "stats.txt" - } } } }