Skip to content
Snippets Groups Projects
Commit f94fafd9 authored by OZGCloud's avatar OZGCloud
Browse files

reactivate Jenkins file for release

parent 230bc78f
No related branches found
No related tags found
No related merge requests found
...@@ -56,9 +56,9 @@ pipeline { ...@@ -56,9 +56,9 @@ pipeline {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
} }
// configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
// sh './mvnw -pl user-manager-interface -s $MAVEN_SETTINGS clean deploy -Dmaven.wagon.http.retryHandler.count=3' sh './mvnw -pl user-manager-interface -s $MAVEN_SETTINGS clean deploy -Dmaven.wagon.http.retryHandler.count=3'
// } }
} }
} }
...@@ -67,10 +67,10 @@ pipeline { ...@@ -67,10 +67,10 @@ pipeline {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
// configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
// sh './mvnw -pl user-manager-server -s $MAVEN_SETTINGS clean deploy -Dmaven.wagon.http.retryHandler.count=3' sh './mvnw -pl user-manager-server -s $MAVEN_SETTINGS clean deploy -Dmaven.wagon.http.retryHandler.count=3'
// junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
// } }
} }
} }
} }
...@@ -80,32 +80,28 @@ pipeline { ...@@ -80,32 +80,28 @@ pipeline {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
// withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) {
// configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
// sh './mvnw -pl user-manager-server -s $MAVEN_SETTINGS clean verify -Pnative -Dquarkus.container-image.registry=docker.ozg-sh.de -Dquarkus.container-image.username=${USER} -Dquarkus.container-image.password=${PASSWORD} -Dquarkus.container-image.push=true -Dquarkus.container-image.build=true -Dquarkus.native.remote-container-build=true -Dmaven.wagon.http.retryHandler.count=3' sh './mvnw -pl user-manager-server -s $MAVEN_SETTINGS clean verify -Pnative -Dquarkus.container-image.registry=docker.ozg-sh.de -Dquarkus.container-image.username=${USER} -Dquarkus.container-image.password=${PASSWORD} -Dquarkus.container-image.push=true -Dquarkus.container-image.build=true -Dquarkus.native.remote-container-build=true -Dmaven.wagon.http.retryHandler.count=3'
// } }
// } }
} }
} }
} }
stage ('OWASP Dependency-Check Vulnerabilities') { stage ('OWASP Dependency-Check Vulnerabilities') {
steps { steps {
script { dependencyCheck additionalArguments: '''
FAILED_STAGE=env.STAGE_NAME -o "./"
} -s "./"
-f "ALL"
// dependencyCheck additionalArguments: ''' -d /dependency-check-data
// -o "./" --suppression dependency-check-supressions.xml
// -s "./" --disableKnownExploited
// -f "ALL" --disableArchive
// -d /dependency-check-data --prettyPrint''', odcInstallation: 'dependency-check-owasp'
// --suppression dependency-check-supressions.xml
// --disableKnownExploited
// --disableArchive
// --prettyPrint''', odcInstallation: 'dependency-check-owasp'
// dependencyCheckPublisher pattern: 'dependency-check-report.xml' dependencyCheckPublisher pattern: 'dependency-check-report.xml'
} }
} }
...@@ -117,17 +113,17 @@ pipeline { ...@@ -117,17 +113,17 @@ pipeline {
script { script {
FAILED_STAGE=env.STAGE_NAME FAILED_STAGE=env.STAGE_NAME
// configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) { configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
// dir('user-manager-server') { dir('user-manager-server') {
// try { try {
// withSonarQubeEnv('sonarqube-ozg-sh'){ withSonarQubeEnv('sonarqube-ozg-sh'){
// sh "./mvnw -s $MAVEN_SETTINGS package sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=${env.WORKSPACE}/user-manager-server/target/jacoco-report/jacoco.xml" sh "./mvnw -s $MAVEN_SETTINGS package sonar:sonar -Dsonar.coverage.jacoco.xmlReportPaths=${env.WORKSPACE}/user-manager-server/target/jacoco-report/jacoco.xml"
// } }
// } catch (Exception e) { } catch (Exception e) {
// unstable("SonarQube failed") unstable("SonarQube failed")
// } }
// } }
// } }
} }
} }
} }
...@@ -136,16 +132,16 @@ pipeline { ...@@ -136,16 +132,16 @@ pipeline {
steps { steps {
script { script {
FAILED_STAGE = env.STAGE_NAME FAILED_STAGE = env.STAGE_NAME
// IMAGE_TAG = generateImageTag() IMAGE_TAG = generateImageTag()
// tagAndPushDockerImage(IMAGE_TAG) tagAndPushDockerImage(IMAGE_TAG)
// if (env.BRANCH_NAME == 'master') { if (env.BRANCH_NAME == 'master') {
// tagAndPushDockerImage('snapshot-latest') tagAndPushDockerImage('snapshot-latest')
// } }
// else if (env.BRANCH_NAME == 'release') { else if (env.BRANCH_NAME == 'release') {
// tagAndPushDockerImage('latest') tagAndPushDockerImage('latest')
// } }
} }
} }
} }
...@@ -159,11 +155,11 @@ pipeline { ...@@ -159,11 +155,11 @@ pipeline {
dir('src/main/helm') { dir('src/main/helm') {
sh "helm lint -f ../../test/unit-values.yaml" sh "helm lint -f ../../test/unit-values.yaml"
sh "helm unittest --helm3 -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' ." sh "helm unittest -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' ."
sh "helm package --version=${HELM_CHART_VERSION} ." sh "helm package --version=${HELM_CHART_VERSION} ."
// deployHelmChart(HELM_CHART_VERSION) deployHelmChart(HELM_CHART_VERSION)
} }
} }
} }
...@@ -195,11 +191,11 @@ pipeline { ...@@ -195,11 +191,11 @@ pipeline {
script { script {
FAILED_STAGE = env.STAGE_NAME FAILED_STAGE = env.STAGE_NAME
// cloneGitopsRepo() cloneGitopsRepo()
// setNewTestUserManagerVersion() setNewTestUserManagerVersion()
// pushTestGitopsRepo() pushTestGitopsRepo()
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment