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 :(
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 :(
The environment variable ${NODE_NAME} should have it:
node ('my_Label) {
println "${NODE_NAME}"
}
© 2022 - 2024 — McMap. All rights reserved.