diff --git a/Jenkinsfile2 b/Jenkinsfile2 index f02c036563..0e816a3f05 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -77,7 +77,8 @@ def check_docs(){ file_only_tdgpt_change_except = sh ( script: ''' - echo ${file_no_doc_changed} |grep -v "forecastoperator.c\\|anomalywindowoperator.c" || : + cd ${WKC} + git --no-pager diff --name-only FETCH_HEAD `git merge-base FETCH_HEAD ${CHANGE_TARGET}`|grep -v "^docs/en/"|grep -v "^docs/zh/"|grep -v ".md$" | grep -v "forecastoperator.c\\|anomalywindowoperator.c" || : ''', returnStdout: true ).trim()