From df0fdc8514cc0e764a8f28d5d79ac09169de3c6b Mon Sep 17 00:00:00 2001 From: Shweta217 <38592487+Shweta217@users.noreply.github.com> Date: Mon, 24 Dec 2018 19:14:05 +0530 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d3491e38e..b175de9b0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,4 @@ -@Library('my-pipeline-library') _ - -myDeliveryPipeline( - properties ([ + properties ([ parameters([ string(name: 'BRANCH', defaultValue: 'master', description: 'Branch to build'), choice(name: 'RUN_TEST', choices: ['yes', 'no'], description: 'Run test while build'), @@ -10,4 +7,8 @@ myDeliveryPipeline( ]) ]) -) + + +@Library('my-pipeline-library') _ + +myDeliveryPipeline('BRANCH':${params.BRANCH}, 'RUN_TEST':{params.RUN_TEST}, 'MAIL_TRIGGER':{params.MAIL_TRIGGER}, 'EMAIL':{params.EMAIL})