Skip to content

Commit f68d791

Browse files
Onboard jenkins prod docker images to github actions (#924)
Signed-off-by: Peter Zhu <[email protected]>
1 parent bbef1eb commit f68d791

File tree

3 files changed

+21
-74
lines changed

3 files changed

+21
-74
lines changed

.github/workflows/dco.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/reports-scheduler-release-workflow.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/reports-scheduler-test-and-build-workflow.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,25 @@ name: Test and Build Reports Scheduler
33
on: [push, pull_request]
44

55
jobs:
6+
Get-CI-Image-Tag:
7+
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main
8+
with:
9+
product: opensearch
10+
611
linux-build:
12+
needs: Get-CI-Image-Tag
713
strategy:
814
matrix:
915
java:
1016
- 11
1117
- 17
1218
runs-on: ubuntu-latest
19+
container:
20+
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution
21+
# this image tag is subject to change as more dependencies and updates will arrive over time
22+
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }}
23+
# need to switch to root so that github actions can install runner binary on container without permission issues.
24+
options: --user root
1325

1426
steps:
1527
- name: Set up JDK ${{ matrix.java }}
@@ -20,9 +32,16 @@ jobs:
2032
- name: Checkout Reports Scheduler
2133
uses: actions/checkout@v2
2234

35+
- name: RunBackwards Compatibility Tests
36+
run: |
37+
echo "Running backwards compatibility tests ..."
38+
chown -R 1000:1000 `pwd`
39+
su `id -un 1000` -c "./gradlew bwcTestSuite"
40+
2341
- name: Build with Gradle
2442
run: |
25-
./gradlew build
43+
chown -R 1000:1000 `pwd`
44+
su `id -un 1000` -c "./gradlew build"
2645
2746
- name: Upload coverage
2847
uses: codecov/codecov-action@v1
@@ -35,6 +54,7 @@ jobs:
3554
run: |
3655
mkdir -p reports-scheduler-builds
3756
cp -r ./build/distributions/*.zip reports-scheduler-builds/
57+
chown -R 1000:1000 `pwd`
3858
3959
- name: Upload Artifacts
4060
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)