Skip to content

Running Fixinator on GitLab

Pete Freitag edited this page Mar 11, 2019 · 9 revisions
  1. Go to your project page in GitLab
  2. Go to Settings and click on CI / CD then click Expand on Environment Variables. Add your FIXINATOR_API_KEY value and turn on Protected (this prevents the key from being logged in the output). You can get an API key here.
  3. Click the Set up CI/CD button (this is really just a shortcut for creating a file called .gitlab-ci.yml)
  4. Create the Build Script (see Example Build Script)

Example Build Script

image: java:8

before_script:
  - curl --location -o /tmp/box.zip https://www.ortussolutions.com/parent/download/commandbox/type/bin
  - unzip /tmp/box.zip -d /tmp/
  - chmod a+x /tmp/box
  - /tmp/box install fixinator

fixinator: 
  script:
    - /tmp/box fixinator path=. confidence=high

Here is an example GitLab repository job result.