From d9f7990ccf1c5426f87bd6f184c7d6ccf340b44e Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 28 Mar 2021 18:33:07 +0200 Subject: [PATCH] fix jenkinsfile-dataset-stats --- Jenkinsfile_dataset_stats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile_dataset_stats b/Jenkinsfile_dataset_stats index d5dff92..24a5229 100644 --- a/Jenkinsfile_dataset_stats +++ b/Jenkinsfile_dataset_stats @@ -1,15 +1,15 @@ pipeline { agent any - properties([parameters([ + parameters { buildSelector( defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR') - ])]) + } stages { stage('copy artifacts') { steps { - copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: buildParameter('BUILD_SELECTOR') + copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: "{$params.BUILD_SELECTOR)" } } stage('stats') {