You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I want to schedule a Bamboo build with various parameters.
For example, if the build has variables like environment , user.
I want to create multiple triggers as below.
1. run every Monday at 5 pm with environment=Dev, user=testuser
2. run every Monday at 6 pm with environment=PROD, user=produser
I want to know how to do this? Is it possible to achieve using cron?
Hello @Mohana Krishna
Welcome to Atlassian Community!
You can implement as many triggers as you want by using a Cron-based Scheduler, but that option will not allow you to set environment variables.
To have that set, you will need to trigger the builds via the REST API and then declare the variables you wish. To know more about how to trigger a Build please check the following documentation:
Make sure you provide the required variables by using the following format
bamboo.variable.myVariable=valueForMyVariable as shown n the REST API example page.
You can then add the REST API scripts to cron and trigger them remotely.
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--