【发布时间】:2021-08-24 19:16:20
【问题描述】:
我正在尝试使用 Azure Devops 将结果导入 Xray Cloud multipart,这是来自 yml 配置文件的 bash 命令:
token=$(curl -H "Content-Type: application/json" -X POST --data '{ "client_id": "$(client_id)","client_secret": "$(client_secret)" }' https://xray.cloud.xpand-it.com/api/v1/authenticate| tr -d '"')
curl -H "Content-Type: multipart/form-data" -X POST -F info=@path\issueFields.json -F results=@path\target\surefire-reports\TEST-TestSuite.xml -F testInfo=@path\testIssueFields.json -H "Authorization: Bearer $token" https://xray.cloud.xpand-it.com/api/v1/import/execution/testng/multipart"
我每次都在管道控制台中收到此错误:
"curl: (26) Failed to open/read local data from file/application
##[error]Bash exited with code '26'."
我做错了什么?
bash 日志:
Starting: Bash
==============================================================================
Task : Bash
Description : Run a Bash script on macOS, Linux, or Windows
Version : 3.189.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash
==============================================================================
【问题讨论】:
-
您使用的是什么代理,托管代理?和 windows 代理或 Nexus?请在问题中分享调试日志。
-
嗨@Leo,我在上面的问题中添加了调试日志
标签: java azure-devops testng multipart jira-xray