Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-41801: Allow empty build parameters to be replaced in ant pro…
…perties. By using EnvVars.overrideAll() to add all build variable to EnvVars, any blank ("") build parameters are not added (or if they existed would be removed) from EnvVars. This means any reference to a blank variable is not replaced instead of being set to empty. The tests check the log line where the ant command line is printed. It's needed to check here for reliable tests, because on unix the $parameter will be replaced by the shell, but not in windows. By testing the command line params we ensure the replacements occur before going to the OS to run ant. The tests try to be resilient to the command line and param formatting on windows.
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 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