Skip to content

Commit 71cc984

Browse files
PREQ-2738 Fix echo in gradle-build (#149)
1 parent 1d5b4be commit 71cc984

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

build-gradle/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ should_deploy() {
110110

111111
# Disable deployment when shadow scans are enabled to prevent duplicate artifacts
112112
if [[ "${RUN_SHADOW_SCANS}" = "true" ]]; then
113-
echo "Shadow scans enabled - disabling deployment"
113+
echo "Shadow scans enabled - disabling deployment" >&2
114114
return 1
115115
fi
116116

build-maven/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ should_deploy() {
117117

118118
# Disable deployment when shadow scans are enabled to prevent duplicate artifacts
119119
if [[ "${RUN_SHADOW_SCANS}" = "true" ]]; then
120-
echo "Shadow scans enabled - disabling deployment"
120+
echo "Shadow scans enabled - disabling deployment" >&2
121121
return 1
122122
fi
123123

spec/build-gradle_spec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ Describe 'should_deploy'
235235
export RUN_SHADOW_SCANS="true"
236236
When call should_deploy
237237
The status should be failure
238-
The lines of stdout should equal 1
239-
The line 1 should equal "Shadow scans enabled - disabling deployment"
238+
The lines of stderr should equal 1
239+
The line 1 of stderr should equal "Shadow scans enabled - disabling deployment"
240240
End
241241
End
242242

spec/build-maven_spec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Describe 'build_maven()'
419419
It 'disables deployment when shadow scans are enabled'
420420
When call build_maven
421421
The status should be success
422-
The output should include "Shadow scans enabled - disabling deployment"
422+
The stderr should include "Shadow scans enabled - disabling deployment"
423423
The output should include "Maven command: mvn install"
424424
The output should not include "Maven command: mvn deploy"
425425
End

0 commit comments

Comments
 (0)