5.8.4. 出力におけるステップ出力の参照
rhaap:launch-job-template アクションが実行されると、ステップ出力にジョブ実行データが含まれます。${{ steps['<step-id>'].output.data.<field> }} という 構文を使用して、このデータを参照します。
rhaap:launch-job-template アクションは、以下の出力フィールドを返します。
| 参考資料 | 型 | 説明 |
|---|---|---|
|
| number | Ansible Automation Platform ジョブ ID。 |
|
| string |
Ansible Automation Platform ジョブのステータス (例: |
|
| string | Ansible Automation Platform 内のジョブへの直接 URL。 |
5.8.4.1. 例: ジョブ実行データを出力に表示する リンクのコピーリンクがクリップボードにコピーされました!
output:
text:
- title: Job launched
content: |
**Job ID:** ${{ steps['launch-job'].output.data.id }}
**Status:** ${{ steps['launch-job'].output.data.status }}
links:
- title: View job in Ansible Automation Platform
url: ${{ steps['launch-job'].output.data.url }}