Create a build using the latest commit for the specified branch. Please note the resulting build is created with event type custom
.
-
Creates a build using the latest commit to the default branch:
POST /api/repos/{namespace}/{name}/builds
-
Creates a build using the latest commit to the named branch:
POST /api/repos/{namespace}/{name}/builds?branch={branch}
-
Creates a build using the named branch and commit sha:
POST /api/repos/{namespace}/{name}/builds?branch={branch}&commit={commit}
-
Create a build with custom parameters. These parameters will be available to your pipeline steps as environment variables.
POST /api/repos/{namespace}/{name}/builds?branch={branch}&{key=value}
Example Response Body:
|
|
Pipeline Configuration
When you trigger a build using the API the resulting build is created with event type custom
. If you define conditional pipelines or conditional steps based on event type you may need to update accordingly.
Example pipeline condition includes the custom event type:
|
|