This article explains how to add Trigger a trigger to a Bamboo plan with using Bamboo Command Line Interface (CLI) app.
Instructions
Use addTrigger action to add the a trigger to the plan. Refer to the sample command as follows:
...
Triggering in Bamboo allows plan builds to be started automatically.
...
Execute this action for the trigger type, Polling. Bamboo will 'poll' the selected source code repositories for code changes using a schedule.
Code Block theme Midnight --action addTrigger --plan "MKTES-TP" --type "Polling" --description "polling trigger" --repository "test_training_mk" --schedule "3600"
...
In the above action:
...
- Additionall--regex can be used to filter plans.
Execute this action for the trigger type, Scheduled. Bamboo will trigger scheduled builds of this plan based on a cron expression.
Code Block theme Midnight --action addTrigger --plan "MKTES-TP" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"
...
...
The parameters used in the actions are:
--plan value refers to Bamboo plan key.
--type value refers to the triggering options.
--repository value refers to the repository name.
--schedule value refers to the schedule configuration.
Info |
---|
|