File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ export function runCommandOnRemoteMachine(
147
147
} ) . on ( 'data' , ( data ) => {
148
148
if ( data ) {
149
149
// "data" can be a buffer. Format it here so it outputs as a string
150
- if ( tl . getPipelineFeature ( "trimSshTaskOutput " ) ) {
151
- console . log ( data . toString ( 'utf8' ) . trim ( ) ) ;
150
+ if ( tl . getPipelineFeature ( "redirectTaskOutputToProcessStdout " ) ) {
151
+ process . stdout . write ( data ) ;
152
152
} else {
153
153
console . log ( data . toString ( 'utf8' ) ) ;
154
154
}
@@ -178,8 +178,8 @@ export function runCommandOnRemoteMachine(
178
178
} ) . on ( 'data' , ( data ) => {
179
179
if ( data ) {
180
180
// "data" can be a buffer. Format it here so it outputs as a string
181
- if ( tl . getPipelineFeature ( "trimSshTaskOutput " ) ) {
182
- console . log ( data . toString ( 'utf8' ) . trim ( ) ) ;
181
+ if ( tl . getPipelineFeature ( "redirectTaskOutputToProcessStdout " ) ) {
182
+ process . stdout . write ( data ) ;
183
183
} else {
184
184
console . log ( data . toString ( 'utf8' ) ) ;
185
185
}
Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ export function runCommandOnRemoteMachine(
147
147
} ) . on ( 'data' , ( data ) => {
148
148
if ( data ) {
149
149
// "data" can be a buffer. Format it here so it outputs as a string
150
- if ( tl . getPipelineFeature ( "trimSshTaskOutput " ) ) {
151
- console . log ( data . toString ( 'utf8' ) . trim ( ) ) ;
150
+ if ( tl . getPipelineFeature ( "redirectTaskOutputToProcessStdout " ) ) {
151
+ process . stdout . write ( data ) ;
152
152
} else {
153
153
console . log ( data . toString ( 'utf8' ) ) ;
154
154
}
@@ -178,8 +178,8 @@ export function runCommandOnRemoteMachine(
178
178
} ) . on ( 'data' , ( data ) => {
179
179
if ( data ) {
180
180
// "data" can be a buffer. Format it here so it outputs as a string
181
- if ( tl . getPipelineFeature ( "trimSshTaskOutput " ) ) {
182
- console . log ( data . toString ( 'utf8' ) . trim ( ) ) ;
181
+ if ( tl . getPipelineFeature ( "redirectTaskOutputToProcessStdout " ) ) {
182
+ process . stdout . write ( data ) ;
183
183
} else {
184
184
console . log ( data . toString ( 'utf8' ) ) ;
185
185
}
Original file line number Diff line number Diff line change @@ -147,8 +147,8 @@ export function runCommandOnRemoteMachine(
147
147
} ) . on ( 'data' , ( data ) => {
148
148
if ( data ) {
149
149
// "data" can be a buffer. Format it here so it outputs as a string
150
- if ( tl . getPipelineFeature ( "trimSshTaskOutput " ) ) {
151
- console . log ( data . toString ( 'utf8' ) . trim ( ) ) ;
150
+ if ( tl . getPipelineFeature ( "redirectTaskOutputToProcessStdout " ) ) {
151
+ process . stdout . write ( data ) ;
152
152
} else {
153
153
console . log ( data . toString ( 'utf8' ) ) ;
154
154
}
@@ -178,8 +178,8 @@ export function runCommandOnRemoteMachine(
178
178
} ) . on ( 'data' , ( data ) => {
179
179
if ( data ) {
180
180
// "data" can be a buffer. Format it here so it outputs as a string
181
- if ( tl . getPipelineFeature ( "trimSshTaskOutput " ) ) {
182
- console . log ( data . toString ( 'utf8' ) . trim ( ) ) ;
181
+ if ( tl . getPipelineFeature ( "redirectTaskOutputToProcessStdout " ) ) {
182
+ process . stdout . write ( data ) ;
183
183
} else {
184
184
console . log ( data . toString ( 'utf8' ) ) ;
185
185
}
You can’t perform that action at this time.
0 commit comments