Skip to content
This repository was archived by the owner on Feb 24, 2022. It is now read-only.

Commit 035997b

Browse files
committed
mystuff-91 Integrate k8s healthcheck with backend
Fix password in pipeline
1 parent ec94ee2 commit 035997b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pipeline/jenkins/validate.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ private void deployDevEnv(buildVersion, webTag, backTag, projectName, tier) {
236236
def deployName = "${projectName}-${tier}-${buildVersion}"
237237
def webUrl = "${projectName}-${buildVersion}.dev.webtree.org"
238238
def backUrl = "back.${deployName}.webtree.org"
239-
def pass = sh(script:"\$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo '')", returnStdout: true).trim
239+
def pass = sh(script:"head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13 ; echo ''", returnStdout: true).trim()
240240
sh "helm delete ${deployName} --purge || true"
241-
sh "helm install --wait --name=${deployName} --namespace=webtree-${tier} --set nameOverride=${deployName},ingress.web.host=${webUrl},ingress.back.host=${backUrl},images.web.tag=${webTag},images.back.tag=${backTag} -f values.${tier}.yaml neo4j.neo4jPassword=${pass} ."
241+
sh "helm install --wait --name=${deployName} --namespace=webtree-${tier} --set nameOverride=${deployName},ingress.web.host=${webUrl},ingress.back.host=${backUrl},images.web.tag=${webTag},images.back.tag=${backTag},neo4j.neo4jPassword=${pass} -f values.${tier}.yaml ."
242242
def message = "Test system provisioned on url https://${webUrl}. Backend: https://${backUrl}"
243243
sendPrComment("mystuff", env.CHANGE_ID, message)
244244

@@ -257,4 +257,4 @@ private void sendPrComment(repo, issueId, message) {
257257
url: "https://api.github.com/repos/Web-tree/${repo}/issues/${issueId}/comments",
258258
authentication: 'github-repo-token',
259259
validResponseCodes: '201')
260-
}
260+
}

0 commit comments

Comments
 (0)