Skip to content
Snippets Groups Projects
Commit e0fc6232 authored by Felix Reichenbach's avatar Felix Reichenbach
Browse files

Merge branch 'upload-sbom-to-dependency-track' into 'main'

restore Deploy SBOM to DependencyTrack stage in Jenkinsfile

See merge request !17
parents 2c68e95a 796d47ce
No related branches found
No related tags found
1 merge request!17restore Deploy SBOM to DependencyTrack stage in Jenkinsfile
......@@ -187,7 +187,6 @@ pipeline {
}
}
stage('Trigger Test rollout') {
when {
branch 'release'
......@@ -203,6 +202,23 @@ pipeline {
}
}
}
stage ('Deploy SBOM to DependencyTrack') {
steps {
script {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
withCredentials([string(credentialsId: 'dependency-track-api-key', variable: 'API_KEY')]) {
dir('alfa-server') {
catchError(buildResult: 'UNSTABLE', stageResult: 'FAILURE') {
sh "mvn --no-transfer-progress -s $MAVEN_SETTINGS io.github.pmckeown:dependency-track-maven-plugin:upload-bom -Ddependency-track.apiKey=$API_KEY -Ddependency-track.projectVersion=${IMAGE_TAG} -Ddependency-track.dependencyTrackBaseUrl=https://dependency-track.ozg-sh.de"
}
}
}
}
}
}
}
}
post {
failure {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment