IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-19393

BITBUCKET_COMMIT returns short form instead full for `pipelines.pull-requests:`

      pipelines:
        pull-requests:
          '**':
      

      returns


      instead full form like within branch driven pipeline

      pipelines:
        default:
      

      Expected:

      Always return full form.

      Workaround

      Add the following command in your script, prior to using the BITBUCKET_COMMIT variable.

      - export BITBUCKET_COMMIT=$(git log -1 --format="%H" $BITBUCKET_COMMIT 2>/dev/null)
      - echo $BITBUCKET_COMMIT

      BITBUCKET_COMMIT will then return the full hash.

        1. 3176947538-image.png
          3176947538-image.png
          18 kB
        2. 831595848-image.png
          831595848-image.png
          28 kB

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            Uploaded image for project: 'Bitbucket Cloud'
            1. Bitbucket Cloud
            2. BCLOUD-19393

            BITBUCKET_COMMIT returns short form instead full for `pipelines.pull-requests:`

                pipelines:
                  pull-requests:
                    '**':
                

                returns


                instead full form like within branch driven pipeline

                pipelines:
                  default:
                

                Expected:

                Always return full form.

                Workaround

                Add the following command in your script, prior to using the BITBUCKET_COMMIT variable.

                - export BITBUCKET_COMMIT=$(git log -1 --format="%H" $BITBUCKET_COMMIT 2>/dev/null)
                - echo $BITBUCKET_COMMIT

                BITBUCKET_COMMIT will then return the full hash.

                  1. 3176947538-image.png
                    3176947538-image.png
                    18 kB
                  2. 831595848-image.png
                    831595848-image.png
                    28 kB

                        Unassigned Unassigned
                        bfe5b1ff789a Serge Nazin
                        Votes:
                        35 Vote for this issue
                        Watchers:
                        23 Start watching this issue

                          Created:
                          Updated:

                            Unassigned Unassigned
                            bfe5b1ff789a Serge Nazin
                            Affected customers:
                            35 This affects my team
                            Watchers:
                            23 Start watching this issue

                              Created:
                              Updated: