Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-43016] Convert empty string label agent to agent any in JSON
This'll make the editor happier - the label agent type does require an argument, but an empty string *is* a valid (but weird) use case. The editor, however, has no way of distinguishing between "you didn't specify a label" and "you specified an empty string for the label". There still should be work in the editor to figure out how to actually handle this situation, but this fix at least will unbreak existing Jenkinsfiles with empty string label agents being opened in the editor, by converting the JSON in that case to be `agent any`, which is functionally equivalent if no additional options are specified. However, if additional options are specified (such as `customWorkspace`), we have to punt and keep using the empty string label agent.
- Loading branch information
Showing with 113 additions and 8 deletions.