Details
-
Bug
-
Status: In Review (View Workflow)
-
Major
-
Resolution: Unresolved
-
Ubuntu 14.04.5 LTS (jenkins installed via debian)
Jenkins 2.18
Git plugin 3.0.0
Pipeline 2.4
Pipeline SCM Step 2.2
Pipeline Stage Step 2.2
Description
I work in bitbucket which uses a hook to notify our jenkins server on commit (or if manually triggered in a pull request). I've noticed that, when I make a new pipeline job from SCM (git), onNotifyCommit won't look at the new job until after I've manually run the job and it has completed.
A bit more details on the job:
- I did specify an empty poll interval, which allowed my other maven jobs to be properly notified.
- I haven't specified any additional behaviors
Since the job has the SCM information built directly into the pipeline job, shouldn't onNotifyCommit properly find and notify the new job without needing execution?
I wrote a test for workflow-job project that shows the case and fix for it:
pom.xml
WorkflowJobTest.java
Though I'm not sure this is good for master branch, I was working from repo tag 'workflow-job-2.36'.