Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How I can get variable from previous release in bamboo deployment

Yoann Beunardeau
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!
May 10, 2022

Hello,

 

I try to get the revision git number from the previous release in the deployment plan in my bamboo project. I want to get it to make a release between my current git release number and the previous and notify it in a teams channel.

 

Thanks in advance.

Yoann

1 answer

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 10, 2022

Hello @Yoann Beunardeau

The ${bamboo.planRepository.previousRevision} variable is exclusive do build plans. To retrieve it from a Deployment plan you will have to script it.

Please check the following KB that can be adapted to a Deployment plan as a script task to retrieve that information.

 

Regards,

Eduardo Alvarenga
Atlassian Support APAC

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events