Generic CI
Integrating Meterian into your CI platform is very simple and it requires very few .steps. In this section we will explain the different type of integrations.
The only prerequisite is a Meterian API Token
Set the METERIAN_API_TOKEN
Specify a secret variable named “METERIAN_API_TOKEN” in the “Environment” section of your CI platform
Integration with Meterian-Docker-Scanner
Easy version
Pre-requisites: Docker, Bash and WGet
In the CI taks / Pipeline add this snippet:
wget -q https://raw.githubusercontent.com/MeterianHQ/meterian-scanner-docker/master/scripts/meterian-docker-ci
bash meterian-docker-ci [Meterian CLI Options]
Advanced version
Pre-requisites: Docker
In the CI taks / Pipeline add this snippet:
docker pull --quiet meterian/cli
docker run --rm --volume ${PWD}:/workspace --env METERIAN_API_TOKEN=$METERIAN_API_TOKEN meterian/cli [Meterian CLI Options]
What does it do?
The latest version of the Meterian Dockerized client will be downloaded into the CI machine and it will run the Meterian analysis against your project
Integration with the Meterian Client
Pre-requisites: Java8, Languages package managers
In the CI tasks / Pipeline add this snippet:
wget -N https://www.meterian.io/downloads/meterian-cli.jar
java -jar meterian-cli.jar [Meterian CLI Options]
What does it do?
The latest version of the Meterian Thin Client will be downloaded to the workspace of your CI task and it will run the Meterian analysis against your project.
Learn more about the Meterian Client here.
Last updated
Was this helpful?