Pipelineの実行
runPipeline()メソッドにパイプラインIDとブランチ名をパラメータとして渡すことで、Catalystパイプラインの実行を開始できます。また、パイプライン実行に必要な環境変数をJSONオブジェクトでこのメソッドに渡すこともでき、これは完全に任意です。このメソッドはレスポンスとしてパイプラインの実行履歴の詳細を返します。
copy
JSONObject env = new JSONObject();
env.put("EVENT", "push");
env.put("URL", "https://www.google.com");
ZCPipelineRunHistory run = pipelines_service.runPipeline(8431000000161112051L,main,env);
サンプルレスポンスを以下に示します:
copy
{
"status": "success",
"data": {
"history_id": "5000000021007",
"pipeline_id": "8431000000161112051L",
"event_time": "Mar 20, 2024 02:02 PM",
"event_details": {
"BRANCH_NAME": "detective_pre",
"EVENT": "push",
"URL": "https://www.google.com"
},
"history_status": "Queued"
}
}
最終更新日 2026-02-23 18:09:41 +0530 IST
Yes
No
Send your feedback to us
Skip
Submit