Notify Jenkins of new post on Wordpress
Does anyone know if it is possible to "notify" a Jenkins VI server whenever a new post is made on a headless wordpress installation?
The reason why I'm asking this is because I'm using gatsby to fetch data from a headless wordpress endpoint and I always need to trigger a new build manually whenever there is new content to be pushed. That's fine for me, but marketing and hr people don't know how to use jenkins (to be fair they shouldn't)
It would be great If I somehow could notify my CI that there is new content available, and thus a new build needs to be triggered automatically.
Pretty much like contentful and netlify work together. Whenever there is a new post, a webhook is sent to netlify and that triggers a new build. Only this time, all the services would be on an internal network, and the only thing public is the build folder from gatsby. So the content would be static.
Sorry if this is a dumb question. I'm not quite sure what to do here. Is this something that needs to be made on the wordpress side? Or on jenkins side?
Can someone please help me? Thank you!
Topic rest-api static-website pingbacks Wordpress
Category Web