From 8fc7cf70c3f5970bdb4876c0da6b1dae09c918b3 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 29 Aug 2023 15:23:28 -0400 Subject: [PATCH] Retry switch user on the CI using prod docker images Signed-off-by: Peter Zhu --- .github/workflows/CI.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8dc85091d..2272c54fd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -37,7 +37,10 @@ jobs: - name: Run build run: | - ./gradlew build + pwd + chown -R opensearch.opensearch ./* `pwd` + ls -l ./ ../ + su opensearch -c "whoami && java -version && ./gradlew build" - name: Upload Coverage Report uses: codecov/codecov-action@v1