What is the scripted pipeline equivalent of 'reuseNode'?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

What is the scripted pipeline equivalent of 'reuseNode'?

Nicholas Brown
I'm looking for answer to the same question someone ask here:

node {
  stage('foo') { 
    docker.image('debian:stretch').inside {
      // Want the same workspace. (Agent in declarative has 'reuseNode')
      sh 'ls'


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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7fd34b03-f529-4cb8-a4ce-ebcacba6203a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.