Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use addTrigger action to add a trigger to the plan. Triggering in Bamboo allows plan builds to be started automatically.

The parameters used in the below action:

--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.

  • Execute this action for the trigger type PollingBamboo will 'poll' the selected source code repositories for code changes using a schedule.

    Code Block
    themeMidnight
    --action addTrigger --plan "MKTES-TP" --type "Polling" --description "polling trigger" --repository "test_training_mk" --schedule "3600"


  • Execute this action for the trigger type ScheduledBamboo will trigger scheduled builds of this plan based on a cron expression.

    Code Block
    themeMidnight
    --action addTrigger --plan "MKTES-TP" --type "Scheduled" --description "scheduled trigger" --schedule "1 0 0 ? * *"


  • c


Info

It is recommended to test the commands in a non-production environment before running in the production.

...