diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5f5c9c36..08873b05 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,9 @@ variables: WS_PROJECT_ID: "agents-mulesoft" WS_CONFIG_FILE: "whitesource.config" + # Blackduck + BLACKDUCK_PROJECT_NAME: "Amplify - APIC Mulesoft Agents" + GIT_TAG_PREFIX: v include: @@ -34,6 +37,7 @@ include: - "/.gitlab-ci-twistlock.yml" - "/.gitlab-ci-iriusrisk.yml" - "/.gitlab-ci-whitesource.yml" + - "/.gitlab-ci-blackduck.yml" - "/.gitlab-ci-csr.yml" - project: "apigov/beano_cicd" ref: $BEANO_CICD_LATEST @@ -107,6 +111,18 @@ whitesource:on-schedule: - echo "Checking out ${GIT_TAG_PREFIX}${LATEST_TAG}" - git checkout ${GIT_TAG_PREFIX}${LATEST_TAG} +blackduck:on-schedule: + extends: .blackduck + rules: + - !reference [.mirror-schedule-csr-rules, rules] + before_script: + - git config --global http.sslVerify false + - git config --global url."ssh://git@git.ecd.axway.org".insteadOf "https://git.ecd.axway.org"'' + - git fetch + - *get-latest-tag + - echo "Checking out ${GIT_TAG_PREFIX}${LATEST_TAG}" + - git checkout ${GIT_TAG_PREFIX}${LATEST_TAG} + # overridden from csrjobs.yml because mirror repos like this one don't get merge events fortify: rules: @@ -122,6 +138,10 @@ whitesource: before_script: - export GOWORK=off +blackduck: + rules: + - !reference [.mirror-branch-csr-rules, rules] + run-csr: rules: - !reference [.mirror-branch-csr-rules, rules]