Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
3b27dc45
Commit
3b27dc45
authored
May 18, 2021
by
carlosribas
Browse files
Add values
parent
0c4ffa62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
jenkins/wp-kubernetes.jenkinsfile
jenkins/wp-kubernetes.jenkinsfile
+6
-2
No files found.
jenkins/wp-kubernetes.jenkinsfile
View file @
3b27dc45
...
...
@@ -52,10 +52,12 @@ pipeline {
case 'TEST':
env.RELEASE = 'full-dev'
env.NAMESPACE = 'dev'
env.VALUES = '--values=values.dev.yaml'
break
case 'PROD':
env.RELEASE = 'full-prod'
env.NAMESPACE = 'prod'
env.VALUES = ''
break
}
...
...
@@ -63,22 +65,24 @@ pipeline {
withCredentials([file(credentialsId: 'HX-WP-Config', variable: 'config')]) {
sh """
git checkout python3-version
cd kubernetes/helm
echo 'Deleting pods'
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/helm uninstall ${RELEASE} --kubeconfig ${config} --namespace ${NAMESPACE}
sleep 10
echo 'Creating pods'
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/helm upgrade --install ${RELEASE} --kubeconfig ${config} --namespace ${NAMESPACE} --set proxy=proxy-hx,database=${DB},rnacentralBranch=${params.BRANCH}
kubernetes/helm
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/helm upgrade --install ${RELEASE} --kubeconfig ${config} --namespace ${NAMESPACE}
${VALUES}
--set proxy=proxy-hx,database=${DB},rnacentralBranch=${params.BRANCH}
.
"""
}
} else if (params.CLUSTER == 'HH') {
withCredentials([file(credentialsId: 'HH-WP-Config', variable: 'config')]) {
sh """
git checkout python3-version
cd kubernetes/helm
echo 'Deleting pods'
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/helm uninstall ${RELEASE} --kubeconfig ${config} --namespace ${NAMESPACE}
sleep 10
echo 'Creating pods'
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/helm upgrade --install ${RELEASE} --kubeconfig ${config} --namespace ${NAMESPACE} --set proxy=proxy-hh,database=${DB},rnacentralBranch=${params.BRANCH}
kubernetes/helm
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/helm upgrade --install ${RELEASE} --kubeconfig ${config} --namespace ${NAMESPACE}
${VALUES}
--set proxy=proxy-hh,database=${DB},rnacentralBranch=${params.BRANCH}
.
"""
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment