[ci](pipeline) add pipelinex_p0 (#25638)
Co-authored-by: stephen <hello-stephen@qq.com>
This commit is contained in:
16
.github/workflows/auto_trigger_teamcity.yml
vendored
16
.github/workflows/auto_trigger_teamcity.yml
vendored
@ -25,12 +25,12 @@ on:
|
||||
|
||||
env:
|
||||
PULL_REQUEST_NUM: $(echo "${{ github.event.issue.pull_request.url }}" | awk -F/ '{print $NF}')
|
||||
LATEST_COMMIT: $(curl -H "Authorization:Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/pulls/$(echo '${{ github.event.issue.pull_request.url }}' | awk -F/ '{print $NF}')" > pr_details.json && jq -r '.head.sha' pr_details.json)
|
||||
LATEST_COMMIT: $(curl -s -H "Authorization:Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/pulls/$(echo '${{ github.event.issue.pull_request.url }}' | awk -F/ '{print $NF}')" > pr_details.json && jq -r '.head.sha' pr_details.json)
|
||||
TEAMCITY_URL: '-H \"Content-Type:text/plain\" -H \"Accept: application/json\" -u OneMoreChance:OneMoreChance http://43.132.222.7:8111'
|
||||
|
||||
jobs:
|
||||
run_teamcity_pipeline:
|
||||
if: (contains(github.event.comment.body, 'buildall') || contains(github.event.comment.body, 'p0') || contains(github.event.comment.body, 'nereids_p0') || contains(github.event.comment.body, 'p1') || contains(github.event.comment.body, 'feut') || contains(github.event.comment.body, 'beut') || contains(github.event.comment.body, 'compile') || contains(github.event.comment.body, 'clickbench') || contains(github.event.comment.body, 'arm') || contains(github.event.comment.body, 'external') || contains(github.event.comment.body, 'just_for_test')) && contains(github.event.comment.body, 'run') && !contains(github.event.comment.body, 'Thanks for your contribution')
|
||||
if: (contains(github.event.comment.body, 'buildall') || contains(github.event.comment.body, 'p0') || contains(github.event.comment.body, 'pipelinex_p0') || contains(github.event.comment.body, 'p1') || contains(github.event.comment.body, 'feut') || contains(github.event.comment.body, 'beut') || contains(github.event.comment.body, 'compile') || contains(github.event.comment.body, 'clickbench') || contains(github.event.comment.body, 'arm') || contains(github.event.comment.body, 'external') || contains(github.event.comment.body, 'just_for_test')) && contains(github.event.comment.body, 'run') && !contains(github.event.comment.body, 'Thanks for your contribution')
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@ -56,14 +56,15 @@ jobs:
|
||||
echo "encoded_string : ${encoded_string}"
|
||||
echo "latest_commit_id : ${{ env.LATEST_COMMIT }}"
|
||||
|
||||
set -x
|
||||
if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "buildall" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
|
||||
trigger_pipelines="Doris_Doris_FeUt Doris_DorisBeUt_BeUt Doris_DorisCompile_Compile Doris_Performance_Clickbench_ClickbenchNew Doris_ArmPipeline_P0Regression ${trigger_pipelines}"
|
||||
trigger_pipelines="Doris_DorisRegression_P0RegressionPipelineX Doris_Doris_FeUt Doris_DorisBeUt_BeUt Doris_DorisCompile_Compile Doris_Performance_Clickbench_ClickbenchNew Doris_ArmPipeline_P0Regression ${trigger_pipelines}"
|
||||
fi
|
||||
if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "p0" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
|
||||
if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ " p0" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
|
||||
trigger_pipelines="Doris_DorisRegression_P0Regression ${trigger_pipelines}"
|
||||
fi
|
||||
if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "nereids_p0" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
|
||||
trigger_pipelines="Doris_DorisRegression_NereidsP0Regression ${trigger_pipelines}"
|
||||
if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ " pipelinex_p0" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
|
||||
trigger_pipelines="Doris_DorisRegression_P0RegressionPipelineX ${trigger_pipelines}"
|
||||
fi
|
||||
if [[ "${comment_message}" =~ "run" && "${comment_message}" =~ "p1" && ! "${comment_message}" =~ "Thanks for your contribution" ]]; then
|
||||
trigger_pipelines="Doris_DorisRegression_P1Regression ${trigger_pipelines}"
|
||||
@ -93,6 +94,7 @@ jobs:
|
||||
if [ -z "${trigger_pipelines}" ];then
|
||||
echo "Just a general comment that doesn't match any pipeline rules"
|
||||
fi
|
||||
set +x
|
||||
|
||||
echo "need run pipelines: ${trigger_pipelines}"
|
||||
|
||||
@ -124,6 +126,8 @@ jobs:
|
||||
echo "the same pr_commit build already exist, this build ${build} is running or in queue!"
|
||||
same_build_sign="true"
|
||||
break
|
||||
else
|
||||
same_build_sign="false"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user