Update Jenkinsfile

This commit is contained in:
Shweta217 2018-12-24 19:14:05 +05:30 committed by GitHub
parent 799bb8e7a0
commit df0fdc8514
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
Jenkinsfile vendored
View file

@ -1,7 +1,4 @@
@Library('my-pipeline-library') _ properties ([
myDeliveryPipeline(
properties ([
parameters([ parameters([
string(name: 'BRANCH', defaultValue: 'master', description: 'Branch to build'), string(name: 'BRANCH', defaultValue: 'master', description: 'Branch to build'),
choice(name: 'RUN_TEST', choices: ['yes', 'no'], description: 'Run test while 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})