Skip to content

Commit 7e94bc2

Browse files
authored
Include submodules to OIDC testing. (mongodb#1703)
1 parent 50c39d3 commit 7e94bc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.evergreen/.evg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,8 @@ functions:
838838
export K8S_DRIVERS_TAR_FILE=/tmp/mongo-java-driver.tar
839839
git archive -o $K8S_DRIVERS_TAR_FILE HEAD
840840
tar -rf $K8S_DRIVERS_TAR_FILE .git
841+
# Loop through all submodule directories and append to the archive
842+
git submodule status --recursive | awk '{ print $2 }' | xargs tar -rf "$K8S_DRIVERS_TAR_FILE"
841843
export K8S_TEST_CMD="OIDC_ENV=k8s VARIANT=${VARIANT} ./.evergreen/run-mongodb-oidc-test.sh"
842844
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/setup-pod.sh
843845
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/run-self-test.sh

0 commit comments

Comments
 (0)