How do you build a .hpi file which can be uploaded to Jenkins?
ishaangandhi opened this issue · 2 comments
ishaangandhi commented
Describe your use-case which is not covered by existing documentation.
I've run mvn compile
and get successful output. I've also run:
$ find . -type f -name "*.hpi"
./target/jenkins-for-test/WEB-INF/detached-plugins/sshd.hpi
./target/jenkins-for-test/WEB-INF/detached-plugins/junit.hpi
...
Which of these hpi is what I need to upload to Jenkins?
Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.
No response
KalleOlaviNiemitalo commented
mvn package
compiles, runs tests, and generates target/cloudbees-bitbucket-branch-source.hpi
.
https://ci.jenkins.io/job/Plugins/job/bitbucket-branch-source-plugin/job/master/369/flowGraphTable/ shows the CI ran mvn clean install
with a lot of options. One of the possible options is -DskipTests
, which appears to work with mvn package
too. According to https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html, install
also installs to a local repository; that apparently defaults to ~/.m2/repository/
.
ishaangandhi commented
Thank you -- exactly what I needed!