Add logging groups

This commit is contained in:
Andreas Dangel
2020-11-13 14:44:39 +01:00
parent 7e35165c01
commit 9877ea7f96
3 changed files with 22 additions and 1 deletions

View File

@ -10,13 +10,17 @@ set -e
maven_dependencies_resolve
log_group_start "Building with maven"
./mvnw -e -V clean verify
log_group_end
# Danger is executed only on the linux runner
case "$(uname)" in
Linux*)
log_info "Executing danger..."
log_group_start "Executing danger"
regression_tester_setup_ci
regression_tester_executeDanger
log_group_end
;;
esac

View File

@ -19,3 +19,12 @@ function log_debug() {
#true
echo -e "[DEBUG ] $*"
}
function log_group_start() {
echo "::group::$*"
log_info $*
}
function log_group_end() {
echo "::endgroup::"
}

View File

@ -1,4 +1,8 @@
#
# needs "inc/logger.inc"
#
#
# On azure, outgoing idle connection are dropped after 4 minutes.
# Usually, you can configure wagon with ttl. But these settings are
@ -13,6 +17,8 @@
# execpt for dokka-maven-plugin, as it does not play well with dependency-plugin.
#
function maven_dependencies_resolve() {
log_group_start "Downloading maven dependencies"
dokka_version=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${dokka.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:3.0.0:exec)
./mvnw dependency:resolve
@ -22,4 +28,6 @@ function maven_dependencies_resolve() {
-Dpackaging=jar \
-DremoteRepositories=jcenter::default::https://jcenter.bintray.com/
./mvnw dependency:resolve-plugins -DexcludeGroupIds=org.jetbrains.dokka
log_group_end
}