빌드 전략에서 생성한 이미지의 크기와 다이제스트를 결과 파일 집합에 저장할 수 있습니다. BuildRun 리소스가 실패하는 경우 디버깅을 위해 오류 세부 정보를 저장할 수도 있습니다. BuildStrategy 또는 ClusterBuildStrategy CR에서 다음 결과 매개변수를 정의할 수 있습니다.
Expand
표 2.3. 결과 매개변수
매개변수
설명
$(results.shp-image-digest.path)
이미지의 다이제스트를 저장하는 파일의 경로를 나타냅니다.
$(results.shp-image-size.path)
이미지의 압축 크기를 저장하는 파일의 경로를 나타냅니다.
$(results.shp-error-reason.path)
오류 이유를 저장하는 파일의 경로를 나타냅니다.
$(results.shp-error-message.path)
오류 메시지를 저장하는 파일의 경로를 나타냅니다.
다음 예제는 BuildRun CR의 .status.output 필드에 있는 이미지의 크기와 다이제스트를 보여줍니다.
Copy to ClipboardCopied!Toggle word wrapToggle overflow
다음 예제에서는 BuildRun CR의 .status.failure Details 필드에 있는 오류 이유 및 메시지를 보여줍니다.
apiVersion: shipwright.io/v1beta1
kind: BuildRun
# ...
status:
# ...
failureDetails:
location:
container: step-source-default
pod: baran-build-buildrun-gzmv5-b7wbf-pod-bbpqr
message: The source repository does not exist, or you have insufficient permission
to access it.
reason: GitRemotePrivate
apiVersion: shipwright.io/v1beta1
kind: BuildRun
# ...status:# ...failureDetails:location:container: step-source-default
pod: baran-build-buildrun-gzmv5-b7wbf-pod-bbpqr
message: The source repository does not exist, or you have insufficient permission
to access it.
reason: GitRemotePrivate
Copy to ClipboardCopied!Toggle word wrapToggle overflow