Oscar van der Meer
Created Feb 22, 2022How to Use MergeBase in: Jenkins
23
wget --header="X-Authorization: [token-here]" https://app.mergebase.com/{customerKey}/api/update/clt/mergebase.jar
# your URL may be in the form: https://trial.mergebase.com/[your-comany-here]/api/update/clt/mergebase.jar
java -jar mergebase.jar --name=TestPipeline ./pom.xml
# optionally: add --ignoreExitCode if you want the build to succeed even when the project has vulnerabilities
Add the customer token to the script from above. You can modify the name of the project and target the file in your application that you'd like to scan. If this is a multi-module project, specify the module you'd like to scan in the command as shown below:
java -jar mergebase.jar --name=YourNameHere ./path/to/scan
Well done!
Create how-to guides like this in a snap. Get Tango now.