I’m trying to set up a job with an incremental SCM trigger and a clean workspace nightly trigger.
From what I can see, the right way to do this is to set up both triggers (SCM and Build Periodically), and then set “Delete workspace before build starts” so that it checks the parameter BUILD_CAUSE_TIMERTRIGGER. At least that is what seemed to be the right thing to do. Well it doesn’t seem to work. I can check that BUILD_CAUSE_TRIGGER is being set in the environment (at least by the end of the build, which is when the variables are captured). Does The delete workspace command not see that?
This has got to be a fairly common task, so I guess there is something I'm just missing.
-r