From ca9777dc7ce97468c684ad0327c60a8ea9bf9af0 Mon Sep 17 00:00:00 2001 From: s444417 Date: Thu, 24 Mar 2022 21:54:06 +0100 Subject: [PATCH] copy artifact --- Jenkinsfile2 | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 13b2baa..f059577 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -17,19 +17,16 @@ checkout scm } } - stage("Shell Script") { - steps { - copyArtifacts( - fingerprintArtifacts: true, - projectName: 's444417-create-dataset', - selector: buildParameter('BUILD_SELECTOR') - ) - } - steps { - sh "chmod u+x ./startscript2.sh" - sh " ./startscript2.sh" - archiveArtifacts 'num_lines.txt' - } + 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