From 49e7eb6c252a4d7b382141df00577dfcd07cb107 Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sat, 10 Apr 2021 22:26:08 +0200 Subject: [PATCH] Add container support from Hub --- Jenkinsfile_stats | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index d2f50bc..e11b7bd 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -1,11 +1,14 @@ pipeline { - agent any + agent { + docker { image 'jarmosz/ium:1.1' } + } parameters { buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') } stages { stage("Clone repo & print stats"){ steps { + sh "python3 script.py" copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter('BUILD_SELECTOR') sh "chmod 777 ./count_files_lines.sh" sh "./count_files_lines.sh"