I am starting my Pipeline this way:
node('my_Label') {
// my code
}
I want to know in which Slave my code is running. I tried multiple things but I was not able to find out the correct method to call for that :(
Thank you in advance
The environment variable ${NODE_NAME} should have it:
node ('my_Label) {
println "${NODE_NAME}"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With