mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
Force WS Project update for mvn plugin (#2575)
In case of policy violations, the scan is failed and default behavior is to not update the project in the WS system. See docs at https://whitesource.atlassian.net/wiki/spaces/WD/pages/33914890/Maven+Plugin. Since this is inconvenient and we also changed the behavior already for NPM, we force the update.
This commit is contained in:
parent
1b16de0734
commit
d41d7bfbac
@ -48,6 +48,7 @@ func TestExecuteScanMTA(t *testing.T) {
|
||||
"-Dorg.whitesource.product=mock-product",
|
||||
"-Dorg.whitesource.checkPolicies=true",
|
||||
"-Dorg.whitesource.failOnError=true",
|
||||
"-Dorg.whitesource.forceUpdate=true",
|
||||
"-Dorg.whitesource.aggregateProjectName=mock-project",
|
||||
"-Dorg.whitesource.aggregateModules=true",
|
||||
"-Dorg.whitesource.userKey=user-token",
|
||||
@ -95,6 +96,7 @@ func TestExecuteScanMTA(t *testing.T) {
|
||||
"-Dorg.whitesource.product=mock-product",
|
||||
"-Dorg.whitesource.checkPolicies=true",
|
||||
"-Dorg.whitesource.failOnError=true",
|
||||
"-Dorg.whitesource.forceUpdate=true",
|
||||
"-Dorg.whitesource.aggregateProjectName=mock-project",
|
||||
"-Dorg.whitesource.aggregateModules=true",
|
||||
"-Dorg.whitesource.userKey=user-token",
|
||||
|
@ -66,6 +66,7 @@ func (s *Scan) generateMavenWhitesourceDefines(config *ScanOptions) []string {
|
||||
"-Dorg.whitesource.product=" + config.ProductName,
|
||||
"-Dorg.whitesource.checkPolicies=true",
|
||||
"-Dorg.whitesource.failOnError=true",
|
||||
"-Dorg.whitesource.forceUpdate=true",
|
||||
}
|
||||
|
||||
// Aggregate all modules into one WhiteSource project, if user specified the 'projectName' parameter.
|
||||
|
@ -47,6 +47,7 @@ func TestExecuteScanMaven(t *testing.T) {
|
||||
"-Dorg.whitesource.product=mock-product",
|
||||
"-Dorg.whitesource.checkPolicies=true",
|
||||
"-Dorg.whitesource.failOnError=true",
|
||||
"-Dorg.whitesource.forceUpdate=true",
|
||||
"-Dorg.whitesource.aggregateProjectName=mock-project",
|
||||
"-Dorg.whitesource.aggregateModules=true",
|
||||
"-Dorg.whitesource.userKey=user-token",
|
||||
@ -108,6 +109,7 @@ func TestExecuteScanMaven(t *testing.T) {
|
||||
"-Dorg.whitesource.product=mock-product",
|
||||
"-Dorg.whitesource.checkPolicies=true",
|
||||
"-Dorg.whitesource.failOnError=true",
|
||||
"-Dorg.whitesource.forceUpdate=true",
|
||||
"-Dorg.whitesource.userKey=user-token",
|
||||
"-Dorg.whitesource.productVersion=product-version",
|
||||
"-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn",
|
||||
|
Loading…
x
Reference in New Issue
Block a user