Merge pull request #2409 from zhaojuntao/update-ci-0308

[ci] 使用环境变量配置 ci 中 auto test 使用的项目仓库
This commit is contained in:
Bernard Xiong 2019-03-08 21:49:15 +08:00 committed by GitHub
commit 59d04452ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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