Bamboo Configuration

How to Construct a Webhook URL?

While configuring for Build Triggers in the CI/CD tool, you can see the following instructions for the Authentication Token field to use the URL to trigger the build remotely.

Normal Project + Project with Parameters

The following is an example of constructing the Webhook URL for a normal project and a project with parameters in Bamboo.

The URL suggested in Bamboo during the configuration of Build Triggers:

the Webhook URL provided above follows this syntax:

<bamboo_base_url>/rest/api/latest/queue/${projectKey}-${planKey}

If your Bamboo instance URL is http://qtm4jqabamboo.qmetry.com:8085

Then the URL to trigger the build will be -

http://qtm4jqabamboo.qmetry.com:8085/rest/api/latest/queue/NT-NP1

Authorization

To supply the Authorization header with the value Basic <auth>, perform the following steps:

  1. Build a string of the form username:password using Bamboo credentials.

  2. Encode the string in Base64 format.

  3. Supply an "Authorization" header with the content "Basic " followed by the encoded string. For example, the string "admin:admin" encodes to "YWRtaW46YWRtaW4K" in base64. So the Basic <auth> value would be as follows.

    Basic YWRtaW46YWRtaW4K

Configure CI/CD Rule for Bamboo

CI/CD Rule Without Parameters

You can trigger the CI/CD Rule for Bamboo jobs without parameters and for parameterized Bamboo jobs. This section displays the triggering of the CI/CD Rule for Bamboo jobs without parameters.

Bamboo Config Without Parameter

CI/CD Rule With Query Parameters

You can trigger the CI/CD Rule for parameterized Bamboo jobs. The parameterized job contains global variables in the Bamboo configuration.

Bamboo Config CI/CD With Query Parameters
Publication date: