Merge pull request #2409 from zhaojuntao/update-ci-0308
[ci] 使用环境变量配置 ci 中 auto test 使用的项目仓库
This commit is contained in:
commit
59d04452ce
|
@ -124,7 +124,7 @@ jobs:
|
||||||
--header "PRIVATE-TOKEN:${GITLAB_ACCESS_TOKEN}"
|
--header "PRIVATE-TOKEN:${GITLAB_ACCESS_TOKEN}"
|
||||||
--header "Content-Type:application/json"
|
--header "Content-Type:application/json"
|
||||||
--data '{"ref":"master","tag":"windows","variables":[{"key":"REPOSITORY_URL","value":"'${REPOSITORY_URL}'"},{"key":"GITHUB_EVENT_TYPE","value":"'${TRAVIS_EVENT_TYPE}'"},{"key":"GITHUB_JOB_ID","value":"'${TRAVIS_BUILD_NUMBER}'"},{"key":"GITHUB_PR_NUMBER","value":"'${TRAVIS_PULL_REQUEST}'"},{"key":"GITHUB_DEFAULT_BRANCH","value":"'${TRAVIS_BRANCH}'"},{"key":"GITHUB_HEAD_SHA","value":"'${TRAVIS_PULL_REQUEST_SHA}'"}]}'
|
--data '{"ref":"master","tag":"windows","variables":[{"key":"REPOSITORY_URL","value":"'${REPOSITORY_URL}'"},{"key":"GITHUB_EVENT_TYPE","value":"'${TRAVIS_EVENT_TYPE}'"},{"key":"GITHUB_JOB_ID","value":"'${TRAVIS_BUILD_NUMBER}'"},{"key":"GITHUB_PR_NUMBER","value":"'${TRAVIS_PULL_REQUEST}'"},{"key":"GITHUB_DEFAULT_BRANCH","value":"'${TRAVIS_BRANCH}'"},{"key":"GITHUB_HEAD_SHA","value":"'${TRAVIS_PULL_REQUEST_SHA}'"}]}'
|
||||||
"https://git.rt-thread.com/api/v4/projects/627/pipeline?ref=master";
|
"${GITLAB_REPOSITORY_API}";
|
||||||
else
|
else
|
||||||
echo "not PR mode";
|
echo "not PR mode";
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue