You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You're not able to fix the problem yourself and send us a pull request instead of an issue.
There is no existing issue regarding the same topic
Plugin Version: 1.6.2
Jenkins Version: 2.164.3
Jenkins Job Type: Freestyle
Triggered via: Bitbucket Cloud
Expected Behavior
Whenever I set up my job, and I push a commit, it should only trigger my job once. Regardless of previous history.
Actual Behavior
It seems like the first time, right after a job is created, the gitSCM is triggering the job multiple times, as many as branches exist in the project. This only happens once, after which the history of the commits are build, and consecutive commits into the repo only trigger the execution once.
Possible Solution
I am not familiarized enough with the code to be able to propose one solution, but filtering out the gitSCM to only use the branch associated to the commit that triggers the job, should help avoiding the gitSCM checking into other branches.
Steps to Reproduce
Provide an unambiguous set of steps to reproduce this bug
Have a repo with multiple branches in bitbucket
Create a new job, in Freestyle, and add the gitSCM. No credentials are needed. Use blank build branch (all branches)
Create a new branch in the repo
commit something to that new branch.
see the job's history. It should be close to the number of branches that the original git repository had.
Context
It took me quite some time to realize this. I also saw some comments in the jenkin's plugging description where they were having similar issues. I think this might not be 100% this plugging's fault, but it is likely the cause comes from the fact that you are using gitSCM class.
Received commit hook notification : {"push": ......."}}
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRHookReceiver doIndex
Received x-event-key payload from bitbucket
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRRepositoryAction
Received commit hook notification for branch: testingBranch
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRRepositoryAction
Received commit hook type: branch
May 22, 2019 7:26:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Considering remote [https://bitbucket.org/crpl_cisc/sollve_vv]
May 22, 2019 7:26:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Considering candidate job sollve_vv_fatnode
May 22, 2019 7:26:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Considering to poke sollve_vv_fatnode
May 22, 2019 7:26:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Considering candidate job sollve_vv_start
May 22, 2019 7:26:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Considering to poke sollve_vv_start
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe matchGitScm
Trying to match https://bitbucket.org/crpl_cisc/sollve_vv.git<-->https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe matchGitScm
Machted scm
May 22, 2019 7:26:26 PM FINE io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRJobProbe
Triggering trigger io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger for job sollve_vv_start
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.filter.repository.BitBucketPPRRepositoryTriggerMatcher matchesAction
io.jenkins.plugins.bitbucketpushandpullrequest.model.cloud.BitBucketPPREvent@3b72b90a
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRHookReceiver doIndex
Sending response.
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRHookReceiver doIndex
Response sent.
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:26 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:26 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:26 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:26 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:27 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger$1 onPollSuccess
Called onPollSuccess
May 22, 2019 7:26:27 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.filter.repository.BitBucketPPRRepositoryPushActionFilter matches
Should trigger build?
May 22, 2019 7:26:27 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.filter.repository.BitBucketPPRRepositoryPushActionFilter matches
allowed branches are not set.
May 22, 2019 7:26:27 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger shouldScheduleJob
Should schedule job : true and (polling result has changes true or is pull request false)
May 22, 2019 7:26:27 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.BitBucketPPRTrigger scheduleJob
SCM changes detected in sollve_vv_start. Triggering #35
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting REPOSOTORY_LINK: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_SOURCE_BRANCH: sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_REPOSITORY_URL: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_PUSH_REPOSITORY_UUID: {31d5bfed-b240-4b64-b3f1-dae54fe988ca}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRAction
Injecting BITBUCKET_PAYLOAD: {....}}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting REPOSOTORY_LINK: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_SOURCE_BRANCH: sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_REPOSITORY_URL: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_PUSH_REPOSITORY_UUID: {31d5bfed-b240-4b64-b3f1-dae54fe988ca}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRAction
Injecting BITBUCKET_PAYLOAD: {.....}}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting REPOSOTORY_LINK: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_SOURCE_BRANCH: sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_REPOSITORY_URL: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_PUSH_REPOSITORY_UUID: {31d5bfed-b240-4b64-b3f1-dae54fe988ca}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRAction
Injecting BITBUCKET_PAYLOAD: {....}}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting REPOSOTORY_LINK: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_SOURCE_BRANCH: sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_REPOSITORY_URL: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_PUSH_REPOSITORY_UUID: {31d5bfed-b240-4b64-b3f1-dae54fe988ca}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRAction
Injecting BITBUCKET_PAYLOAD: {....}}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting REPOSOTORY_LINK: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_SOURCE_BRANCH: sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_REPOSITORY_URL: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_PUSH_REPOSITORY_UUID: {31d5bfed-b240-4b64-b3f1-dae54fe988ca}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRAction
Injecting BITBUCKET_PAYLOAD: {....}}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting REPOSOTORY_LINK: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_SOURCE_BRANCH: sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_REPOSITORY_URL: https://bitbucket.org/crpl_cisc/sollve_vv
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor
Injecting BITBUCKET_PUSH_REPOSITORY_UUID: {31d5bfed-b240-4b64-b3f1-dae54fe988ca}
May 22, 2019 7:26:36 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:36 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:36 PM FINEST io.jenkins.plugins.bitbucketpushandpullrequest.action.BitBucketPPRAction
Injecting BITBUCKET_PAYLOAD: {....}}
May 22, 2019 7:26:45 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:45 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:45 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:45 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:45 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:45 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:45 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:45 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:45 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:45 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:45 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:45 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:46 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:46 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:46 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:46 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:46 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:46 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:46 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:46 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:46 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:46 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:46 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:46 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:47 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:47 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:47 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:47 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:47 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:47 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:47 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of server push cause.
May 22, 2019 7:26:47 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterServerRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:47 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Injecting env vars because of push cause.
May 22, 2019 7:26:47 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterRepositoryEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
May 22, 2019 7:26:47 PM INFO io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Injecting env vars because of pull request cause.
May 22, 2019 7:26:47 PM WARNING io.jenkins.plugins.bitbucketpushandpullrequest.environment.BitBucketPPRAdditionalParameterPullRequestEnvironmentContributor buildEnvironmentFor
Problem injecting env variables: Cause = null
I believe that what's causing that "Problem injecting env variables: Cause = null" is in part this.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Premise: the Bitbucket Push and Pull Request Plugin, starting from this point simply called BBPPR Plugin, uses the Git Plugin to handle with the git repositories managed by BitBucket.
The user initiliazes a new job starting manually a build.
The Git Plugin clones the declared repository fetching the branches as defined in the Branch Specifier filter field.
Each branch is new, that means that the BBPPR Pluginsees everywhere changes
As a consequence, the BBPPR Plugin starts for each fetched branch a job.
It's also important to keep in mind that the filters on the branches specified by the BBPPR Plugin in its Allowed Branches field, are not applied in the initialization phase, because they are only active for jobs triggered through the BitBucket webhook (and not for the ones, which are built manually).
More in general and to summarize:
the Git Plugin filter on the branches is a kind of general filter applied at job level.
the BBPPR Plugin filter is a specific one, that acts at trigger level and it is there because the user can have in a job more triggers than one.
Hi,
Expected Behavior
Whenever I set up my job, and I push a commit, it should only trigger my job once. Regardless of previous history.
Actual Behavior
It seems like the first time, right after a job is created, the gitSCM is triggering the job multiple times, as many as branches exist in the project. This only happens once, after which the history of the commits are build, and consecutive commits into the repo only trigger the execution once.
Possible Solution
I am not familiarized enough with the code to be able to propose one solution, but filtering out the gitSCM to only use the branch associated to the commit that triggers the job, should help avoiding the gitSCM checking into other branches.
Steps to Reproduce
Provide an unambiguous set of steps to reproduce this bug
Context
It took me quite some time to realize this. I also saw some comments in the jenkin's plugging description where they were having similar issues. I think this might not be 100% this plugging's fault, but it is likely the cause comes from the fact that you are using gitSCM class.
Jenkins Job configuration
Triggers: PR (update, create, approved), Push commit with blank branch
gitSCM:
build shell script: echo "hello there"
Jenkins logs
I have removed some information:
I believe that what's causing that "Problem injecting env variables: Cause = null" is in part this.
The text was updated successfully, but these errors were encountered: