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 [Meterian CLI Options] as container command.
Learn more about the Meterian Client here.
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.