Gitlab API没有显示提交的构建状态中的所有属性

Tej*_*jas 8 api curl gitlab gitlab-ci gitlab-api

我正在使用curlgitlab文档中给出的简单命令,将构建状态发布到提交.

但是在gitlab构建状态中它只显示:

"管道#20因abc而失败......"

即使我传递"description","target_url"属性.

我试过了,

curl --request POST --header"PRIVATE-TOKEN:9ko ..."" https://gitlab.example.com/api/v4/projects/17/statuses/18f3...?state=failed&description=my_decsription&target_url= http://example.org/link "

curl终端输出,它成功传递所有属性.但是在gitlab构建状态中它只显示,

"管道#20因abc而失败.....".

我希望输出像,

"管道#20因abc而失败..... my_description http://example.org/link ".

支持'description'和'target_url'属性的任何其他格式.

我在网上搜索但没有成功.我正在使用gitlab 8.16.
我需要在gitlab中添加/配置一些东西吗?

更新: 实际上我指定的"target_url"在Build选项卡的特定内部版本号上显示为超链接.但没有出现在我想要的地方.
"描述"没有出现在任何地方.

gp4*_*p42 0

当您单击构建状态标签时,参数似乎target_url只会影响您发送到的链接(见下图)。description要显示它,您还需要手动将其添加到:

curl --request POST --header "PRIVATE-TOKEN: XXXXXX" "https://gitlab.com/api/v4/projects/XXXXXX/statuses/67814f7489214e91738680b433679224993dc1c4?state=failed&name=some_label&description=some%20useful%20description_of_failure%20http://www.google.com&target_url=http://www.google.com"

如果您想查看描述,您必须进入提交详细信息并将鼠标悬停在构建状态标签上:

在此输入图像描述