Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to deploy on a scheduled trigger only if there is a new build?

I want to schedule a nightly deployment only if there is a new build. Is there a way to do this? 

We tried this, but the release plan ends-up redeploying the latest build. Not exactly what we want-- if the build is not new, then don't deploy. Is this possible? 

1 answer

Hi @Richard Flores ,

Thank you for your inquire.

I want to schedule a nightly deployment only if there is a new build. Is there a way to do this?

Yes, it is possible by running a build nightly that will automatically trigger the deployment. If your build is consuming a repository (Source Code Checkout task) you can add a trigger to your plan that will Poll the repository for changes based on a schedule.

If Bamboo detects a change in the source code, a build of your plan is triggered. In this way you may end-up with what you called as a new build.

Once you have that in place, you can go to your Deployment Environment and setup Triggers for deployment environments.

You could also work with REST API calls and scripting, automating the way Bamboo will run builds and deployments. Those scripts could then be called from Jira, Bitbucket Server, Terminal/Command Prompt or any other.

However, getting back to your initial inquire, there is https://jira.atlassian.com/browse/BAM-14311 - Scheduled deployments should only run if the latest version is different than what is actually deployed in that environment in Atlassian Bamboo's issue tracker.

Please, feel free to add any comments and/or become a watcher so you can get its latest updates.

Kind regards,

Rafael

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program

G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...

1,003 views 0 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you