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
To retrieve a Meterian API Token visit the Meterian Dashboard; in your account select the tab "Tokens" and create a new one, or use an existing one.
API tokens are available only on paid account. To upgrade your subscription, please contact us.
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:
Advanced version
Pre-requisites: Docker
In the CI taks / Pipeline add this snippet:
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:
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.
The Meterian Thin Client is a Java native application written in Java8, so you will need a suitable JRE installed to your CI environment.
It also requires the package managers for the projects languages:
for example for a NodeJS application it will need to be running in a working NodeJS/NPM installation compatible with your project. This rule applies to every platform.
Learn more about the Meterian Client here.
Last updated