-
Bug
-
Resolution: Unresolved
-
Major
-
Official Jenkins Container (on AWS ECS)
Jenkins 2.89.4
Pipeline: Declarative 1.2.8,
I have a multibranch declarative pipeline with a pollSCM trigger to poll every 2 minutes. Whenever there is a change to the branch in BitBucket it triggers correctly but about 2 minutes later it triggers again. I'm not sure if this is a bug or some configuration error on my behalf.
I've attached a screenshot of the duplicate builds and poll log for one of the duplicate builds. Below is the top of my declarative pipeline for reference to how I am setting it up.
pipeline { agent none environment { APPVERSION = '0.1.0' NUGET_API_KEY = credentials('build-server-nuget-id-readonly') } triggers { // poll repo every 2 minute for changes pollSCM('*/2 * * * *') } options { // add timestamps to output timestamps() overrideIndexTriggers(false) buildDiscarder(logRotator(numToKeepStr: '10')) skipStagesAfterUnstable() durabilityHint('PERFORMANCE_OPTIMIZED') } ... }
[JENKINS-50886] Declarative pipeline with pollSCM triggers 2 builds
Labels | New: bitbucket declarative pipeline, pollscm |
Description |
Original:
I have a multibranch declarative pipeline with a pollSCM trigger to poll every 2 minutes. Whenever there is a change to the branch in BitBucket it triggers correctly but about 2 minutes later it triggers again. I'm not sure if this is a bug or some configuration error on my behalf. I've attached a screenshot of the duplicate builds and poll log for one of the duplicate builds. Below is the top of me declarative pipeline for reference to how I am setting it up. {code:java} pipeline { agent none environment { APPVERSION = '0.1.0' NUGET_API_KEY = credentials('build-server-nuget-id-readonly') } triggers { // poll repo every 2 minute for changes pollSCM('*/2 * * * *') } options { // add timestamps to output timestamps() overrideIndexTriggers(false) buildDiscarder(logRotator(numToKeepStr: '10')) skipStagesAfterUnstable() durabilityHint('PERFORMANCE_OPTIMIZED') } ... }{code} |
New:
I have a multibranch declarative pipeline with a pollSCM trigger to poll every 2 minutes. Whenever there is a change to the branch in BitBucket it triggers correctly but about 2 minutes later it triggers again. I'm not sure if this is a bug or some configuration error on my behalf. I've attached a screenshot of the duplicate builds and poll log for one of the duplicate builds. Below is the top of my declarative pipeline for reference to how I am setting it up. {code:java} pipeline { agent none environment { APPVERSION = '0.1.0' NUGET_API_KEY = credentials('build-server-nuget-id-readonly') } triggers { // poll repo every 2 minute for changes pollSCM('*/2 * * * *') } options { // add timestamps to output timestamps() overrideIndexTriggers(false) buildDiscarder(logRotator(numToKeepStr: '10')) skipStagesAfterUnstable() durabilityHint('PERFORMANCE_OPTIMIZED') } ... }{code} |
Priority | Original: Minor [ 4 ] | New: Major [ 3 ] |
Component/s | New: git-plugin [ 15543 ] | |
Component/s | Original: bitbucket-plugin [ 18755 ] | |
Component/s | Original: pipeline [ 21692 ] | |
Component/s | Original: pollscm-plugin [ 17336 ] | |
Assignee | Original: Vincent Latombe [ vlatombe ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Fixed but Unreleased [ 10203 ] |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Resolved [ 5 ] |
Resolution | Original: Not A Defect [ 7 ] | |
Status | Original: Resolved [ 5 ] | New: Reopened [ 4 ] |
Status | Original: Reopened [ 4 ] | New: Open [ 1 ] |