Commit 90f139c6 authored by Muhammad Tehami's avatar Muhammad Tehami 💡

Removed closure parameter from printBuidinfo

parent a5b031a4
#!/usr/bin/env groovy
def call(body) {
def config = [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = config
body()
// def config = [:]
// body.resolveStrategy = Closure.DELEGATE_FIRST
// body.delegate = config
// body()
echo config.name
// echo config.name
echo body
echo "Param1 is: ${env.param1}"
echo "Param2 is: ${env.param2}"
if (env.param1 == 'One default') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment