INFRA-1805 add snyk scanning to corda os 4.4

This commit is contained in:
ronanbrowne88 2022-07-10 19:33:37 +01:00
parent ffc843b64d
commit 8644ab38ff

View File

@ -83,6 +83,7 @@ pipeline {
CORDA_BUILD_EDITION = "${buildEdition}"
DOCKER_URL = "https://index.docker.io/v1/"
EMAIL_RECIPIENTS = credentials('corda4-email-recipient')
SNYK_API_KEY = "c4-os-snyk"
}
stages {
@ -192,6 +193,15 @@ pipeline {
}
}
stage('Snyk Security') {
when {
expression { isReleaseTag || isReleaseCandidate || isReleaseBranch }
}
steps {
snykSecurityScan("${env.SNYK_API_KEY}", "--all-sub-projects --prune-repeated-subdependencies --debug --target-reference='${env.BRANCH_NAME}' --project-tags=Branch='${env.BRANCH_NAME.replaceAll("[^0-9|a-z|A-Z]+","_")}'")
}
}
stage('All Tests') {
when {
expression { params.DO_TEST }