This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.8.6.2. 環境変数としてのビルドフィールドの使用
ビルドオブジェクトの情報は、値を取得するフィールドの JsonPath
に、fieldPath
環境変数のソースを設定することで挿入できます。
env: - name: FIELDREF_ENV valueFrom: fieldRef: fieldPath: metadata.name
env:
- name: FIELDREF_ENV
valueFrom:
fieldRef:
fieldPath: metadata.name
注記
Jenkins Pipeline ストラテジーは、環境変数の valueFrom
構文をサポートしません。