File tree Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Expand file tree Collapse file tree 5 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1+ IBMI_HOST =
2+ IBMI_USER =
3+ IBMI_PASSWORD =
4+ IBMI_SSH_PORT =
Original file line number Diff line number Diff line change 55src
66! dist /src
77node_modules
8- .vscode
8+ .vscode
9+ .env.sample
Original file line number Diff line number Diff line change 88 "name" : " Debug ibmi-ci CLI" ,
99 "type" : " node" ,
1010 "request" : " launch" ,
11- "program" : " ${workspaceFolder:ibmicli }/dist/index.js" ,
11+ "program" : " ${workspaceFolder:ibmi-ci }/dist/index.js" ,
1212 "sourceMaps" : true ,
1313 "args" : [
14- " --lcwd" , " ${workspaceFolder:ibmicli }/src" ,
14+ " --lcwd" , " ${workspaceFolder:ibmi-ci }/src" ,
1515 " --cmd" , " mkdir -p './builds/icisrc'" ,
1616 " --ignore" , " --cmd" , " woejhraljdsfn" ,
1717 " --rcwd" , " ./builds/icisrc" ,
2727 "type" : " npm" ,
2828 "script" : " webpack:dev"
2929 },
30- "envFile" : " ${workspaceFolder:ibmicli }/.env"
30+ "envFile" : " ${workspaceFolder:ibmi-ci }/.env"
3131 },
3232 {
3333 "name" : " Debug ibmi-ci yaml" ,
3434 "type" : " node" ,
3535 "request" : " launch" ,
36- "program" : " ${workspaceFolder:ibmicli }/dist/index.js" ,
36+ "program" : " ${workspaceFolder:ibmi-ci }/dist/index.js" ,
3737 "sourceMaps" : true ,
3838 "args" : [
3939 " --file" , " examples/exampleA.yml" ,
4242 "type" : " npm" ,
4343 "script" : " webpack:dev"
4444 },
45- "envFile" : " ${workspaceFolder:ibmicli }/.env"
45+ "envFile" : " ${workspaceFolder:ibmi-ci }/.env"
4646 },
4747 ]
4848}
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ async function main() {
7272
7373 const result = await executor . executeSteps ( { log : logger } ) ;
7474 executor . dispose ( ) ;
75+ console . log ( `ibmi-ci completed with exit code ${ result . code } .` ) ;
76+ process . exit ( result . code ) ;
7577 }
7678}
7779
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export class EnvironmentStep extends StepI {
1212 `CommonProgramFiles(x86)` , `ProgramFiles(x86)`
1313 ] ;
1414
15- const environmentVariables = Object . keys ( process . env ) . filter ( key => ! ignoredEnvironmentVariables . includes ( key ) && ! key . includes ( '.' ) ) ;
15+ const environmentVariables = Object . keys ( process . env ) . filter ( key => ! ignoredEnvironmentVariables . includes ( key ) && ! key . includes ( '.' ) && ! key . includes ( ' ' ) ) ;
1616 const commandString = environmentVariables . map ( key => `${ key } ='${ process . env [ key ] } '` ) . join ( ` ` ) ;
1717
1818 this . log ( `Setting environment variables: ${ environmentVariables . join ( `, ` ) } ` ) ;
You can’t perform that action at this time.
0 commit comments