Search code examples
jenkinsbuildnpmnexuspost-commit-hook

Is there a way to trigger a Jenkins build after publishing an npm package to Sonatype Nexus?


Is there a way to trigger a Jenkins build after publishing an npm package to Sonatype Nexus?

I've been clicking through Sonetype's docs for Nexus and exploring my Nexus admin console. I've also tried searching for some plugins but I'm not sure if I'm not using the right terminology or if there just isn't a lot of info about calling a URL or something after publishing a package to Nexus.


Solution

  • I haven't tried it but it looks like you're hunting for this?

    https://github.com/vbehar/nexus-webhook-plugin

    You'd have to create a middleware to consume the hook and trigger a build via the jenkins api.