From 0894533570aff57515d2cf68db3c001959243cca Mon Sep 17 00:00:00 2001 From: Jakub Henyk Date: Tue, 28 Mar 2023 13:38:32 +0200 Subject: [PATCH] Jenkinsfile_2 Update --- Jenkinsfile_2 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile_2 b/Jenkinsfile_2 index 002ae72..14835fa 100644 --- a/Jenkinsfile_2 +++ b/Jenkinsfile_2 @@ -1,7 +1,18 @@ pipeline { agent any //Definijuemy parametry, ktore bedzie mozna podac podczas wywolywania zadania + parameters { + buildSelector ( + name: 'BUILD_SELECTOR', + defaultValue: lastSuccessful(), + description: 'Which build to use for copying artifacts?', + ) + } stages { + stage('Load Artifact') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 's452627-create-dataset', selector: buildParameter('BUILD_SELECTOR') + } stage('Run Script') { steps { script {