tom
tom

Reputation: 1493

How to use a different Jenkins plugin version on hpi:run?

I am trying to use mvn hpi:run -Djetty.port=8090 to work on a plugin for Jenkins, but I want to use the latest version. When my Jenkins starts up, it's always "ver. 1.625.3".

How can I make it start up using 2.x? I tried setting a version in the pom.xml but it didn't work.

<parent>
    <groupId>org.jenkins-ci.plugins</groupId>
    <artifactId>plugin</artifactId>
    <version>2.11</version>
</parent>

Upvotes: 1

Views: 1368

Answers (1)

daspilker
daspilker

Reputation: 8194

See https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-pom.xml.

Either run Maven with mvn hpi:run -Djetty.port=8090 -Djenkins.version=1.625.3 or add the following snippet to your POM:

<properties>
  <jenkins.version>1.625.3</jenkins.version>
</properties>

Upvotes: 5

Related Questions