Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Firstly, let’s take a look the pseudocode our of a reusable pipeline component in mci_compliance.groovy:

...

Code Block
steps {
  // Warning
  mci_compliance(
      env.COMPLIANCE_REPO_CREDENTIALS,
      env.COMPLIANCE_REPO_URL,
      "DEVOPS-WARN",
      "Warnings",
      "",                   // Include everything...
      "fail-ci",            // ...then exclude rules tagged 'fail-ci'
      true                  // Ignore test failures
  )   
  // Fatal
  mci_compliance(
      env.COMPLIANCE_REPO_CREDENTIALS,
      env.COMPLIANCE_REPO_URL,
      "DEVOPS-FAIL",
      "Errors",
      "fail-ci",            # Include only rules tagged 'fail-ci'...
      "",                   # ... then exclude nothing
      false                 # DO NOT ignore test failures
  )
}

See MettleCI System Integrations for more details of CI configuration.

...