From 59cd71e13f446ad7a806f9cfe76f645d3aabb008 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Tue, 18 Dec 2018 13:23:00 +0100 Subject: [PATCH] declarative try --- Jenkinsfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e208655..ed426a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,15 @@ -#!/usr/bin/env groovy +pipeline { + agent any -properties( - [ - string(name: 'Name', defaultValue: 'denes'), - string(name: 'Age', defaultValue: '34') - ] -) + parameters { + booleanParam(defaultValue: true, description: 'blabla?', name: 'userFlag') + } -node('master') { - stage('Print params') { - sh "echo "${params.Name}" - sh "echo "${params.Age}" - } + stages { + stage("foo") { + steps { + echo "flag: ${params.userFlag}" + } + } + } }