Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PI-Victor/dbf15ba42928266ce280be2f195ae505 to your computer and use it in GitHub Desktop.
Save PI-Victor/dbf15ba42928266ce280be2f195ae505 to your computer and use it in GitHub Desktop.
CURL the github webhook of openshift to start a build
curl -kvX POST -A "GitHub-Hookshot/github" -H "Content-Type:application/json" -H "X-Github-Event:push" -d @/data/src/github.com/openshift/origin/pkg/build/webhook/github/fixtures/pushevent.json https://10.0.2.15:8443/oapi/v1/namespaces/demo/buildconfigs/centos/webhooks/f-A_pRLVKY5Y6ZfprEyf/github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment