As a Jenkins CLI user I would like to have the ability to invoke Jenkins CLI commands in an easier way by preconfiguring the -auth option.
In a similar way that the environment variable JENKINS_URL allows to execute different CLI command without specifying the -s option continuously, environment variable such JENKINS_USER_ID and JENKINS_API_TOKEN might help configuring easily the executions without specifying the -auth option in each executed command.
In case the -auth option is specified, its value will prevail, although the env vars will not be unset for later use.
|Field||Original Value||New Value|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Summary||Env var to configure auth||Env vars to configure CLI -auth option|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Remote Link||This issue links to "PR#3653 (Web Link)" [ 21844 ]|
|Released As||Jenkins 2.145|
|Resolution||Fixed [ 1 ]|
|Status||In Review [ 10005 ]||Resolved [ 5 ]|