JFrogArtifactoryDe​​ployer - 该字符串缺少终结符:'

时间:2017-07-07 20:08:36

标签: azure-devops artifactory

我正在使用JFrogArtifactoryDe​​ployer插件作为VS Team Services中构建定义的一部分。当构建到达此插件时,它会抛出以下消息:

******************************************************************************
Starting: JFrogArtifactoryDeployer
******************************************************************************
==============================================================================
Task         : JFrog Artifactory Deployer
Description  :  This task helps you to deploy generic build result artifacts to Artifactory
Version      : 2.1.1
Author       : jfrog
Help         : Upload artifacts to JFrog Artifactory using JFrog Artifactory cli.
==============================================================================
Preparing task execution handler.
Executing the powershell script: C:\agent\_work\_tasks\JFrogArtifactoryDeployer_07fc5c20-
6772-11e5-abde-6901d3d00465\2.1.1\ArtifactoryDeploy.ps1
Entering JFrog Artifactory Deployer task
Import modules
Downloading the JFrog cli from Bintray
running 'C:\agent\_work\13\a\jfrog.exe' rt upload 'C:\\agent\\_work\\13\\a\\ArtifactoryUpload
\\*.nupkg' 'nuget/Project-R2/' --url=http://artifactory.local:8081/artifactory --user=********
 --password=******** --props='build.number=1.1.0.3-R2-11367;build.name=R2-CI-CD-JFrogIntegrationTesting'
System.Management.Automation.ParseException: At line:1 char:322
+ ... .number=1.1.0.3-R2-11367;build.name=R2-CI-CD-JFrogIntegrationTesting'
+                                                                         ~
The string is missing the terminator: '.
   at System.Management.Automation.ScriptBlock.Create(Parser parser, String fileName, String fileContents)
   at System.Management.Automation.ScriptBlock.Create(ExecutionContext context, String script)
   at System.Management.Automation.CommandInvocationIntrinsics.NewScriptBlock(String scriptText)
   at Microsoft.PowerShell.Commands.InvokeExpressionCommand.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
Microsoft.PowerShell.Commands.WriteErrorException: Deployment to Artifactory failed
PowerShell script completed with 2 errors.
******************************************************************************
Finishing: JFrogArtifactoryDeployer
******************************************************************************

有没有人在使用此插件时遇到此错误?

0 个答案:

没有答案