Skip to content

Commit

Permalink
chore: add timestamp to maven build logs (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
meltsufin authored Sep 29, 2023
1 parent 46d597d commit 36b9977
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
export PATH="${HOME}/google-cloud-sdk/bin:${PATH}"
gcloud components install app-engine-java --quiet
./mvnw -B -U --fail-at-end clean verify
./mvnw -B -U --fail-at-end clean verify -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS
2 changes: 1 addition & 1 deletion kokoro/continuous.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ copy settings.xml "%HOME%\.m2"
call gcloud.cmd components update --quiet
call gcloud.cmd components install app-engine-java --quiet

call mvnw.cmd clean install cobertura:cobertura -B -U
call mvnw.cmd clean install cobertura:cobertura -B -U -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS

exit /b %ERRORLEVEL%
4 changes: 2 additions & 2 deletions kokoro/continuous.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ cp settings.xml ${HOME}/.m2
if [ "$EUID" -ne 0 ]
then
# not running as root
./mvnw clean install cobertura:cobertura -B -U
./mvnw clean install cobertura:cobertura -B -U -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS
else
# running as root - skip file permissions tests that don't work on Docker
./mvnw clean install cobertura:cobertura -B -U -Dtest=!FilePermissionsTest
./mvnw clean install cobertura:cobertura -B -U -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS -Dtest=!FilePermissionsTest
fi
2 changes: 1 addition & 1 deletion kokoro/continuous_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ cd github/appengine-plugins-core
mkdir -p ${HOME}/.m2
cp settings.xml ${HOME}/.m2

./mvnw clean install cobertura:cobertura -B -U
./mvnw clean install cobertura:cobertura -B -U -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS
2 changes: 1 addition & 1 deletion kokoro/release_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cd github/appengine-plugins-core
mkdir -p ${HOME}/.m2
cp settings.xml ${HOME}/.m2

mvn -Prelease -B -U verify -Dtest=!FilePermissionsTest
mvn -Prelease -B -U verify -Dtest=!FilePermissionsTest -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS

# copy pom with the name expected in the Maven repository
ARTIFACT_ID=$(mvn -B help:evaluate -Dexpression=project.artifactId 2>/dev/null | grep -v "^\[")
Expand Down

0 comments on commit 36b9977

Please sign in to comment.