How to Use MergeBase in: TeamCity
Mergebase
1. Click on MergebaseExample
Find the project you'd like to integrate with MergeBase
2. Click on Edit project...
3. Edit your build configuration
4. Click on Build Steps
5. Click on Add build step
6. Click on Command Line
7. Paste selected text into text area
8. Grab your MergeBase Customer Token
Go to the MergeBase dashboard and click on "Settings"
9. Find your Customer Token here
Copy this token for your GitlabCI script
10. Add the following script:
wget --header="X-Authorization: [token-here]" https://[your-url-here].mergebase.com/api/update/clt/mergebase.jar java -jar mergebase.jar --name=TestPipeline . # you can change '.' to the dependency file for your project # optionally: add --ignoreExitCode if you want the build to succeed even when the project has vulnerabilities11. Save your changes
12. Click on Run
13. Head back to the MergeBase dashboard
As you can see, your project has been scanned and you can view the full report for your application.