On Tuesday, September 29, 2015 at 4:51:09 PM UTC-4, Craig Rodrigues wrote: > > It might be worth it to take the deleteDir() example from > DeleteDirStepTest.java and put it in help.html >
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 > can > be called from a workflow script, that they be > documented 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. On Mon, Sep 28, 2015 at 12:59 PM, Oleg Nenashev <o.v.ne...@gmail.com > <javascript:>> wrote: > >> If you specify a boolean parameter, the Workflow code would be... >> >> node { >> if (clean_dir) { >> > Not quite; as noted in JENKINS-27295 <https://issues.jenkins-ci.org/browse/JENKINS-27295> you will actually get `"true"` or `"false"` not `true` or `false`, so for now you would need to use something like if (Boolean.valueOf(clean_dir)) { or if (clean_dir == 'true') { By the way this kind of question is better suited to Stack Overflow <http://stackoverflow.com/tags/jenkins-workflow>. -- 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-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/3fb8e1ef-f343-497f-b7dc-cdc4d2137e2b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.