Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Add script for setting up openshift locally and waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulf Lilleengen committed Nov 3, 2017
1 parent 54be7fc commit 5652f97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ node('enmasse') {
}
}
stage('start openshift') {
sh 'oc cluster up $OC_CLUSTER_ARGS'
sh './systemtests/scripts/setup-openshift.sh'
sh 'sudo chmod -R 777 /var/lib/origin/openshift.local.config'
}
stage('install clients'){
Expand Down
10 changes: 10 additions & 0 deletions systemtests/scripts/setup-openshift.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
oc cluster up $OC_CLUSTER_ARGS
oc login -u system:admin
oc cluster status
while [ $? -gt 0 ]
do
sleep 5
oc cluster status
done

sleep 30

0 comments on commit 5652f97

Please sign in to comment.