[1.1.1.1 2.2.2.2] Inside stage got this IP: 7.7.7.7 8.8.8.8 [Pipeline] [1.1.1.1 2.2.2.2] sleep [1.1.1.1 2.2.2.2] Sleeping for 5 sec [Pipeline] [ 3.3.3.3 4.4.4.4] echo [ 3.3.3.3 4.4.4.4] Inside stage got this IP: 7.7.7.7 8.8.8.8 [Pipeline] [ 3.3.3.3 4.4.4.4] sleep [ 3.3.3.3 4.4.4.4] Sleeping for 5 sec [Pipeline] [ 5.5.5.5 6.6.6.6] echo [ 5.5.5.5 6.6.6.6] Inside stage got this IP: 7.7.7.7 8.8.8.8 [Pipeline] [ 5.5.5.5 6.6.6.6] sleep [ 5.5.5.5 6.6.6.6] Sleeping for 5 sec [Pipeline] [ 7.7.7.7 8.8.8.8] echo [ 7.7.7.7 8.8.8.8] Inside stage got this IP: 7.7.7.7 8.8.8.8 [Pipeline] [ 7.7.7.7 8.8.8.8] sleep [ 7.7.7.7 8.8.8.8] Sleeping for 5 sec
Look at https://jenkins.io/doc/pipeline/examples/
Assign ip at start of block.
branches ["$ip"] = {
def ipAddress = ip
// use ipAddress instead of ip
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3408003e-6528-450a-88e0-75746333337b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.