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
구문을 지원하지 않습니다.