From f67b67fad880e76e3fc5086b9fb685d5780d7e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Koziej?= Date: Wed, 29 Mar 2023 00:37:24 +0200 Subject: [PATCH 1/2] fix Jenkinsfile_stats --- Jenkinsfile_stats | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index e1940ca..1ec9b03 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -13,9 +13,11 @@ node { stage('Copy artifacts') { copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR') } - withEnv() { - sh 'chmod u+x ./get_stats.sh' - sh './get_stats.sh' + stage('Script') { + withEnv() { + sh 'chmod u+x ./get_stats.sh' + sh './get_stats.sh' + } } stage('Archive artifacts') { archiveArtifacts artifacts: 'stats.txt', followSymlinks: false From 8aa57a2dd4511659afa167201d58763244ba7983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Koziej?= Date: Wed, 29 Mar 2023 00:38:41 +0200 Subject: [PATCH 2/2] fix Jenkinsfile_stats --- Jenkinsfile_stats | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index 1ec9b03..865919a 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -14,10 +14,8 @@ node { copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR') } stage('Script') { - withEnv() { - sh 'chmod u+x ./get_stats.sh' - sh './get_stats.sh' - } + sh '''wc -l books_edited.csv > stats.txt + ''' } stage('Archive artifacts') { archiveArtifacts artifacts: 'stats.txt', followSymlinks: false