4

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

  • 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). – Assaf Lavie Feb 28 '17 at 17:00
  • 1
    @AssafLavie edited the question to properly ask about build, not field. – Evgeny Mar 5 '17 at 14:05
  • Please demonstrate more research into the question. Especially since we are still in private beta. – avi Mar 5 '17 at 14:47
7

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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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