Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-11390

POST hook does not appear to work on test repository

    XMLWordPrintable

Details

    Description

      I created a test repository in order to test POST hooks

      https://bitbucket.org/eradman/hook-test

      Then added a hook with the following URL:

      http://eradman.com:9003/

      Next I started a simple test server:

      ::::ruby
      require "json"
      require "sinatra"
      
      set :port, 9003
      set :bind, '0.0.0.0'
      
      post '/' do
          reply = {:status=>"ok"}
          puts params
          reply.to_json
      end
      

      When I push commits to this test repo nothing seems to happen. Are hooks broken
      or did I miss something?

      Attachments

        Activity

          People

            Unassigned Unassigned
            44231440-dd55-4d5e-878f-f84298cd4000 Deleted Account (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: