From 37f48d2e97b1f61c69975b13985165c3cc5d9b43 Mon Sep 17 00:00:00 2001 From: s444417 Date: Thu, 24 Mar 2022 21:55:44 +0100 Subject: [PATCH] copy artifact --- Jenkinsfile2 | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index f059577..3a417b2 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -8,25 +8,23 @@ ) } - environment { - KAGGLE_USERNAME="$params.KAGGLE_USERNAME" - } stages { stage("Check out from version control") { steps { checkout scm } } - stage("Shell Script") { - steps { - copyArtifacts( - fingerprintArtifacts: true, - projectName: 's444417-create-dataset', - selector: buildParameter('BUILD_SELECTOR') - ) - sh "chmod u+x ./startscript2.sh" - sh " ./startscript2.sh" - archiveArtifacts 'num_lines.txt' - } - } -} \ No newline at end of file + stage("Shell Script") { + steps { + copyArtifacts( + fingerprintArtifacts: true, + projectName: 's444417-create-dataset', + selector: buildParameter('BUILD_SELECTOR') + ) + sh "chmod u+x ./startscript2.sh" + sh " ./startscript2.sh" + archiveArtifacts 'num_lines.txt' + } + } + } + } \ No newline at end of file