I am testing plugins/webhook locally using drone exec, trying to test on the local endpoint which is running on http://localhost:5001/endpoint
steps: - name: test image: alpine commands: - echo hello - echo world - name: send image: plugins/webhook network_mode: host settings: urls: http://localhost:5001/endpoint debug: true
Tried to set the network mode to host but still not working.
After using command “drone exec --trusted” i am getting error: Failed to execute the HTTP request. Post http://localhost:5001/endpoint/: dial tcp [::1]:5001: connect: connection refused. Am I missing something?