2018-05-09 16:11:28 +00:00
|
|
|
# Webhooks administration **[CORE ONLY]**
|
2014-05-27 12:12:15 +00:00
|
|
|
|
2016-03-10 19:48:29 +00:00
|
|
|
## Add a webhook for **ALL** projects:
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2014-06-23 09:06:25 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook"
|
2015-01-28 06:50:31 +00:00
|
|
|
# source installations
|
2014-08-18 17:08:46 +00:00
|
|
|
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" RAILS_ENV=production
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2016-03-10 19:48:29 +00:00
|
|
|
## Add a webhook for projects in a given **NAMESPACE**:
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2014-06-23 09:06:25 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme
|
2015-01-28 06:50:31 +00:00
|
|
|
# source installations
|
2014-08-18 17:08:46 +00:00
|
|
|
bundle exec rake gitlab:web_hook:add URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2016-03-10 19:48:29 +00:00
|
|
|
## Remove a webhook from **ALL** projects using:
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2014-06-23 09:06:25 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook"
|
2015-01-28 06:50:31 +00:00
|
|
|
# source installations
|
2014-08-18 17:08:46 +00:00
|
|
|
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" RAILS_ENV=production
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2016-03-10 19:48:29 +00:00
|
|
|
## Remove a webhook from projects in a given **NAMESPACE**:
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2014-06-23 09:06:25 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme
|
2015-01-28 06:50:31 +00:00
|
|
|
# source installations
|
2014-08-18 17:08:46 +00:00
|
|
|
bundle exec rake gitlab:web_hook:rm URL="http://example.com/hook" NAMESPACE=acme RAILS_ENV=production
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2016-03-10 19:48:29 +00:00
|
|
|
## List **ALL** webhooks:
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2014-06-23 09:06:25 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:web_hook:list
|
2015-01-28 06:50:31 +00:00
|
|
|
# source installations
|
2014-08-18 17:08:46 +00:00
|
|
|
bundle exec rake gitlab:web_hook:list RAILS_ENV=production
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2016-03-10 19:48:29 +00:00
|
|
|
## List the webhooks from projects in a given **NAMESPACE**:
|
2013-06-05 14:32:22 +00:00
|
|
|
|
2014-06-23 09:06:25 +00:00
|
|
|
# omnibus-gitlab
|
2018-12-06 18:30:20 +00:00
|
|
|
sudo gitlab-rake gitlab:web_hook:list NAMESPACE=acme
|
2015-01-28 06:50:31 +00:00
|
|
|
# source installations
|
2018-12-06 18:30:20 +00:00
|
|
|
bundle exec rake gitlab:web_hook:list NAMESPACE=acme RAILS_ENV=production
|