Skip to content

Commit e50fb05

Browse files
committed
BUILD-9431: Wrap orchestrate_sonar_platforms output
1 parent 7f0f15e commit e50fb05

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

shared/common-functions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ orchestrate_sonar_platforms() {
7474
done
7575
echo "=== ORCHESTRATOR: Completed Sonar analysis on all platforms ==="
7676
else
77+
echo "::group::Sonar analysis on $SONAR_PLATFORM"
7778
echo "=== ORCHESTRATOR: Running Sonar analysis on selected platform: $SONAR_PLATFORM ==="
7879
set_sonar_platform_vars "$SONAR_PLATFORM"
7980
# CALLBACK: Hand control back to build script's implementation
8081
sonar_scanner_implementation "$@"
82+
echo "::endgroup::"
8183
fi
8284
}
8385

spec/build-maven_spec.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,12 @@ Describe 'orchestrate_sonar_platforms()'
238238
export SONAR_PLATFORM="next"
239239
When call orchestrate_sonar_platforms "-Dsome.property=value"
240240
The status should be success
241-
The lines of stdout should equal 3
242-
The line 1 should include "ORCHESTRATOR: Running Sonar analysis on selected platform: next"
243-
The line 2 should include "Using Sonar platform: next"
244-
The line 3 should include "sonar_scanner_implementation -Dsome.property=value"
241+
The lines of stdout should equal 5
242+
The line 1 should equal "::group::Sonar analysis on next"
243+
The line 2 should include "ORCHESTRATOR: Running Sonar analysis on selected platform: next"
244+
The line 3 should include "Using Sonar platform: next"
245+
The line 4 should include "sonar_scanner_implementation -Dsome.property=value"
246+
The line 5 should equal "::endgroup::"
245247
End
246248

247249
It 'runs analysis on all platforms when shadow scans enabled'

0 commit comments

Comments
 (0)