Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIGOV-26359 - add blackduck #182

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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]
Expand Down