How to deploy a custom build of a core plugin bundled in Jenkins?

  • 1
    What do you mean by "deploy a custom field"? If you've customized/forked a core plugin, you can probably just plop the hpi file in there and override the built-in one (disclaimer: haven't tried this, but worth looking in to). Commented Feb 28, 2017 at 17:00
  • 1
    @AssafLavie edited the question to properly ask about build, not field. Commented Mar 5, 2017 at 14:05
  • 1
    Please demonstrate more research into the question. Especially since we are still in private beta.
    – avi
    Commented Mar 5, 2017 at 14:47

1 Answer 1


This section of the official Jenkins Plugin Tutorial will probably be of use.

According to the writers of that documentation, you need to copy your .hpi file to $JENKINS_HOME/plugins, remove the plugin's development directory, and finally create an empty file called .hpi.pinned for maven to use. Then you should be ready to restart Jenkins and use your custom build of a core plugin.

They also suggest running mvn clean when you're ready to update Jenkins to remove old files (after changing core plugins, old .jar files might still be around after updating).

Not the answer you're looking for? Browse other questions tagged or ask your own question.