From 7ae3e528440b179930e73c5de59b962b62e5d4ae Mon Sep 17 00:00:00 2001 From: Agata Date: Sun, 10 Apr 2022 12:03:30 +0200 Subject: [PATCH] Use Docker Hub image --- Jenkinsfile2 | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 7842e5a..566d366 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -1,11 +1,8 @@ pipeline { - agent any + agent { + docker {image 'agakul/ium:2.0'} + } parameters { - buildSelector( - defaultSelector: lastSuccessful(), - description: 'Which build to use for copying artifacts', - name: 'BUILD_SELECTOR' - ) } stages { stage('Check out from version control') { @@ -15,11 +12,8 @@ pipeline { } stage('Shell Script') { steps { - copyArtifacts fingerprintArtifacts: true, projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR') - sh 'chmod u+x ./get_stats.sh' - sh './get_stats.sh' - archiveArtifacts 'stats.txt' + sh 'python3 ./preparation.py' } } } -} \ No newline at end of file +}