无法使用apigeetool将代理部署到apigee
问题描述:
感谢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
答
还有另一种工具,你可以使用,如果你对PowerShell的舒适。 https://github.com/DinoChiesa/Edge-Powershell-Admin
需要导入powershell模块才能使用该模块,这在jenkins中非常简单。