From 1ab63348f8a8619e3386fa19dbaa0ff0d150339a Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 27 Aug 2024 09:44:58 +0200
Subject: [PATCH] OZG-4833 dependency track

---
 Jenkinsfile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index a8a9f5e76..68d5ff909 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -183,15 +183,16 @@ pipeline {
         
         stage ('Deploy SBOM to DependencyTrack') {
             steps {
-              script {
-                IMAGE_TAG = generateImageTag('pom.xml')
+                script {
+                    IMAGE_TAG = generateImageTag('pom.xml')
 
-                configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
-                    withCredentials([string(credentialsId: 'dependency-track-api-key', variable: 'API_KEY')]) {
+                    configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
+                        withCredentials([string(credentialsId: 'dependency-track-api-key', variable: 'API_KEY')]) {
 
-                        dir('vorgang-manager-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"
+                            dir('vorgang-manager-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"
+                                }
                             }
                         }
                     }
-- 
GitLab