debian-mirror-gitlab/doc/raketasks/web_hooks.md

44 lines
1.5 KiB
Markdown
Raw Normal View History

2018-11-08 19:23:39 +05:30
# Webhooks administration **[CORE ONLY]**
2014-09-02 18:07:02 +05:30
2016-06-02 11:05:42 +05:30
## Add a webhook for **ALL** projects:
2014-09-02 18:07:02 +05:30
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
2015-04-26 12:48:37 +05:30
# source installations
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
2016-06-02 11:05:42 +05:30
## Add a webhook for projects in a given **NAMESPACE**:
2014-09-02 18:07:02 +05:30
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
2015-04-26 12:48:37 +05:30
# source installations
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
2016-06-02 11:05:42 +05:30
## Remove a webhook from **ALL** projects using:
2014-09-02 18:07:02 +05:30
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
2015-04-26 12:48:37 +05:30
# source installations
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
2016-06-02 11:05:42 +05:30
## Remove a webhook from projects in a given **NAMESPACE**:
2014-09-02 18:07:02 +05:30
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
2015-04-26 12:48:37 +05:30
# source installations
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
2016-06-02 11:05:42 +05:30
## List **ALL** webhooks:
2014-09-02 18:07:02 +05:30
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list
2015-04-26 12:48:37 +05:30
# source installations
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
2016-06-02 11:05:42 +05:30
## List the webhooks from projects in a given **NAMESPACE**:
2014-09-02 18:07:02 +05:30
# omnibus-gitlab
2018-12-23 12:14:25 +05:30
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=acme
2015-04-26 12:48:37 +05:30
# source installations
2018-12-23 12:14:25 +05:30
bundle exec rake gitlab:web_hook:list NAMESPACE=acme RAILS_ENV=production