diff --git a/packages/c/community-maozzi/check-sig-pr.sh b/packages/c/community-maozzi/check-sig-pr.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f4e054cabe786827cf82df09a99333bbd8aec02 --- /dev/null +++ b/packages/c/community-maozzi/check-sig-pr.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +resp=$(curl -X GET -k --header 'X-Gitee-Token: anolis-bot' https://121.43.154.63:443/api/webhook/sig/check?pr_url=$PKG_CI_PR_URL --retry 3 --retry-delay 30) +#resp='{"code":"00000","message":"SUCCESS","data":null}' +if [[ $resp =~ ^\{\"code\":\"00000\".* ]]; then + echo 'ok' + exit 0 +else + echo 'fail' + exit 1 +fi \ No newline at end of file diff --git a/packages/c/community-maozzi/ci.yaml b/packages/c/community-maozzi/ci.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c9c75453d763e0e4ce689af6d4052c50b22ba0ba --- /dev/null +++ b/packages/c/community-maozzi/ci.yaml @@ -0,0 +1,12 @@ +repo: + git_url: https://gitee.com/maozzi/community.git + trigger_mode: pr +test: + code_test: + tone_test: basic_test + server_config: '{product}-anck-x86_64' + test_task_4: + tone_test: script + entry: check-sig-pr.sh #测试脚本需要放到ci.yaml同级目录中 + server_config: '{product}-anck-x86_64' + force_check: True \ No newline at end of file diff --git a/packages/c/community/ci.yaml b/packages/c/community/ci.yaml index 88583cf2f85fea31ccc4a4b5c8247572168df87f..423494092e74e7869f49850d47487d7f7aaefb57 100644 --- a/packages/c/community/ci.yaml +++ b/packages/c/community/ci.yaml @@ -1,12 +1,12 @@ -repo: - git_url: https://gitee.com/maozzi/community.git - trigger_mode: pr -test: - code_test: - tone_test: basic_test - server_config: '{product}-anck-x86_64' - test_task_4: - tone_test: custom_test - entry: check-sig-pr.sh #测试脚本需要放到ci.yaml同级目录中 - server_config: '{product}-anck-x86_64' - force_check: False \ No newline at end of file +repo: + git_url: https://gitee.com/openanolis-copy/community.git + trigger_mode: pr +test: + code_test: + tone_test: basic_test + server_config: '{product}-anck-x86_64' + sig_test: + tone_test: custom_test + entry: check-sig-pr.sh #测试脚本需要放到ci.yaml同级目录中 + server_config: '{product}-anck-x86_64' + force_check: True \ No newline at end of file