2017-08-03 33 views
0

感谢joey,我使用Jenkins的下面的命令,但得到错误。无法使用apigeetool将代理部署到apigee

Set-ExecutionPolicy RemoteSigned 
Import-Module PowerShellGet 
Install-Module -Name PSApigeeEdge -Force 
Import-module PSApigeeEdge 
Set-EdgeConnection -org def -User xyz-EncryptedPassword abc 
Deploy-EdgeApi -Name proxy-name -Environment digital-dev -Revision 25 Error:                              ConvertTo-SecureString : Input string was not in a correct format. 
At C:\Program Files\WindowsPowerShell\Modules\PSApigeeEdge\Public\Set-EdgeConnection.ps1:97 char:35 
+      $SecurePass = ConvertTo-SecureString -String $EncryptedPassw ... 
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [ConvertTo-SecureString], FormatException 
    + FullyQualifiedErrorId : System.FormatException,Microsoft.PowerShell.Commands.ConvertToSecureStringCommand      

回答