Menu
AWS CodeBuild
User Guide (API Version 2016-10-06)

Edit AWS CodeBuild Triggers

You can edit a trigger on a project to schedule a build once every hour, day, or week. You can also edit a trigger to use a custom rule with an Amazon CloudWatch cron expression. For example, using a cron expression, you can schedule a build at a specific time on every weekday. For information about creating a trigger, see Create AWS CodeBuild Triggers.

To edit a trigger:

  1. Open the AWS CodeBuild console at https://console.aws.amazon.com/codebuild/.

  2. In the navigation pane, choose Build projects.

  3. Choose the link for the build project you want to change, and then choose Edit project.

    Note

    By default, the 100 most recent build projects are displayed. To view more build projects, choose a different value for Projects per page or choose the back and forward arrows for Viewing projects.

  4. Do one of the following:

    • Choose the radio button next to the trigger you want to change, choose Actions, and then choose Edit.

    • Choose the link for the trigger you want to change.

  5. From the Frequency drop-down list, choose the frequency for your trigger. If you want to create a frequency using a cron expression, choose Custom.

  6. Specify the parameters for the frequency of your trigger. You can type the first few characters of your selections in the text box to filter drop-down menu items.

    Note

    Start hours and minutes are zero-based. The start minute is a number between zero and 59. The start hour is a number between zero and 23. For example, a daily trigger that starts every day at 12:15 P.M. has a start hour of 12 and a start minute of 15. A daily trigger that starts every day at midnight has a start hour of zero and a start minute of zero. A daily trigger that starts every day at 11:59 P.M. has a start hour of 23 and a start minute of 59.

    Frequency Required Parameters Details
    Hourly
    • Start minute

    • Use the Start minute drop-down menu.

    Daily
    • Start minute

    • Start hour

    • Use the Start minute drop-down menu.

    • Use the Start hour drop-down menu.

    Weekly
    • Start minute

    • Start hour

    • Start day

    • Use the Start minute drop-down menu.

    • Use the Start hour drop-down menu.

    • Use the Start day drop-down menu.

    Custom
    • Cron expression

    Type a cron expression in Cron expression. A cron expression has six required fields that are separated by white space. The fields specify a start value for minute, hour, day of month, month, day of week, and year. You can use wildcards to specify a range, additional values, and more. For example, the cron expression 0 9 ? * MON-FRI * schedules a build every weekday at 9:00 A.M. For more information, see Cron Expressions.

  7. Select Enable this trigger to enable the trigger.

Note

You can use the Amazon CloudWatch console at https://console.aws.amazon.com/cloudwatch/ to edit source version, timeout, and other options that are not available in AWS CodeBuild.