File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,6 @@ async function runScriptStepWithGRPC(
3535 args : RunScriptStepArgs ,
3636 state
3737) : Promise < void > {
38- const runnerDir = `/home/runner/_work/_temp/_runner_file_commands`
39- const files = fs . readdirSync ( '/home/runner/_work/_temp/_runner_file_commands' )
40-
4138 const { entryPoint, entryPointArgs, environmentVariables } = args
4239 const scriptContent = getEntryPointScriptContent (
4340 args . workingDirectory ,
@@ -76,10 +73,11 @@ async function runScriptStepWithGRPC(
7673 break
7774 } catch ( err ) {
7875 const message = extractErrorMessageFromK8sError ( err )
79- core . warning ( `ScriptExecutorError when trying to execute: ${ message } ` )
8076 if ( message . includes ( 'ECONNREFUSED' ) || message . includes ( 'UNAVAILABLE' ) ) {
8177 // Retry for 60s since the service may not be established.
82- core . warning ( `Retrying execution for ECONNREFUSED or UNAVAILABLE.` )
78+ core . warning (
79+ `Retrying execution for ECONNREFUSED or UNAVAILABLE ${ message } .`
80+ )
8381 await backOffmanager . backOff ( )
8482 } else {
8583 throw new Error (
Original file line number Diff line number Diff line change @@ -407,9 +407,7 @@ export async function runScriptByGrpc(
407407 if ( exitCode === 0 ) {
408408 resolve ( )
409409 } else {
410- reject (
411- new Error ( `Command ${ command } failed with exit code ${ exitCode } .` )
412- )
410+ reject ( new Error ( `Job failed with exit code ${ exitCode } .` ) )
413411 }
414412 } )
415413
You can’t perform that action at this time.
0 commit comments