Commit 2f80ba3e authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

feat(dep-check): support disabling dependency-check

closes #11
parent ee13c0e2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ It is bound to the `test` stage and use the following variable :

| Name                          | description                                   | default value          |
| ----------------------------- | --------------------------------------------- | ---------------------- |
| `GRADLE_DEPENDENCY_CHECK_DISABLED` | Set to `true` to disable this job        | _none_ (enabled) |
| `GRADLE_DEPENDENCY_CHECK_TASK` | Name of the gradle task launching the analysis | `dependencyCheckAnalyze` |

A Dependency-Check is a quite long operation and therefore the job is configured to be ran __manually__ by default (overridable).
+14 −6
Original line number Diff line number Diff line
@@ -49,15 +49,23 @@
      "description": "Name of code coverage report",
      "default": "jacocoTestReport.csv",
      "advanced": true
    },
    }
  ],
  "features": [
    {
      "id": "dependency-check",
      "name": "Dependency Check",
      "description": "Runs a Gradle dependency check",
      "disable_with": "GRADLE_NO_DEPENDENCY_CHECK",
      "variables": [
        {
          "name": "GRADLE_DEPENDENCY_CHECK_TASK",
      "description": "Name of the gradle task launching the analysis",
          "description": "The dependency-check task that is invoked",
          "default": "dependencyCheckAnalyze",
          "advanced": true
        }
  ],
  "features": [
      ]
    },
    {
      "id": "publish",
      "name": "Publish (snapshot & release)",
+2 −0
Original line number Diff line number Diff line
@@ -351,6 +351,8 @@ gradle-dependency-check:
    paths:
      - "$GRADLE_PROJECT_DIR/**/build/reports/"
  rules:
    - if: '$GRADLE_DEPENDENCY_CHECK_DISABLED == "true"'
      when: never
    # on schedule: auto
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
      allow_failure: true