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

bitbucketStatusNotify is not working with tags in Multibranch Pipeline

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • Jenkins version: Jenkins 2.387.3
      Bitbucket Build Status Notifier Plugin: 1.4.2


      Bitbucket Build Status Notifier Plugin is not notifying Bitbucket when invoked in a Multibranch Pipeline during pipeline execution for tags.

      It is a declarative pipeline and has already been tested with/without arguments in "bitbucketStatusNotify". For example:
      (...)
      post {
        always

      {     bitbucketStatusNotify(       buildState: 'SUCCESSFUL',       credentialsId: 'jenkins-oauth',       repoSlug: 'kicstest',       commitId: env.GIT_COMMIT,       buildKey: 'build',       buildName: 'Build',       buildDescription: 'Something went wrong with build!'       )   }

      (...)

      The pipeline works fine for branches.
      Looks like the "bitbucketStatusNotify function" is not called for tags.

      Check the attachments (UI)!

        1. 1.png
          1.png
          97 kB
        2. 2.png
          2.png
          92 kB
        3. 3.png
          3.png
          92 kB
        4. 4.png
          4.png
          100 kB
        5. 5.png
          5.png
          108 kB

          [JENKINS-71799] bitbucketStatusNotify is not working with tags in Multibranch Pipeline

          Hello, we are facing the same issue. It seems that the first build in a job doesn't send the notification.

           

          In our scenario we got a new job for a new branch (base on a PR) in our Bitbucket. During the build (automatically started by Jenkins) no notification is send to Bitbucket. When I manually start a second build the notification is send as expected.

          Andre Schlegel added a comment - Hello, we are facing the same issue. It seems that the first build in a job doesn't send the notification.   In our scenario we got a new job for a new branch (base on a PR) in our Bitbucket. During the build (automatically started by Jenkins) no notification is send to Bitbucket. When I manually start a second build the notification is send as expected.

          Andre Schlegel added a comment - - edited

          There is already a PR which would fix this issue (https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/pull/63).

           

          It seems this plugin is abandoned

          Andre Schlegel added a comment - - edited There is already a PR which would fix this issue ( https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/pull/63 ).   It seems this plugin is abandoned

            flagbit Antonio Mansilla
            oak10 Cláudio
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: