/AWS1/CL_BLD=>CREATEWEBHOOK()
¶
About CreateWebhook¶
For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_PROJECTNAME
TYPE /AWS1/BLDPROJECTNAME
/AWS1/BLDPROJECTNAME
¶
The name of the CodeBuild project.
Optional arguments:¶
IV_BRANCHFILTER
TYPE /AWS1/BLDSTRING
/AWS1/BLDSTRING
¶
A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If
branchFilter
is empty, then all branches are built.It is recommended that you use
filterGroups
instead ofbranchFilter
.
IT_FILTERGROUPS
TYPE /AWS1/CL_BLDWEBHOOKFILTER=>TT_FILTERGROUPS
TT_FILTERGROUPS
¶
An array of arrays of
WebhookFilter
objects used to determine which webhooks are triggered. At least oneWebhookFilter
in the array must specifyEVENT
as itstype
.For a build to be triggered, at least one filter group in the
filterGroups
array must pass. For a filter group to pass, each of its filters must pass.
IV_BUILDTYPE
TYPE /AWS1/BLDWEBHOOKBUILDTYPE
/AWS1/BLDWEBHOOKBUILDTYPE
¶
Specifies the type of build this webhook will trigger.