-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running
oc
with Launcher to avoid command explansion
This PR reimplements the mechanism to run `oc` command on a slave. When using OpenShift Pipeline DSL, `oc` process is started with `DurableTask`, which is designed to run a bash script or batch script on a slave. This is not ideal because when the command arguments include special characters (like whitespaces, `#`, `!`, `;`), it's hard to escape them correctly. The new implementation uses standard Jenkins API `Launcher` to start a `oc` process on a slave. Polling `stdout` and `stderr` outputs are not needed in this approach because `stdout` and `stderr` streams are piped to master so that they can be consumed by blocking readers.
- Loading branch information
Showing
5 changed files
with
239 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.