[JIRA] (JENKINS-61048) "Ignore rebuilding merge branches" suppresses build in master branch

9 views
Skip to first unread message

rainer.frey@inxmail.de (JIRA)

unread,
Feb 11, 2020, 6:41:04 AM2/11/20
to jenkinsc...@googlegroups.com
Rainer Frey created an issue
 
Jenkins / Bug JENKINS-61048
"Ignore rebuilding merge branches" suppresses build in master branch
Issue Type: Bug Bug
Assignee: Unassigned
Components: basic-branch-build-strategies-plugin
Created: 2020-02-11 11:40
Environment: Jenkins 2.204.2 LTS in Kubernetes (via helm chart)
basic-branch-build-strategies 1.3.2
branch-api 2.5.5
cloudbees-bitbucket-branch-source 2.7.0
multibranch-build-strategy-extension 1.0.10

Bitbucket Server on Premise
Priority: Minor Minor
Reporter: Rainer Frey

We use multi branch pipeline jobs with Bitbucket branch source, setup to

  • detect branches
    • ignore branches that have pull requests
  • detect pull requests
    • merge with target branch

I added the "Change Requests" build strategy, and set the option "Ignore rebuilding merge branches when only the target branch changed". Now when merging a Pull Request, no build is triggered, not even in the master branch. The behaviour I wanted was, that other open pull requests are not rebuilt.

Here is a log of the repository scan. PR-7 was open, targeting master. PR-8 was merged into master.

[Tue Feb 11 11:46:51 CET 2020] Starting branch indexing...
Connecting to https://work.inxmail.com/stash using jenkins_stash/****** (Jenkins User for accessing Bitbucket Server (Stash))
Repository type: Git
Looking up DEVSAMPLE/jenkins-kubernetes-agent-demo for branches
Checking branch master from DEVSAMPLE/jenkins-kubernetes-agent-demo
      ‘Jenkinsfile’ found
    Met criteria
Changes detected: master (3bd9703923e01db05b6085092c21299dbd548374 → b3ca516091e0a7679596df02fce07e4c56a718e9)
No automatic build triggered for master
Checking branch spring-boot-upgrade from DEVSAMPLE/jenkins-kubernetes-agent-demo

  2 branches were processed
Looking up DEVSAMPLE/jenkins-kubernetes-agent-demo for pull requests
Checking PR-7 from DEVSAMPLE/jenkins-kubernetes-agent-demo and branch spring-boot-upgrade
      ‘Jenkinsfile’ found
    Met criteria
Changes detected: PR-7 (6ce4bbac8f2279869753e1285f9fe45df20754bf+3bd9703923e01db05b6085092c21299dbd548374 → 6ce4bbac8f2279869753e1285f9fe45df20754bf+b3ca516091e0a7679596df02fce07e4c56a718e9)
No automatic build triggered for PR-7

  1 pull requests were processed
[Tue Feb 11 11:46:52 CET 2020] Finished branch indexing. Indexing took 0.76 sec
Evaluating orphaned items in ZZ: Experimentierbereich » jenkins-kubernetes-agent-demo
Will remove PR-8
Finished: SUCCESS
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages