Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. stage ('echo variables'){
  2. agent {label 'a_server_name'}
  3. steps{
  4. load "path_to_file\abc.properties"
  5.  
  6. echo "Hi"
  7. echo "slave : ${SlaveNode}"
  8.  
  9. //executes successfully
  10.  
  11. }
  12.  
  13. stage ('Execute script'){
  14. agent {label "$SlaveNode"}
  15. steps{
  16. echo "This is executing script"
  17.  
  18. }
  19.  
  20. // fails with error : There are no nodes with the label ‘SlaveNode’
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement