updated caching strategy
Locusworks Team/app-logger/pipeline/head There was a failure building this commit
Locusworks Team/app-logger/pipeline/head There was a failure building this commit
This commit is contained in:
1 parent
b8e81c136f
commit
fde4524f5a
1 file changed
+16
-1
Vendored
+16
-1
@@ -45,10 +45,25 @@ pipeline {
|
||||
}
|
||||
}
|
||||
|
||||
stage('Prepare OWASP cache') {
|
||||
steps {
|
||||
cache(caches: [[
|
||||
$class: 'ArbitraryFileCache',
|
||||
path: "${env.WORKSPACE}/dependency-check-data",
|
||||
includes: '**/*',
|
||||
excludes: ''
|
||||
]]) {
|
||||
withMaven(maven: 'maven-3.9.16', globalMavenSettingsConfig: 'locusworks-settings') {
|
||||
sh 'mvn -B org.owasp:dependency-check-maven:13.0.0:update-only -DdataDirectory="$WORKSPACE/dependency-check-data"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build and test') {
|
||||
steps {
|
||||
withMaven(maven: 'maven-3.9.16', globalMavenSettingsConfig: 'locusworks-settings') {
|
||||
sh 'mvn -B clean verify -Dbuild.revision="$GIT_COMMIT"'
|
||||
sh 'mvn -B clean verify -DdataDirectory="$WORKSPACE/dependency-check-data" -Dbuild.revision="$GIT_COMMIT"'
|
||||
}
|
||||
}
|
||||
post {
|
||||
|
||||
Reference in new issue
Block a user