我試圖觸發新Wercker建立通過點擊API端點mentioned in the documentation,但API返回以下響應:什麼「堆棧無效,堆棧只支持堆棧1和堆棧5」是什麼意思?
{"statusCode"=>400, "error"=>"Bad Request", "message"=>"Invalid stack, only stack 1 and 5 are supported for builds"}
什麼錯誤消息「無效的堆棧,只堆1和5的支持打造「是什麼意思?
我試着用下面的腳本發送請求:[!Wercker員工在這裏]
$ 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"
}
感謝您的編輯! @不對稱 – mgi166