You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just discovered that trying to run 'paket config add-credentials' within a Jenkins pipeline fails due to trying to do a Console.ReadLine(). This returns null in the context of a Jenkins build and throws a System.NullReferenceException.
Repro steps
Create a Jenkins pipeline that runs the following command:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Paket.ConfigFile.askAndAddAuth(String source, String username, String password, String authType, Boolean verify)
at <StartupCode$Paket-Core>.$[email protected](Unit unitVar0)
at Paket.Utils.RunInLockedAccessMode[a](String rootFolder, FSharpFunc2 action) at [email protected](ParseResults1 results)
at Paket.Program.processWithValidationEx$cont@37[a](Boolean silent, FSharpFunc`2 commandF, a result, Unit unitVar)
at Paket.Program.handleCommand(Boolean silent, Command command)
at Paket.Program.main()
at <StartupCode$paket>.$Paket.Program.main@()
Known workarounds
If you supply --authtype basic the command bypasses the Console.ReadLine() command which is the source of the error.
The text was updated successfully, but these errors were encountered:
Description
I have just discovered that trying to run 'paket config add-credentials' within a Jenkins pipeline fails due to trying to do a Console.ReadLine(). This returns null in the context of a Jenkins build and throws a System.NullReferenceException.
Repro steps
Expected behavior
The default authentication type of basic is taken and the command adds the authentication details.
Actual behavior
Known workarounds
If you supply
--authtype basic
the command bypasses the Console.ReadLine() command which is the source of the error.The text was updated successfully, but these errors were encountered: