Skip to content

Commit

Permalink
CI: run all gradle commands in one go
Browse files Browse the repository at this point in the history
right now `./gradlew build` could fail but the script would still go on
(because neither `set -e` is set nor `&&` is used to run both commands
together).

running it in two steps gives more visibilty to which step is failing.
note that `publishPluginZipPublicationToZipStagingRepository` is tested
explicitly to ensure that this step works as it has previously failed.

fixes opensearch-project#60

Signed-off-by: Ralph Ursprung <Ralph.Ursprung@avaloq.com>
  • Loading branch information
rursprung committed Jun 11, 2024
1 parent 2ddf039 commit 5f0b84c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:

- name: Build and Run Tests
run: |
./gradlew build
# Generated by 'opensearch.pluginzip' custom gradle plugin
./gradlew publishPluginZipPublicationToZipStagingRepository
./gradlew build
- name: Publish plugin ZIP to staging repository
run: |
./gradlew publishPluginZipPublicationToZipStagingRepository

0 comments on commit 5f0b84c

Please sign in to comment.