Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple triggers of the commits on initialization of the jobs #33

Closed
2 tasks done
josemonsalve2 opened this issue May 22, 2019 · 3 comments
Closed
2 tasks done
Assignees

Comments

@josemonsalve2
Copy link

josemonsalve2 commented May 22, 2019

Hi,

  • 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

  1. Have a repo with multiple branches in bitbucket
  2. Create a new job, in Freestyle, and add the gitSCM. No credentials are needed. Use blank build branch (all branches)
  3. Create a new branch in the repo
  4. commit something to that new branch.
  5. 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.

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:

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.

@cdelmonte-zg cdelmonte-zg self-assigned this May 27, 2019
@stale
Copy link

stale bot commented Jan 28, 2020

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.

@stale stale bot added the wontfix This will not be worked on label Jan 28, 2020
@cdelmonte-zg cdelmonte-zg removed the wontfix This will not be worked on label Jan 29, 2020
@stale
Copy link

stale bot commented Apr 28, 2020

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.

@stale stale bot added the wontfix This will not be worked on label Apr 28, 2020
@stale stale bot closed this as completed May 19, 2020
@macghriogair macghriogair added investigating and removed wontfix This will not be worked on labels May 19, 2020
@macghriogair macghriogair reopened this May 19, 2020
@cdelmonte-zg
Copy link
Contributor

Hello @josemonsalve2

here are the results of the investigation:

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.

  1. The user initiliazes a new job starting manually a build.
  2. The Git Plugin clones the declared repository fetching the branches as defined in the Branch Specifier filter field.
  3. Each branch is new, that means that the BBPPR Plugin sees everywhere changes
  4. As a consequence, the BBPPR Plugin starts for each fetched branch a job.
  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants