How to Use MergeBase in: TeamCity

Oscar van der Meer

Created Feb 25, 2022

How to Use MergeBase in: TeamCity

29
    s

Mergebase

13 Steps
1

Click on MergebaseExample

Find the project you'd like to integrate with MergeBase

Click on MergebaseExample
2

Click on Edit project...

Click on Edit project...
3

Edit your build configuration

Edit your build configuration
4

Click on Build Steps

Click on Build Steps
5

Click on Add build step

Click on Add build step
6

Click on Command Line

Click on Command Line
7

Paste selected text into text area

Paste selected text into text area
8

Grab your MergeBase Customer Token

Go to the MergeBase dashboard and click on "Settings"

Grab your MergeBase Customer Token
9

Find your Customer Token here

Copy this token for your GitlabCI script

Find your Customer Token here
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 vulnerabilities
Add the following script:
11

Save your changes

Save your changes
12

Click on Run

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.

Head back to the MergeBase dashboard
Well done!
Create how-to guides like this in a snap. Get Tango now.