gitlab-org--gitlab-foss/doc/raketasks/web_hooks.md

44 lines
1.5 KiB
Markdown
Raw Normal View History

2018-05-09 12:11:28 -04:00
# Webhooks administration **[CORE ONLY]**
2014-05-27 08:12:15 -04:00
2016-03-10 14:48:29 -05:00
## Add a webhook for **ALL** projects:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
# source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
2016-03-10 14:48:29 -05:00
## Add a webhook for projects in a given **NAMESPACE**:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
# source installations
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
2016-03-10 14:48:29 -05:00
## Remove a webhook from **ALL** projects using:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
# source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
2016-03-10 14:48:29 -05:00
## Remove a webhook from projects in a given **NAMESPACE**:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
# source installations
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
2016-03-10 14:48:29 -05:00
## List **ALL** webhooks:
# omnibus-gitlab
sudo gitlab-rake gitlab:web_hook:list
# source installations
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
2016-03-10 14:48:29 -05:00
## List the webhooks from projects in a given **NAMESPACE**:
# omnibus-gitlab
2018-12-06 13:30:20 -05:00
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=acme
# source installations
2018-12-06 13:30:20 -05:00
bundle exec rake gitlab:web_hook:list NAMESPACE=acme RAILS_ENV=production