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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

"Single daily build" trigger with custom variable

Hi all!

We have a plan with a required variable - everyone who runs the plan has to specify it manually using "Run customised..." -> "Override a variable".

Now I want to add two "Single daily build" triggers:

  1. Triggers everyday at 4am with this variable overridden with value "X"

  2. Triggers everyday at 6am with this variable overridden with value "Y"

Is there a way to do it? Seems that triggers don't know anything about variables.

1 answer

0 votes

Hi @Anton_Egorov

You won't be able to use Bamboo triggers to achieve this, as you already know.

What you can do instead is to configure your server cron or even create a special plan in Bamboo that will serve as your cron to call the following REST API:

curl --user <USER>:<PASSWORD> --data "bamboo.variable=value" -X POST <BAMBOO-URL>/rest/api/latest/queue/<PLAN-KEY>

Using this endpoint you are able to start a build with the specified variable you want.

In case you want to create a special build in Bamboo for that, then you will need to create a script task to check the time and decide whether the variable to be passed is X or Y.

I hope that helps.

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

675 views 1 6
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