Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Find out git revision of previous successful deploy in pipleline

Deleted user December 3, 2019

I can't find variable that tells latest successful deploy git revision.

 

I want to send notification with list of commits between last build and new build (summary what's new).

 

Current commit is reachable via BITBUCKET_COMMIT.

1 answer

1 accepted

0 votes
Answer accepted
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 16, 2020

Hello,

Pipelines does not currently expose the previous git revision built.

You can get some of this information manually via the Pipelines REST API: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pipelines/#get It'll need a little bit of fiddling to get the right information, but it should be possible.

You can open a feature request to support this natively in Pipelines here: https://jira.atlassian.com/secure/CreateIssue!default.jspa

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events