[JENKINS-66347] Keystore not working #208
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See JENKINS-66347. My testing for #207 didn't include paths with spaces, so I introduced a regression when the keystore path contains spaces. Here I'm adding quoting for anything that could contain spaces:
--httpsKeyStore
--extraLibFolder
JENKINS_JAVA_CMD
JENKINS_HOME
JENKINS_WAR
To plumb through the result to
daemonize(1)
I need to useeval
in POSIX shell. Cleaner alternatives are possible inbash(1)
, but this is a plainsh(1)
script.To make the code easier to read I inlined
JAVA_CMD
. It was only used once, so the extra level of indirection just made the code harder to read.Tested by putting a space in
JENKINS_HOME
and--extraLibFolder
and verifying that the arguments were correctly parsed: