Skip to content

Commit

Permalink
migrate CI/CD scripts to use: 'gradle'
Browse files Browse the repository at this point in the history
Signed-off-by: rs-eliatra <[email protected]>
  • Loading branch information
rs-eliatra committed Jan 31, 2022
1 parent 81ed738 commit f1c3009
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:

- name: Build
run: |
mvn -B clean package -Padvanced -DskipTests
artifact_zip=`ls $(pwd)/target/releases/opensearch-security-*.zip | grep -v admin-standalone`
./gradlew build buildDeb buildRpm --no-daemon -ParchivePath=$artifact_zip -Dbuild.snapshot=false
./gradlew clean build --no-daemon -Dbuild.snapshot=false -x test
artifact_zip=`ls $(pwd)/build/distributions/opensearch-security-*.zip | grep -v admin-standalone`
./gradlew build buildDeb buildRpm --no-daemon -ParchivePath=$artifact_zip -Dbuild.snapshot=false -x test
mkdir artifacts
cp $artifact_zip artifacts/
cp gradle-build/distributions/*.deb artifacts/
cp gradle-build/distributions/*.rpm artifacts/
cp build/distributions/*.deb artifacts/
cp build/distributions/*.rpm artifacts/
zip -r artifacts.zip artifacts
echo "TAG_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Checkstyle
run: mvn -B checkstyle:checkstyle
run: ./gradlew clean checkstyleMain checkstyleTest --no-daemon

- name: Package
run: mvn -B clean package -Padvanced -DskipTests
run: ./gradlew clean build --no-daemon -Dbuild.snapshot=false -x test

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

- name: Test
run: OPENDISTRO_SECURITY_TEST_OPENSSL_OPT=true mvn -B test
run: ./gradlew test --no-daemon

- name: Coverage
uses: codecov/codecov-action@v1
Expand All @@ -64,4 +64,4 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: artifacts
path: target/releases/
path: build/distributions/

0 comments on commit f1c3009

Please sign in to comment.