Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 767 Bytes

builds-setting-triggers-manually.adoc

File metadata and controls

38 lines (30 loc) · 767 Bytes

Setting triggers manually

Triggers can be added to and removed from build configurations with oc set triggers.

Procedure
  • To set a GitHub webhook trigger on a build configuration, use:

    $ oc set triggers bc <name> --from-github
  • To set an imagechange trigger, use

    $ oc set triggers bc <name> --from-image='<image>'
  • To remove a trigger, add --remove:

    $ oc set triggers bc <name> --from-bitbucket --remove
Note

When a webhook trigger already exists, adding it again regenerates the webhook secret.

For more information, consult the help documentation with oc set triggers --help