Skip to content

Commit 4de3045

Browse files
committed
Fix workflows ignoring the results of the maven process
When the Maven log is piped to a file, then the Maven status was ignored.
1 parent 49ff784 commit 4de3045

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/quality-monitor-jenkins.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ jobs:
4040
env:
4141
BROWSER: chrome-container
4242
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
43-
run: mvn -V --color always -ntp clean verify -Pci -Powasp | tee maven.log
43+
run: |
44+
mvn -V --color always -ntp clean verify -Pci -Powasp | tee maven.log
45+
if [ "${PIPESTATUS[0]}" != "0" ]; then
46+
exit 1;
47+
fi
4448
- name: Extract pull request number
4549
uses: jwalton/gh-find-current-pr@v1
4650
id: pr

0 commit comments

Comments
 (0)