Add logging groups
This commit is contained in:
@ -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
|
||||
|
@ -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::"
|
||||
}
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user