我知道我们可以通过关键的云代工来部署我们的应用程序。我们可以推送为您的应用程序提供框架和运行时支持的构建包。我想创建一个Jenkins作业来列出我的云代工厂上可用的所有构建包如何实现这一目标.Thanxx
答案 0 :(得分:5)
您可以使用CLI列出构建包:cf buildpacks
或者您可以通过GETing system domain
直接查询云控制器(api。/v2/buildpacks
),但是您需要成为认证用户提出此请求。
答案 1 :(得分:0)
您可以直接从cf client命令启动curl:
# cf curl /v2/buildpacks
{
"total_results": 9,
"total_pages": 1,
"prev_url": null,
"next_url": null,
"resources": [
{
"metadata": {
"guid": "b7890a54-f7c5-4973-a3da-e1a48ba6811d",
"url": "/v2/buildpacks/b7890a54-f7c5-4973-a3da-e1a48ba6811d",
"created_at": "2017-05-24T12:53:27Z",
"updated_at": "2017-05-24T12:53:27Z"
},
"entity": {
"name": "binary_buildpack",
"position": 1,
"enabled": true,
"locked": false,
"filename": "binary_buildpack-cached-v1.0.11.zip"
}
},
...
"metadata": {
"guid": "95e3f977-09d1-4b96-96bc-e34125e3b3a2",
"url": "/v2/buildpacks/95e3f977-09d1-4b96-96bc-e34125e3b3a2",
"created_at": "2017-05-24T12:54:03Z",
"updated_at": "2017-05-24T12:54:04Z"
},
"entity": {
"name": "staticfile_buildpack",
"position": 8,
"enabled": true,
"locked": false,
"filename": "staticfile_buildpack-cached-v1.4.5.zip"
}
}
]
}