I'm looking for answer to the same question someone ask here:
https://stackoverflow.com/questions/50829491/scripted-jenkinsfile-docker-agent-how-to-specify-the-reusenode-flag-and-is-it-r
node {
stage('foo') {
docker.image('debian:stretch').inside {
// Want the same workspace. (Agent in declarative has 'reuseNode')
sh 'ls'
}
}
}
Thanks,
Nick
--
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 [email protected].
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.