Can I use a parameterized build, along with this new change to workflow-plugin to do the following:
(1) I have a workflow.
(2) With the workflow, I have a build parameter, "do_clean" which by default is set to 0.
(3) If "do_clean" is set to 1, then logic in the workflow will be triggered which cleans out the files,
otherwise if "do_clean" is set to 0, then no cleaning occurs.
If this is possible, could someone post a code snippet of a workflow which does this?
Thanks.
It might be worth it to take the deleteDir() example from DeleteDirStepTest.java and put it in help.html
I would recommend as new functions are added to the workflow plugin which canbe called from a workflow script, that they bedocumented in TUTORIAL.md as well.
If you specify a boolean parameter, the Workflow code would be...
node {
if (clean_dir) {
Thanks a lot for your feedback regarding the documentation. As you probably see, it's being reworked now. I'll forward your proposal to Esther , who works on the docs now. BTW, also feel free to contribute :)
I am not seeing anything in the test not covered by the help; maybe I am missing something?
I would recommend as new functions are added to the workflow plugin which canbe called from a workflow script, that they bedocumented in TUTORIAL.md as well.
The original intent (since corrupted somewhat) of that file was to be an actual tutorial you could follow in document order, trying each revision for yourself. Forcing it to include every possible step could just become overwhelming. There are other formats which work better for listing idioms.