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

OZG-4453 run helm tests; add missing space character

parent 711ffe88
Branches
No related tags found
No related merge requests found
...@@ -199,9 +199,8 @@ Void testAndDeployKeycloakHelmChart(String helmChartVersion){ ...@@ -199,9 +199,8 @@ Void testAndDeployKeycloakHelmChart(String helmChartVersion){
Void testAndDeployElasticHelmChart(String helmChartVersion){ Void testAndDeployElasticHelmChart(String helmChartVersion){
dir("${ELASTIC_OPERATOR_NAME}/src/main/helm") { dir("${ELASTIC_OPERATOR_NAME}/src/main/helm") {
//TBD runHelmTests()
//runHelmTests() deployHelmChart(ELASTIC_OPERATOR_NAME, helmChartVersion)
//deployHelmChart(ELASTIC_OPERATOR_NAME, helmChartVersion)
} }
} }
...@@ -213,7 +212,9 @@ Void runHelmTests(){ ...@@ -213,7 +212,9 @@ Void runHelmTests(){
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')]){
result = sh script: '''curl -u $USERNAME:$PASSWORD''' + getHelmRepoUrl() + ''' -F file=@'''+helmChartName+'''-'''+helmChartVersion+'''.tgz''', returnStdout: true def url = getHelmRepoUrl()
echo "Url: ${url}"
def result = sh script: '''curl -u $USERNAME:$PASSWORD''' + url + ''' -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