Skip to content

Commit

Permalink
Update publish.servicenow.plugin.yml (#530)
Browse files Browse the repository at this point in the history
Display gradlew exit code on failure
  • Loading branch information
idimov-keeper authored Sep 15, 2023
1 parent 67b1dc4 commit 3f2f155
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.servicenow.plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ jobs:
sed -i "s/def midserver_agent_dir =.*/def midserver_agent_dir = \'${elibpath}\'/" ${gradlecfg}
cd ${buildroot}
./gradlew jar || echo "Build Failed!"; exit 1
gradlew_return_code=0
./gradlew jar || gradlew_return_code=$?
if (( gradlew_return_code != 0 )); then
echo "Grade build failed with exit status $gradlew_return_code"
exit $gradlew_return_code
fi
dstjarpath=${releasedir}/${buildname}-${version}-${buildversion}.jar
mv ${srcjarpath} ${dstjarpath} || echo "File Copy Failed!"; exit 1
Expand Down

0 comments on commit 3f2f155

Please sign in to comment.