Commit fcef718b authored by Muhammad Tehami's avatar Muhammad Tehami 💡

Revert "Removed closure parameter from printBuidinfo"

This reverts commit 90f139c6.
parent 90f139c6
#!/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 body
echo config.name
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