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

fix jenkinsfile

parent 9319b547
No related branches found
No related tags found
Loading
...@@ -84,7 +84,7 @@ pipeline { ...@@ -84,7 +84,7 @@ pipeline {
when { when {
anyOf { anyOf {
branch 'master' branch 'master'
# branch 'release' branch 'release'
} }
} }
steps { steps {
...@@ -114,12 +114,12 @@ pipeline { ...@@ -114,12 +114,12 @@ pipeline {
tagAndPushDockerImage('formcycle-adapter', 'snapshot-latest') tagAndPushDockerImage('formcycle-adapter', 'snapshot-latest')
tagAndPushDockerImage('xta-adapter', 'snapshot-latest') tagAndPushDockerImage('xta-adapter', 'snapshot-latest')
} }
# else if (env.BRANCH_NAME == 'release') { else if (env.BRANCH_NAME == 'release') {
# tagAndPushDockerImage('intelliform-adapter', 'latest') tagAndPushDockerImage('intelliform-adapter', 'latest')
# tagAndPushDockerImage('formsolutions-adapter', 'latest') tagAndPushDockerImage('formsolutions-adapter', 'latest')
# tagAndPushDockerImage('formcycle-adapter', 'latest') tagAndPushDockerImage('formcycle-adapter', 'latest')
# tagAndPushDockerImage('xta-adapter', 'latest') tagAndPushDockerImage('xta-adapter', 'latest')
# } }
} }
} }
} }
...@@ -180,7 +180,7 @@ pipeline { ...@@ -180,7 +180,7 @@ pipeline {
} }
stage('Trigger Test rollout') { stage('Trigger Test rollout') {
when { when {
# branch 'release' branch 'release'
} }
steps { steps {
...@@ -200,7 +200,7 @@ pipeline { ...@@ -200,7 +200,7 @@ pipeline {
when { when {
anyOf { anyOf {
branch 'master' branch 'master'
# branch 'release' branch 'release'
} }
} }
steps { steps {
...@@ -231,12 +231,12 @@ pipeline { ...@@ -231,12 +231,12 @@ pipeline {
Void deployHelmChart(String helmChartName, String helmChartVersion) { Void deployHelmChart(String helmChartName, String helmChartVersion) {
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]){ withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]){
# if (env.BRANCH_NAME == 'release') { if (env.BRANCH_NAME == 'release') {
# result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps -F #file=@'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps -F #file=@'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true
# } }
# else { else {
result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps-snapshot -F file=@'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true result = sh script: '''curl -u $USERNAME:$PASSWORD https://nexus.ozg-sh.de/service/rest/v1/components?repository=ozg-base-apps-snapshot -F file=@'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true
# } }
if (result != '') { if (result != '') {
error(result) error(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment