Jenkinsfile: node {} should delete workspace when done?

584 views
Skip to first unread message

ST

unread,
Aug 18, 2016, 5:29:53 AM8/18/16
to Jenkins Users
According to Pipeline documentation [1], a node{} section in Jenkinsfile creates a fresh workspace and removes it when done with all contained steps.

However I'm seeing that the workspace assigned to my node{} sections in the Jenkinsfile is not empty but already contains the project structure, including build artefacts like the folder "generatedJUnitFiles/".

Am I supposed to manually do deleteDir() at the end/beginning of every node{} section, or am I missing anything?

Thanks,
 stefan.


ST

unread,
Aug 22, 2016, 4:40:17 AM8/22/16
to Jenkins Users
Any input on this anyone?

ludovic SMADJA

unread,
Aug 22, 2016, 5:09:29 AM8/22/16
to jenkins...@googlegroups.com
That's exactly what's I'm done.

IMHO, it's the same mechanism than for previous jenkins jobs (in order to avoid environment construction if needed).
-- 


Ludovic SMADJA
R&D engineer - build process and development
JALIOS SA
http://www.jalios.com

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CABwQARuaMGQu4bNU8b0VnZwwibuNyYF5zXF0qb92WaA_nt6C2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages