powershell.exe -NonInteractive -ExecutionPolicy ByPass
Bonjour.
Je joue ce script depuis Jekins :
Code:
1 2 3 4 5 6
| [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$username = "user"
$password = "psw" | ConvertTo-SecureString -asPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential($username,$password)
Invoke-WebRequest -Uri "https://git/.../developpement-master.zip" -Credential $cred -OutFile "D:/develop" |
et j'ai le message d'erreur suivant :
Code:
$ powershell.exe -NonInteractive -ExecutionPolicy ByPass "& 'C:\Users\ADMINI~1\AppData\Local\Temp\hudson1261342530379164276.ps1'"
Merci de votre aide.