diff --git a/.ci/build-pr.sh b/.ci/build-pr.sh index 14a39f9fd5..8aaea771d1 100755 --- a/.ci/build-pr.sh +++ b/.ci/build-pr.sh @@ -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 diff --git a/.ci/inc/logger.inc b/.ci/inc/logger.inc index 0ea7231b60..0ed1f96ce3 100644 --- a/.ci/inc/logger.inc +++ b/.ci/inc/logger.inc @@ -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::" +} \ No newline at end of file diff --git a/.ci/inc/maven-dependencies.inc b/.ci/inc/maven-dependencies.inc index 2c48bc39a4..64afe8b95c 100644 --- a/.ci/inc/maven-dependencies.inc +++ b/.ci/inc/maven-dependencies.inc @@ -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 }