[JIRA] (JENKINS-39787) bitbucket branch source plugin creates duplicate build notifications

7 views
Skip to first unread message

mcrooney@java.net (JIRA)

unread,
Nov 16, 2016, 3:43:02 PM11/16/16
to jenkinsc...@googlegroups.com
mcrooney created an issue
 
Jenkins / Bug JENKINS-39787
bitbucket branch source plugin creates duplicate build notifications
Issue Type: Bug Bug
Assignee: Antonio Muñiz
Attachments: Screen Shot 2016-11-15 at 6.35.35 PM.png
Components: bitbucket-branch-source-plugin
Created: 2016/Nov/16 8:42 PM
Environment: Jenkins 2.19.2, Bitbucket Branch Source 1.8
Priority: Major Major
Reporter: mcrooney

Presently this plugin creates duplicate INPROGRESS notifications. It notifies once for the first checkout (without much information) and one on the actual node (with proper information), as seen in this output:

Branch indexing
Cloning the remote Git repository
Cloning repository https://example.git
 > git checkout -f fdd9a31ec4c3b20125db3771b760109202826688
[Bitbucket] Notifying commit build result // <== FIRST INPROGRESS (BAD)
[Pipeline] node
Running on linux2 in /home/example
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout SCM)
[Pipeline] checkout
12:15:05 Cloning the remote Git repository
12:15:05 Cloning repository https://example.git
12:15:05  > git init /home/example
12:17:12  > git checkout -f fdd9a31ec4c3b20125db3771b760109202826688
12:17:13 [Bitbucket] Notifying commit build result // <== SECOND INPROGRESS (GOOD)

and here's the example pipeline:

node() {
    timestamps {
        stage('Checkout SCM') {
            checkout scm
        }

        stage('Build & Test') {
            sh 'sleep 60'
        }
    }
}

The first notification (labeled BAD) results in a generic number and "The tests have started..." in Bitbucket, and the second one (GOOD) actually shows the job name and Jenkins link. Attached is a screenshot at the end of the build showing the duplicate notifications, one generic from the first notification and one that looks good.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

james@mcruncher.com (JIRA)

unread,
Apr 21, 2020, 1:34:06 AM4/21/20
to jenkinsc...@googlegroups.com
James Selvakumar commented on Bug JENKINS-39787
 
Re: bitbucket branch source plugin creates duplicate build notifications

Is this fixed? Is there any work around for this?

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

james@mcruncher.com (JIRA)

unread,
Apr 21, 2020, 3:54:03 AM4/21/20
to jenkinsc...@googlegroups.com

Came across Skip Notifications Trait Plugin which can help solve this problem.

This issue can be actually marked as resolved as this is the expected behaviour which can be altered by the above mentioned plugin.

Reply all
Reply to author
Forward
0 new messages