From 1c2a918c3d17ea6e9b85c32ed5ff1ec50b993e2b Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Tue, 19 Jan 2021 14:38:55 +0800 Subject: [PATCH] [TD-2784]test pr from forked repo --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ebac32cb24..9151b22576 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,13 +41,10 @@ def pre_test(){ cd ${WKC} git checkout develop - git reset --hard HEAD~10 - git pull - git fetch - git checkout ${CHANGE_BRANCH} - git reset --hard HEAD~10 + git reset --hard HEAD~10 >/dev/null git pull - git merge develop + git fetch origin +refs/pull/${CHANGE_ID}/merge + cd ${WK} git reset --hard HEAD~10 git checkout develop -- GitLab