Open matthorgan opened 4 years ago
Get-Module -Name Jenkins
Running the Jenkins Module on WSL or Linux using PowerShell 7.0.0+ causes an authentication error similar to the below:
Error 401 Invalid password/token for user:*********** HTTP ERROR 401 Invalid password/token for user:*********** | URI:/job/terraform-clients/createItem STATUS:401 MESSAGE:Invalid password/token for user:***********
This is due to the method the password is decrypted being broken and not advised (See here).
Suggest we move to using something like this instead which will fix the Module for Linux: $Password = $Credential.GetNetworkCredential().Password
$Password = $Credential.GetNetworkCredential().Password
Get-Module -Name Jenkins
) 1.0.3.257Running the Jenkins Module on WSL or Linux using PowerShell 7.0.0+ causes an authentication error similar to the below:
This is due to the method the password is decrypted being broken and not advised (See here).
Suggest we move to using something like this instead which will fix the Module for Linux:
$Password = $Credential.GetNetworkCredential().Password