Merge pull request #5563 from zjs/topic/fix-drone

Fix continuous integration pipeline following move to goharbor org
This commit is contained in:
Daniel Jiang 2018-08-09 10:02:58 +08:00 committed by GitHub
commit 0123dfbe45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@ pipeline:
commands:
- echo ${DRONE_COMMIT_AUTHOR}
- echo $SKIP_CHECK_MEMBERSHIP
- if $SKIP_CHECK_MEMBERSHIP == true; then echo 'check-org-membership step skipped'; else /bin/bash -c '[[ ! $(curl --silent "https://api.github.com/orgs/vmware/members/${DRONE_COMMIT_AUTHOR}?access_token=$GITHUB_AUTOMATION_API_KEY") ]]'; fi
- if [ "$SKIP_CHECK_MEMBERSHIP" = "true" ]; then echo 'check-org-membership step skipped'; else /bin/bash -c '[[ ! $(curl --silent "https://api.github.com/orgs/vmware/members/${DRONE_COMMIT_AUTHOR}?access_token=$GITHUB_AUTOMATION_API_KEY") ]]'; fi
when:
status: success
@ -67,9 +67,9 @@ pipeline:
target: slack_webhook
username: drone
template: >
build https://ci-vic.vmware.com/vmware/harbor/{{ build.number }} finished with a {{ build.status }} status. Please find logs at https://storage.googleapis.com/harbor-ci-logs/integration_logs_{{ build.number }}_{{ build.commit }}.tar.gz
build https://ci-vic.vmware.com/goharbor/harbor/{{ build.number }} finished with a {{ build.status }} status. Please find logs at https://storage.googleapis.com/harbor-ci-logs/integration_logs_{{ build.number }}_{{ build.commit }}.tar.gz
when:
repo: vmware/harbor
repo: goharbor/harbor
event: [push, tag, deployment]
branch: [ master, release-*, refs/tags/* ]
status: [ failure, success ]
@ -83,7 +83,7 @@ pipeline:
repositories:
- vmware/vic-product
when:
repo: vmware/harbor
repo: goharbor/harbor
event: [ push, tag ]
branch: [ master, release-*, refs/tags/* ]
status: success

View File

@ -18,7 +18,7 @@ gsutil version -l
set +x
## -------------------------------------------- Pre-condition --------------------------------------------
if [[ $DRONE_REPO != "vmware/harbor" ]]; then
if [[ $DRONE_REPO != "goharbor/harbor" ]]; then
echo "Only run tests again Harbor Repo."
exit 1
fi