Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我以这种方式启动我的管道:
node('my_Label') { // my code }
我想知道我的代码在哪个 Slave 中运行。我尝试了多种方法,但找不到正确的方法来调用它:(
先感谢您
环境变量 ${NODE_NAME} 应该有它:
node ('my_Label) { println "${NODE_NAME}" }