How to track Gitlab deployments in Jira?

Eldiiar Egemberdiev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 13, 2022

Background

My Jira and Gitlab are integrated. I can see commits and merge requests in Jira. I enabled `Deployments` feature in JIra and can see most of my deployments on the `Deployments` page.

My GitlabCI has the deployment job `deploy_production`. Its `environment` is set to `production`.

Issue

When I run the job, I expect to see the deployment on Jira `deployments` page, but I don't see it there.

This job runs only in the `main` branch. Short living branches can deploy to `development` and they can be seen on the deployments page of Jira. It appears that Jira does not sync main branches properly. 

Is there something I might be doing wrong or is it a bug I should be waiting to be fixed?

 

deploy_production:

image: google/cloud-sdk:alpine

stage: deploy

only:

- main

needs:

- build_app

- build_storybook

environment: production

script:

- echo $SERVICE_ACCOUNT | base64 -d > /tmp/$CI_PIPELINE_ID.json

- gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json

- gcloud --quiet --project $PROJECT_ID app deploy app.yaml

after_script:

- rm /tmp/$CI_PIPELINE_ID.json

when: manual
 

1 answer

0 votes
André Thiesen da Rosa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 11, 2022

I am also having issues with this. 

Jira is tracking commits, branches and merge to dev that contain the issue ID, but when I merge dev to main, it does not track nor recognise the pipeline. 

 

Not sure if I am missing something or this is not working for another reason

 

Thanks

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events