-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Windows Server Core 2019
-
-
2.481
Jenkins Agent instructions in UI tells user to run:
echo XXXXXXXX > secret-file
(where XXXXXXXX is a secret)
This is fine under Linux, but a little bit wrong under Windows. The space between last character of a secret and > sign is actually added into secret-file. Thus agent authentication doesn't work if one tries to use that secret file.
For it to work under Windows the command should be:
echo XXXXXXXX> secret-file
[JENKINS-72979] Windows agent instructions in UI adds superfluous space in secret file
Description |
Original:
Jenkins Agent instructions in UI tells user to run:
`echo XXXXXXXX > secret-file` (where XXXXXXXX is a secret) This is fine under Linux, but a little bit wrong under Windows. The space between last character of a secret and > sign is actually added into secret-file. Thus agent authentication doesn't work if one tries to use that secret file. For it to work under Windows the command should be: `echo XXXXXXXX> secret-file` |
New:
Jenkins Agent instructions in UI tells user to run:
{code:java} echo XXXXXXXX > secret-file{code} (where XXXXXXXX is a secret) This is fine under Linux, but a little bit wrong under Windows. The space between last character of a secret and > sign is actually added into secret-file. Thus agent authentication doesn't work if one tries to use that secret file. For it to work under Windows the command should be: {code:java} echo XXXXXXXX> secret-file{code} |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR-9739 - Remove trailing space from Windows agent secret file instructions (Web Link)" [ 30008 ] |
Released As | New: 2.481 | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Closed [ 6 ] |