Jenkins
Last updated
Was this helpful?
Last updated
Was this helpful?
The integration of Meterian with a Jenkins task is very simple and it requires just a couple of steps:
First of all set METERIAN_API_TOKEN as environment variable. Environment variable can be set on Configure System from Manage Jenkins.
On the main build task simply add an extra step, selecting 'Execute shell' from the dropdown menu
And copy/paste this code snippet
Jenkins 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 Jenkins task will pass or it will fail.
Learn more about the Meterian Client .
You can of course also the Thin Java client on Jenkins, which you can download as part of the or offline. In order for the client to authenticate, as Jenkins is a headless server, please make sure that the METERIAN_API_TOKEN variable is loaded or that you are using a valid authorization file (see the "" section).