How to check the build queue using cURL

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

要約

Before Bamboo is backed up, the build queue has to be empty so that it doesn't cause any data inconsistency. 

ソリューション

Use the cURL command to check the build queue endpoint before performing any backup:

curl -u <ADMIN_USERNAME>:<PASSWORD> <BAMBOO_URL>/build/admin/ajax/getDashboardSummary.action

Sample outputs:

{"status":"OK","builds":[],"agentSummary":" 1 online agent "}
{"status":"OK","builds":[{"status":"QUEUED","messageType":"ERROR","messageText":"No agent can build this job.","hasReadPermission":true,"hasBuildPermission":true,"itemType":"BUILD","resultKey":"BSP49354-TES-JOB1-2","buildResultKey":"BSP49354-TES-JOB1-2","planResultKey":"BSP49354-TES-2","planKey":"BSP49354-TES","jobKey":"BSP49354-TES-JOB1","projectName":"BSP-49354","chainName":"testasufh","jobName":"Default Job","planName":"BSP-49354 - testasufh","buildNumber":2,"isBranch":false,"triggerReason":"Manual run by admin","queueIndex":1}],"agentSummary":"No agents online"}
更新日時: September 25, 2025

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。