Pipelineの実行
パイプラインIDとブランチ名をパラメーターとしてrunPipeline()メソッドに渡すことで、Catalystパイプラインの実行を開始できます。また、パイプラインの実行に必要な環境変数をJSONオブジェクトとしてこのメソッドに渡すこともできますが、これは完全に任意です。このメソッドは、パイプラインの実行履歴の詳細をレスポンスとして返します。
以下で使用されているpipelines_service参照は、このコンポーネントインスタンスページですでに定義されています。
copy
let execution_details = pipelines_service.runPipeline("8431000000162051", main,{"EVENT": "push", "URL":"https://www.google.com"})
サンプルレスポンスを以下に示します:
copy
{
"status": "success",
"data": {
"history_id": "5000000021007",
"pipeline_id": "8431000000162051",
"event_time": "Mar 20, 2024 02:02 PM",
"event_details": {
"BRANCH_NAME": "main",
"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