diff options
| author | 杨威 <[email protected]> | 2019-05-23 10:15:12 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2019-05-23 10:15:12 +0800 |
| commit | ccc3dc3b30051b3590db2439a015f3abd01e15f0 (patch) | |
| tree | 153602215b103e3cd56121ce88b6dc62978a241b | |
| parent | 73da903702ca0b40831b53a8745097114746e44d (diff) | |
Update .gitlab-ci.yml
| -rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b328e44..6e87938 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,7 +30,7 @@ build: - ./build/*.rpm .get_release_cmd: &get_release_cmd | - res=`echo -e "curl --header \"PRIVATE-TOKEN: $TOKEN\" $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG -o /dev/null -s -w %{http_code}"| /bin/bash` + echo -e "curl --header \"PRIVATE-TOKEN: $TOKEN\" $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG -o /dev/null -s -w %{http_code}"| /bin/bash .create_link_cmd: &create_link_cmd | echo -e "curl --request POST --header \"PRIVATE-TOKEN: $TOKEN\" --data name=\"$CI_PROJECT_NAME_$CI_COMMIT_TAG_artifacts.zip\" --data url=\"$CI_PROJECT_URL/-/jobs/artifacts/$CI_COMMIT_TAG/download?job=$ARTIFACTS_JOB\\" $CI_API_V4_URL/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG/assets/links""| /bin/bash @@ -45,4 +45,4 @@ release: only: - tags script: - - *get_release_cmd && if [[ $res =~ "200" ]]; then *create_link_cmd; else *create_release_cmd; fi
\ No newline at end of file + - res=`*get_release_cmd` && if [[ $res =~ "200" ]]; then *create_link_cmd; else *create_release_cmd; fi
\ No newline at end of file |
