This is an automated email from the ASF dual-hosted git repository.

zhangstar333 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fc360df193 [ci](p0) support run p0 10 times (#26603)
1fc360df193 is described below

commit 1fc360df1931099653403974f3c640889efeb7f2
Author: Dongyang Li <[email protected]>
AuthorDate: Wed Nov 8 21:25:55 2023 +0800

    [ci](p0) support run p0 10 times (#26603)
    
    * [ci](p0) support run mutiple time
    
    Co-authored-by: stephen <[email protected]>
---
 .github/workflows/auto_trigger_teamcity.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/auto_trigger_teamcity.yml 
b/.github/workflows/auto_trigger_teamcity.yml
index 61be077fed6..6e2a1bf97e4 100644
--- a/.github/workflows/auto_trigger_teamcity.yml
+++ b/.github/workflows/auto_trigger_teamcity.yml
@@ -62,6 +62,7 @@ jobs:
           fi
           if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ " p0" 
&& ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
             trigger_pipelines="Doris_DorisRegression_P0Regression  
${trigger_pipelines}"
+            if [[ "${comment_message}" = *"10" ]]; then repeat_times="10"; fi
           fi
           if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ " 
pipelinex_p0" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; 
then
             trigger_pipelines="Doris_DorisRegression_P0RegressionPipelineX  
${trigger_pipelines}"
@@ -133,7 +134,12 @@ jobs:
             if [ "_""${same_build_sign}" == "_false" ];then
               sleep 10s
               echo "there is no running build or queue build, so trigger a new 
!"
-              execute_command="curl -s -X POST 
${teamcity_url}/httpAuth/action.html\?add2Queue\=${pipeline}\&branchName\=pull/${pull_request_num}\&name=env.latest_pr_comment\&value=${encoded_string}\&name=env.latest_commit_id\&value=${latest_commit_id}"
+              echo "repeat_times: ${repeat_times}"
+              if [[ -n "${repeat_times}" ]]; then
+                execute_command="curl -s -X POST 
${teamcity_url}/httpAuth/action.html\?add2Queue\=${pipeline}\&branchName\=pull/${pull_request_num}\&name=env.latest_pr_comment\&value=${encoded_string}\&name=env.latest_commit_id\&value=${latest_commit_id}\&name=env.repeat_times\&value=${repeat_times}"
+              else
+                execute_command="curl -s -X POST 
${teamcity_url}/httpAuth/action.html\?add2Queue\=${pipeline}\&branchName\=pull/${pull_request_num}\&name=env.latest_pr_comment\&value=${encoded_string}\&name=env.latest_commit_id\&value=${latest_commit_id}"
+              fi
               echo "${execute_command}"
               eval "${execute_command}"
               echo 
"-----------------------------------------------------------------"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to