Skip to content

Commit

Permalink
Fix build logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 15, 2023
1 parent 91660d1 commit b5489c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ RUN --mount=type=cache,target=/home/gradle/.gradle \
COPY checkstyle_* ./
# '&& touch success || true' is a trick to be able to get out some artifacts
RUN --mount=type=cache,target=/home/gradle/.gradle \
(gradle :core:checkstyleMain :core:spotbugsMain :core:violations --stacktrace > /tmp/logs 2>&1) \
&& ( (gradle :core:build :core:explodedWar :core:libSourcesJar :core:libJavadocJar && touch success) || true)
(gradle :core:checkstyleMain :core:spotbugsMain :core:violations --stacktrace) \
&& ( (gradle :core:build :core:explodedWar :core:libSourcesJar :core:libJavadocJar > /tmp/logs 2>&1 && touch success) || true)

ARG GIT_HEAD
ENV GIT_HEAD=${GIT_HEAD}
Expand All @@ -39,6 +39,6 @@ RUN --mount=type=cache,target=/home/gradle/.gradle \

FROM builder AS test-builder

RUN cat /tmp/logs && [ -e success ] && [ -e success-publish ] && [ -e success-examples-docs ]
RUN cat /tmp/logs && ls success success-publish success-examples-docs

VOLUME [ "/src/core" ]

0 comments on commit b5489c9

Please sign in to comment.