-
Bug
-
Resolution: Unresolved
-
Major
-
None
Using strategy: Default [poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h -- https://********.git # timeout=10 Found 14 remote heads on https://********.git Using strategy: SpecificRevisionBuildChooser
The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged)
Steps to reproduce:
- Create a pipeline job
- SCM with Git, target branch */sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout.
- The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section
- Trigger the pipeline once to apply the config in Jenkins
- Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library)
Jenkins 2.319.1
Git Plugin 4.10.1
[JENKINS-67440] PollSCM does not build on repo change with parameterized target branch
Description |
Original:
[poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h --
[https://****.git|https://github.com/Hyva-Digital-Platform/ahmapp-reporting-microservice.git] # timeout=10 Found 14 remote heads on [https://****.git|https://github.com/Hyva-Digital-Platform/ahmapp-reporting-microservice.git] Using strategy: SpecificRevisionBuildChooser The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged) Steps to reproduce: # Create a pipeline job # SCM with Git, target branch sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout. # The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section # Trigger the pipeline once to apply the config in Jenkins # Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library) |
New:
{code:java}
Using strategy: Default [poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h -- https://********.git # timeout=10 Found 14 remote heads on https://********.git Using strategy: SpecificRevisionBuildChooser {code} The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged) Steps to reproduce: # Create a pipeline job # SCM with Git, target branch sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout. # The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section # Trigger the pipeline once to apply the config in Jenkins # Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library) |
Description |
Original:
{code:java}
Using strategy: Default [poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h -- https://********.git # timeout=10 Found 14 remote heads on https://********.git Using strategy: SpecificRevisionBuildChooser {code} The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged) Steps to reproduce: # Create a pipeline job # SCM with Git, target branch sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout. # The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section # Trigger the pipeline once to apply the config in Jenkins # Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library) |
New:
{code:java}
Using strategy: Default [poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h -- https://********.git # timeout=10 Found 14 remote heads on https://********.git Using strategy: SpecificRevisionBuildChooser {code} The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged) Steps to reproduce: # Create a pipeline job # SCM with Git, target branch */sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout. # The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section # Trigger the pipeline once to apply the config in Jenkins # Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library) |
Description |
Original:
{code:java}
Using strategy: Default [poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h -- https://********.git # timeout=10 Found 14 remote heads on https://********.git Using strategy: SpecificRevisionBuildChooser {code} The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged) Steps to reproduce: # Create a pipeline job # SCM with Git, target branch */sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout. # The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section # Trigger the pipeline once to apply the config in Jenkins # Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library) |
New:
{code:java}
Using strategy: Default [poll] Last Built Revision: Revision 5a5549ff682d32d98a9ebf0c7e88cea84b5d85f6 (refs/remotes/origin/sprint_29) Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential 4bf47db3-4a46-4546-8ad0-54f157d0a78c > git --version # timeout=10 > git --version # 'git version 2.24.0' using GIT_ASKPASS to set credentials > git ls-remote -h -- https://********.git # timeout=10 Found 14 remote heads on https://********.git Using strategy: SpecificRevisionBuildChooser {code} The sprint_29 branch is actually on 2aa5fa15c43e3299054d3fc65d279548efa75270 (other branches are unchanged) Steps to reproduce: # Create a pipeline job # SCM with Git, target branch */sprint_${SPRINT_NUM} and SPRINT_NUM is set as global variable. Uncheck lightweight checkout. # The Jenkinsfile has a shared library imported, it also has PollSCM("* * * * *") in the triggers section # Trigger the pipeline once to apply the config in Jenkins # Polling log will find no change if you pushed something on sprint_29 on the branch. (no need to commit anything on the shared library) Jenkins 2.319.1 Git Plugin 4.10.1 |
Assignee | Original: Mark Waite [ markewaite ] |
Summary | Original: PollSCM cannot find code change | New: PollSCM does not build on repo change |
Summary | Original: PollSCM does not build on repo change | New: PollSCM does not build on repo change with parameterized target branch |
This configuration is creating a single job that switches between branches. That's not a recommended technique because we have multibranch pipelines and organization folders that will automatically create and destroy jobs that are dedicated to branches. When a branch is created, the multiranch pipeline creates the job automatically. When a branch is deleted, the multibranch pipeline deletes the job.
I don't plan to work on this issue report. I recommend multi-branch pipeline and organization folders as the better way to meet the need of a job that runs on a branch.