Sha256: d295c4fc1ca2302e9e079ad0f6601b67f23aa7062950de69b20e2e037e560bf9
Contents?: true
Size: 1.02 KB
Versions: 14
Compression:
Stored size: 1.02 KB
Contents
# Rodbot Plugin – GitLab Webhook Pipeline event announcements from GitLab ## Preparation The Rodbot app binds to `localhost` by default which cannot be reached from GitLab. Make sure this connection is possible by setting a different IP in `config/rodbot.rb`: ```ruby app do host '0.0.0.0' end ``` To authenticate the webhook calls from GitLab, create a new random secret token: ``` ruby -r securerandom -e "puts SecureRandom.alphanumeric(20)" ``` ## Activation Activate and configure this plugin in `config/rodbot.rb`: ```ruby plugin :gitlab_webhook do secret_tokens '<TOKEN>' end ``` You can set any number of secure tokens here separated with colons. ## Add Repositories Add a webhook to every GitLab repository you'd like to see pipeline event announcements for. Go to `https://gitlab.com/<USER>/<REPO>/-/hooks` and create a new webhook with the following properties: * URL: `https://<RODBOT-APP>/gitlab_webhook` * Secret token: `<TOKEN>` * Trigger: [x] Pipeline events * SSL verification: [x] Enable SSL verification
Version data entries
14 entries across 14 versions & 1 rubygems