From a9511a9fe5df102ad9a6285437aee2a2da110e68 Mon Sep 17 00:00:00 2001 From: Kamil Guttmann Date: Sun, 3 Apr 2022 19:39:11 +0200 Subject: [PATCH] Test Jenkinsfile.stats with docker --- Jenkinsfile.stats | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile.stats b/Jenkinsfile.stats index 96d7776..645b3d3 100644 --- a/Jenkinsfile.stats +++ b/Jenkinsfile.stats @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + docker { image 'kamilguttmann/ium:latest' } + } parameters { buildSelector( defaultSelector: lastSuccessful(), @@ -13,14 +15,14 @@ pipeline { copyArtifacts fingerprintArtifacts: true, projectName: 's444380-create-dataset', selector: buildParameter('BUILD_SELECTOR') } } - stage("Checkout git") { + /*stage("Checkout git") { steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444380', url: 'https://git.wmi.amu.edu.pl/s444380/ium_444380.git']]]) } - } + }*/ stage("Calcualte statistics") { steps { - sh "./calc_stats.sh | tee crime.stats.txt" + sh "python3 calc_stats.py | tee crime.stats.txt" archiveArtifacts artifacts: "crime.stats.txt", onlyIfSuccessful: true } }