-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.82
workflow-job-plugin 2.15
Workflow job doesn't update properly if you change a SCMStep polling from true to false.
The polling baseline never gets reset in WorkflowJob. It's not persisted, so you can get around it by restarting the Jenkins server (not ideal).
Repro Steps:
- Setup workflow job to run an SCMStep and setup SCM polling time interval.
- git(poll: true, changelog: true, ....)
- Run the workflow job.
- Polling log should show the SCM being checked
- Modify workflow job to set poll/changelog to false
- git(poll: false, changelog: false, ...)
- Submit a change to your SCM. It'll trigger even though you've disabled it.
- The polling log shows it checking that SCM even though you've disabled it.
- It's supposed to show "no polling baseline in ***" in the polling log when it's working
Are you running a build after changing the Jenkinsfile to disable polling?