Feature/jdk upgrade #17
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') {
|
stage('Build and test') {
|
||||||
steps {
|
steps {
|
||||||
withMaven(maven: 'maven-3.9.16', globalMavenSettingsConfig: 'locusworks-settings') {
|
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 {
|
post {
|
||||||
|
|||||||
Reference in new issue
Block a user