Fixed jenkinsfile
Locusworks Team/app-logger/pipeline/head This commit looks good

This commit is contained in:
iparenteau committed 2026-09-02 12:28:27 -05:00
1 parent fde4524f5a
commit 4b0f512dcd
1 file changed
+4 -8
Vendored
+4 -8
View File
@@ -47,14 +47,10 @@ pipeline {
stage('Prepare OWASP cache') {
steps {
cache(caches: [[
$class: 'ArbitraryFileCache',
path: "${env.WORKSPACE}/dependency-check-data",
includes: '**/*',
excludes: ''
]]) {
lock(resource: 'owasp-nvd-cache') {
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"'
sh 'mkdir -p "$HOME/.cache/dependency-check"'
sh 'mvn -B org.owasp:dependency-check-maven:13.0.0:update-only -DdataDirectory="$HOME/.cache/dependency-check"'
}
}
}
@@ -63,7 +59,7 @@ pipeline {
stage('Build and test') {
steps {
withMaven(maven: 'maven-3.9.16', globalMavenSettingsConfig: 'locusworks-settings') {
sh 'mvn -B clean verify -DdataDirectory="$WORKSPACE/dependency-check-data" -Dbuild.revision="$GIT_COMMIT"'
sh 'mvn -B clean verify -DdataDirectory="$HOME/.cache/dependency-check" -DautoUpdate=false -Dbuild.revision="$GIT_COMMIT"'
}
}
post {