Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
IBMI_HOST=
IBMI_USER=
IBMI_PASSWORD=
IBMI_SSH_PORT=
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ test
src
!dist/src
node_modules
.vscode
.vscode
.env.sample
10 changes: 5 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"name": "Debug ibmi-ci CLI",
"type": "node",
"request": "launch",
"program": "${workspaceFolder:ibmicli}/dist/index.js",
"program": "${workspaceFolder:ibmi-ci}/dist/index.js",
"sourceMaps": true,
"args": [
"--lcwd", "${workspaceFolder:ibmicli}/src",
"--lcwd", "${workspaceFolder:ibmi-ci}/src",
"--cmd", "mkdir -p './builds/icisrc'",
"--ignore", "--cmd", "woejhraljdsfn",
"--rcwd", "./builds/icisrc",
Expand All @@ -27,13 +27,13 @@
"type": "npm",
"script": "webpack:dev"
},
"envFile": "${workspaceFolder:ibmicli}/.env"
"envFile": "${workspaceFolder:ibmi-ci}/.env"
},
{
"name": "Debug ibmi-ci yaml",
"type": "node",
"request": "launch",
"program": "${workspaceFolder:ibmicli}/dist/index.js",
"program": "${workspaceFolder:ibmi-ci}/dist/index.js",
"sourceMaps": true,
"args": [
"--file", "examples/exampleA.yml",
Expand All @@ -42,7 +42,7 @@
"type": "npm",
"script": "webpack:dev"
},
"envFile": "${workspaceFolder:ibmicli}/.env"
"envFile": "${workspaceFolder:ibmi-ci}/.env"
},
]
}
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ async function main() {

const result = await executor.executeSteps({log: logger});
executor.dispose();
console.log(`ibmi-ci completed with exit code ${result.code}.`);
process.exit(result.code);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/steps/actions/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class EnvironmentStep extends StepI {
`CommonProgramFiles(x86)`, `ProgramFiles(x86)`
];

const environmentVariables = Object.keys(process.env).filter(key => !ignoredEnvironmentVariables.includes(key) && !key.includes('.'));
const environmentVariables = Object.keys(process.env).filter(key => !ignoredEnvironmentVariables.includes(key) && !key.includes('.') && !key.includes(' '));
const commandString = environmentVariables.map(key => `${key}='${process.env[key]}'`).join(` `);

this.log(`Setting environment variables: ${environmentVariables.join(`, `)}`);
Expand Down