Skip to content

Commit a6f22bf

Browse files
committed
Include submodules to OIDC testing. (mongodb#1703)
(cherry picked from commit 7e94bc2)
1 parent cb44346 commit a6f22bf

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
@@ -842,6 +842,8 @@ functions:
842842
export K8S_DRIVERS_TAR_FILE=/tmp/mongo-java-driver.tar
843843
git archive -o $K8S_DRIVERS_TAR_FILE HEAD
844844
tar -rf $K8S_DRIVERS_TAR_FILE .git
845+
# Loop through all submodule directories and append to the archive
846+
git submodule status --recursive | awk '{ print $2 }' | xargs tar -rf "$K8S_DRIVERS_TAR_FILE"
845847
export K8S_TEST_CMD="OIDC_ENV=k8s VARIANT=${VARIANT} ./.evergreen/run-mongodb-oidc-test.sh"
846848
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/setup-pod.sh
847849
bash $DRIVERS_TOOLS/.evergreen/auth_oidc/k8s/run-self-test.sh

0 commit comments

Comments
 (0)