How to Use MergeBase in: TeamCity

Mergebase

  1. 1. Click on MergebaseExample

    Find the project you'd like to integrate with MergeBase

    Click on MergebaseExample
  2. 2. Click on Edit project...

    Click on Edit project...
  3. 3. Edit your build configuration

    Edit your build configuration
  4. 4. Click on Build Steps

    Click on Build Steps
  5. 5. Click on Add build step

    Click on Add build step
  6. 6. Click on Command Line

    Click on Command Line
  7. 7. Paste selected text into text area

    Paste selected text into text area
  8. 8. Grab your MergeBase Customer Token

    Go to the MergeBase dashboard and click on "Settings"

    Grab your MergeBase Customer Token
  9. 9. Find your Customer Token here

    Copy this token for your GitlabCI script

    Find your Customer Token here
  10. 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. 11. Save your changes

    Save your changes
  12. 12. Click on Run

    Click on Run
  13. 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