This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description =========== This patch adds snyk monitoring to the build pipeline. It will hook itself into the check and publish stages. The patch also sets a dependency helper plugin `net.wooga.cve-dependency-resolution` which applies overrides for dependencies with know fixes for security issues. Along with the introduction of snyk I also upgraded/removed some depdencies. Coveralls produces a huge load of errors even with the latest version so I decided to remove it since we want/are moving to sonarqube (It is unknown at this time if this dependency is actually better or not). Changes ======= * ![ADD] `snyk` monitoring * ![ADD] `net.wooga.snyk-wdk-java` snyk convention plugin * ![ADD] `net.wogoa.cve-dependency-resolution` plugin * ![REMOVE] coveralls plugin * ![UPDATE] `org.codehaus.groovy:groovy-all` to version `2.5.14` * ![UPDATE] `org.spockframework:spock-core` to version `1.3-groovy-2.5`
- Loading branch information
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
#!groovy | ||
@Library('github.com/wooga/[email protected]') _ | ||
withCredentials([usernamePassword(credentialsId: 'github_integration', passwordVariable: 'githubPassword', usernameVariable: 'githubUser'), | ||
string(credentialsId: 'spock_github_extension_coveralls_token', variable: 'coveralls_token')]) { | ||
string(credentialsId: 'snyk-wdk-token', variable: 'SNYK_TOKEN')]) { | ||
|
||
def testEnvironment = [ | ||
"ATLAS_GITHUB_INTEGRATION_USER=${githubUser}", | ||
"ATLAS_GITHUB_INTEGRATION_PASSWORD=${githubPassword}" | ||
] | ||
buildJavaLibraryOSSRH coverallsToken: coveralls_token, testEnvironment: testEnvironment | ||
withEnv(['SNYK_ORG_NAME=wooga-pipeline', 'SNYK_AUTO_DOWNLOAD=YES']) { | ||
buildJavaLibraryOSSRH testEnvironment: testEnvironment | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters