Skip to content

Commit

Permalink
Checkout a specific workbench branch
Browse files Browse the repository at this point in the history
  • Loading branch information
RHRolun committed Sep 30, 2024
1 parent 5b8fc51 commit 6202b5d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
WORKBENCH_NAME="my-workbench"
WORKBENCH_IMAGE="ic-workbench:1.2"
PIPELINE_ENGINE="Argo"
BRANCH_NAME="dev"
for i in $(seq 1 $user_count);
do
Expand Down Expand Up @@ -527,7 +528,7 @@ spec:
args:
- -ec
- |-
pod_name=\$(oc get pods --selector=app=$WORKBENCH_NAME -o jsonpath='{.items[0].metadata.name}') && oc exec \$pod_name -- git clone https://github.com/rh-aiservices-bu/parasol-insurance
pod_name=\$(oc get pods --selector=app=$WORKBENCH_NAME -o jsonpath='{.items[0].metadata.name}') && oc exec \$pod_name -- bash -c "git clone https://github.com/rh-aiservices-bu/parasol-insurance && cd parasol-insurance && git checkout $BRANCH_NAME"
restartPolicy: Never
EOF
Expand Down

0 comments on commit 6202b5d

Please sign in to comment.