Skip to content

Commit 94b688e

Browse files
jackfrancisk8s-infra-cherrypick-robot
authored andcommitted
ci: print git info when building from k8s source
1 parent 5d056dc commit 94b688e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/ci-build-kubernetes.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ setup() {
7373
# ref: https://github.com/kubernetes/kubernetes/blob/5491484aa91fd09a01a68042e7674bc24d42687a/build/lib/release.sh#L345-L346
7474
export IMAGE_TAG="${KUBE_GIT_VERSION/+/_}"
7575
echo "using IMAGE_TAG=${IMAGE_TAG}"
76+
local git=(git --work-tree "${KUBE_ROOT}")
77+
"${git[@]}" log -n 1
78+
"${git[@]}" diff HEAD^ HEAD
7679
}
7780

7881
main() {

0 commit comments

Comments
 (0)