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

Bamboo "Source Code Checkout" references old commit

Matt Longley
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, 2019

So, I have a Bamboo job that consists of a few tasks:

- A series of SSH tasks that performs the build for my project. The last step wraps everything up in a .zip file and commits/pushes that .zip file to BitBucket.

- Source Code Checkout

- Maven, which basically takes the .zip file and publishes it as an artifact somewhere else

The problem I'm having is that the version of the published artifact is always one iteration out of date, because Source Code Checkout appears to only care about the state of the repository when the job is initiated. It misses the commit/push done at the end of the SSH tasks. The next run of the job picks it up. So, what's the most elegant and correct way to fix this?

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events