Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48296

Multibranch pipeline - ignore commits from certain user

      I would like my Jenkins multibranch pipeline job to avoid triggering itself. The job makes a commit because it increments the version file and checks it into source control which causes an endless loop.

      In a regular Jenkins job I was able to avoid this loop by using additional behaviors configuration.( I set Polling ignores commits from certain users option to "Jenkins automation server" ).

      This functionality does not work for multibranch pipeline (there is no 'ignore commits from certain users' option). Is there any way in a Jenkins mulitbranch pipeline to prevent a self-triggered commit?

          [JENKINS-48296] Multibranch pipeline - ignore commits from certain user

          dan tran added a comment - - edited

          arg.. not working for me. Is there a trace a can lookup? must be something very simple at my side

          dan tran added a comment - - edited arg.. not working for me. Is there a trace a can lookup? must be something very simple at my side

          dantran

          This works for me.  Make sure when the CI does the commit its registered by your git provider as the right email address.  That is the requirement here.  Otherwise the plugin cant tell who its coming from.

          Nick Carpenter added a comment - dantran This works for me.  Make sure when the CI does the commit its registered by your git provider as the right email address.  That is the requirement here.  Otherwise the plugin cant tell who its coming from.

          chirs damour added a comment -

          @nick carpenter thanks for confirmation.

          @dan tran yeah check the jenkins system log and build log.

          fwiw saying "not working" is pretty worthless. u should always include what you've been trying, what you expect, and whats actually happening every time you think "not working". especially as you try new things. makes it way easier for others to help you

          chirs damour added a comment - @nick carpenter thanks for confirmation. @dan tran yeah check the jenkins system log and build log. fwiw saying "not working" is pretty worthless. u should always include what you've been trying, what you expect, and whats actually happening every time you think "not working". especially as you try new things. makes it way easier for others to help you

          dan tran added a comment -

          carpnick2 Thanks for the confirmation
          drdamour sorry about the short whine, I had the exact same configuration as suggested. The only culprit I can think of is my email input which I get it from BB user profile

          dan tran added a comment - carpnick2 Thanks for the confirmation drdamour sorry about the short whine, I had the exact same configuration as suggested. The only culprit I can think of is my email input which I get it from BB user profile

          chirs damour added a comment - - edited

          use git log to see what email is being used. the git plugin has a way to call git config to set the email

           

           

          chirs damour added a comment - - edited use git log to see what email is being used. the git plugin has a way to call git config to set the email    

          dan tran added a comment -

          it is working now after reconfiguring the same setup again. Thanks for all the help.

          dan tran added a comment - it is working now after reconfiguring the same setup again. Thanks for all the help.

          dantran I assume these changes you guys are talking about haven't been merged and released yet. Is that right? or can we use the plugin now?

          Thanks

          Mohammad Norouzi added a comment - dantran I assume these changes you guys are talking about haven't been merged and released yet. Is that right? or can we use the plugin now? Thanks

          chirs damour added a comment - everything is released cf  https://issues.jenkins-ci.org/browse/JENKINS-48296?focusedCommentId=364281&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-364281

          dan tran added a comment - - edited

          Things went well until I picked up the latest plugins on 4/11. All BB branch source events, except the PR events, sent to Jenkins are ignored. Ended up to remove the settings

          Any one facing the same issue? or it is just me

          dan tran added a comment - - edited Things went well until I picked up the latest plugins on 4/11. All BB branch source events, except the PR events, sent to Jenkins are ignored. Ended up to remove the settings Any one facing the same issue? or it is just me

          chirs damour added a comment -

          yup they broke it with JENKINS-38552 i filed JENKINS-56984

          chirs damour added a comment - yup they broke it with  JENKINS-38552 i filed  JENKINS-56984

            Unassigned Unassigned
            ajit425 Ajit Patel
            Votes:
            25 Vote for this issue
            Watchers:
            34 Start watching this issue

              Created:
              Updated: