Skip to content

Commit

Permalink
SMRT-216 Fix jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JarredOlson authored and jmorris-pillar committed Jul 11, 2018
1 parent 4f6990f commit ebecba4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ node('master') {

stage('Deploy Tiller') {
dir('env') {
sh("""
sh('''
if [ $(kubectl get serviceaccount --namespace kube-system | grep -wc tiller) -eq 0 ]; then
kubectl --namespace kube-system create serviceaccount tiller
fi
""")
sh("""
''')
sh('''
if [ $(kubectl get clusterrolebinding --namespace kube-system | grep -wc tiller) -eq 0 ]; then
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
fi
""")
''')
}
}
}
Expand Down

0 comments on commit ebecba4

Please sign in to comment.