From 666b00170bf936715d8ca1c4c4f92f77793764e2 Mon Sep 17 00:00:00 2001 From: tangfangzhi Date: Wed, 11 May 2022 12:26:46 +0800 Subject: [PATCH] print git log --- Jenkinsfile2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 79b27dda14..d90bc3061b 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -81,6 +81,10 @@ def pre_test(){ git pull >/dev/null git fetch origin +refs/pull/${CHANGE_ID}/merge git checkout -qf FETCH_HEAD + git log|head -n20 + cd ${WK} + git pull >/dev/null + git log|head -n20 ''' } else if (env.CHANGE_URL =~ /\/TDinternal\//) { sh ''' @@ -88,6 +92,10 @@ def pre_test(){ git pull >/dev/null git fetch origin +refs/pull/${CHANGE_ID}/merge git checkout -qf FETCH_HEAD + git log|head -n20 + cd ${WKC} + git pull >/dev/null + git log|head -n20 ''' } else { sh ''' -- GitLab