From d4d75c3ca857d0e12ad1b22b0feb6b0c6217b576 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Tue, 18 Dec 2018 13:33:25 +0100 Subject: [PATCH] try2 --- Jenkinsfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f4b1097..74f3d0d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,13 +1,17 @@ #!/usr/bin/env groovy -properties( - [ - booleanParam(defaultValue: true, description: '', name: 'userFlag') - ] -) +properties([ + parameters([ + booleanParam(defaultValue: false, description: 'dog', name: 'cat'), + string(defaultValue: 'lisa', description: 'uninteresting', name: 'name', trim: false) + ]) +]) + + node('master') { stage('Print params') { - echo "flag: ${params.userFlag}" + echo "flag: ${params.cat}" + echo "flag: ${params.name}" } }