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

fix jenkinsfile

parent 3259fafb
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ pipeline {
when {
anyOf {
branch 'master'
# branch 'release'
branch 'release'
}
}
steps {
......@@ -114,12 +114,12 @@ pipeline {
tagAndPushDockerImage('formcycle-adapter', 'snapshot-latest')
tagAndPushDockerImage('xta-adapter', 'snapshot-latest')
}
# else if (env.BRANCH_NAME == 'release') {
# tagAndPushDockerImage('intelliform-adapter', 'latest')
# tagAndPushDockerImage('formsolutions-adapter', 'latest')
# tagAndPushDockerImage('formcycle-adapter', 'latest')
# tagAndPushDockerImage('xta-adapter', 'latest')
# }
else if (env.BRANCH_NAME == 'release') {
tagAndPushDockerImage('intelliform-adapter', 'latest')
tagAndPushDockerImage('formsolutions-adapter', 'latest')
tagAndPushDockerImage('formcycle-adapter', 'latest')
tagAndPushDockerImage('xta-adapter', 'latest')
}
}
}
}
......@@ -180,7 +180,7 @@ pipeline {
}
stage('Trigger Test rollout') {
when {
# branch 'release'
branch 'release'
}
steps {
......@@ -200,7 +200,7 @@ pipeline {
when {
anyOf {
branch 'master'
# branch 'release'
branch 'release'
}
}
steps {
......@@ -231,12 +231,12 @@ pipeline {
Void deployHelmChart(String helmChartName, String helmChartVersion) {
withCredentials([usernamePassword(credentialsId: 'jenkins-nexus-login', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]){
# 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
# }
# else {
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
}
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
# }
}
if (result != '') {
error(result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment