我试图通过点击文档中提到的 API 端点来触发新的 Wercker 构建,但 API 返回以下响应:
{"statusCode"=>400, "error"=>"Bad Request", "message"=>"Invalid stack, only stack 1 and 5 are supported for builds"}
错误消息“无效堆栈,构建仅支持堆栈 1 和 5”是什么意思?
我尝试使用以下脚本发送请求:
$ jq . -c <<JSON | curl -s -d @- -H 'Authorization: Bearer token' -H 'Content-type: application/json' 'https://app.wercker.com/api/v3/builds' | jq .
{
"applicationId": "applicationid",
"branch":"develop",
"envVars":[
{"key":"HOGE_FOO","value":"true"}
]
}
JSON
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid stack, only stack 1 and 5 are supported for builds"
}