From 2f7285d541a6cc272a087f20fe5fd58210d686bc Mon Sep 17 00:00:00 2001 From: s444417 Date: Thu, 24 Mar 2022 21:47:58 +0100 Subject: [PATCH] copy artifact --- Jenkinsfile2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 9a2f55a..5ddb295 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -4,10 +4,13 @@ buildSelector( defaultSelector: lastSuccessful(), name: 's444417-create-dataset', - description: 'Which build to use for copying artifacts' + description: 'Build selector for Copy artifact' ) } + environment { + KAGGLE_USERNAME="$params.KAGGLE_USERNAME" + } stages { stage("Check out from version control") { steps { @@ -15,6 +18,14 @@ } } stage("Shell Script") { + steps { + options { + copyArtifacts + fingerprintArtifacts: true, + name: 's444417-create-dataset', + selector: buildParameter('BUILD_SELECTOR') + } + } steps { sh "chmod u+x ./startscript2.sh" sh " ./startscript2.sh"