Bamboo

How to integrate Meterian with Bamboo pipeline

In this section we'll explain how to integrate Meterian with Bamboo pipeline.

  • After creating the plan, in the plan configuration dashboard, add a new Job:

  • Create a new Job and fill the field as displayed in the image

  • Select the newly created Job, add a new Task and select Docker as Task type

  • Now fill the field as specified in the image

Make sure you select "Run a Docker container", specify meterian/cli as Docker image, METERIAN_API_TOKEN as container environment variable and java -jar ~/meterian-cli.jar as container command.

To retrieve a Meterian Api Token simply go to the Meterian Dashboard, select the tab "Tokens" and create a new one, or use an existing one.

How does it work

Bamboo docker will download and set the Meterian container, which contains the latest version of the Meterian client and the building tools for all the supported languages, then Meterian will be launched against the project.

Finally, given the result of the scan, the Bamboo task will pass or it will fail.

‚Äč