Editing a Trigger

Update trigger details.

For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.

    1. Open the navigation menu and click Developer Services. Under DevOps, click Projects.
    2. On the DevOps Projects page, select a project.
    3. On the details page of the project, from the left side, click Triggers.
    4. Select a trigger that you want to update and click Edit.
    5. In the Edit trigger panel, you can make the following updates:
      • Update name and description, as needed.

        You can't modify the source connection.

      • For OCI code repository, you can change the code repository. In the Select code repository section, click Select and in the Select code repository panel, update the selection and save the changes.
      • For Bitbucket Cloud and Visual Builder Studio, you can update the connection containing the authentication credentials and the base URL. Connection is required for file-based triggers with Push event.
      • To add build pipeline and actions to the trigger, click Add action.
      • In the Add action panel, select a build pipeline to trigger.
      • (Optional) Select an event from the following options to trigger the build run:
        • Pull Request Created
        • Push
        • Pull Request Updated
        • Pull Request Merged
        • Pull Request Reopened
        Note

        Event availability varies based on the type of code repository. For OCI code repository, only the Push event is supported. For Bitbucket Cloud and Bitbucket Server, the Pull Request Reopened event is not supported.
      • Click Add action.
      • To edit an existing action, click the Actions menu Actions Menu to the right of the action that you want to edit and select Edit.
      • In the Edit action panel, you can modify the build pipeline and events. Click Save changes.
      • To remove an action, click the Actions menu Actions Menu to the right of the action that you want to delete and select Remove.
      • In the Remove action dialog box, click Remove.
    6. Click Save changes.
  • To update an OCI code repository trigger, run the update-devops-code-repo-trigger command:

    oci devops trigger update-devops-code-repo-trigger --trigger-id

    To update a GitHub trigger, run the update-github-trigger command:

    oci devops trigger update-github-trigger --trigger-id

    To update a GitLab trigger, run the update-gitlab-trigger command:

    oci devops trigger update-gitlab-trigger --trigger-id

    To update a Bitbucket Cloud trigger, run the update-bitbucket-cloud-trigger command:

    oci devops trigger update-bitbucket-cloud-trigger --trigger-id

    To update a Visual Builder Studio trigger, run the update-vbs-trigger command:

    oci devops trigger update-vbs-trigger --trigger-id

    To update a Bitbucket Server trigger, run the update-bitbucket-server-trigger command:

    oci devops trigger update-bitbucket-server-trigger --trigger-id

    To update a GitLab Server trigger, run the update-gitlab-server-trigger command:

    oci devops trigger update-gitlab-server-trigger --trigger-id

    To get all the commands for trigger:

    oci devops trigger -h
  • To edit a trigger, use the UpdateTrigger operation.