Commit 04654d4b authored by David Diederich's avatar David Diederich
Browse files

Adding output for passed builds

parent 388382ba
......@@ -78,7 +78,9 @@ compile-and-unit-test:
stage: build
script:
# First, build and deploy all the independent POM projects that we find
- xargs -0rn 1 -I {} sh -c "cd '{}' && $MAVEN deploy --update-snapshots -DskipTests=true > maven-output.txt || (tail -n 200 maven-output.txt; echo '**** Showing the last 200 lines of the failed build. See Job artifacts for full log details *****'; exit 255)" < $ALL_MAVEN_BUILD_DIRS_Z
- xargs -0rn 1 -I {} sh -c "cd '{}' && $MAVEN deploy --update-snapshots -DskipTests=true >& maven-output.txt || (tail -n 200 maven-output.txt; echo '**** Showing the last 200 lines of the failed build. See Job artifacts for full log details *****'; exit 255) && (tail -n 100 maven-output.txt; echo '**** Showing the last 100 lines of the passed build. See Job artifacts for full log details *****' ")" < $ALL_MAVEN_BUILD_DIRS_Z
# Then, run the unit tests on the main project only
- $MAVEN test > maven-test-output.txt
- $MAVEN test >& maven-test-output.txt
- tail -n 100 maven-test-output.txt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment