Since manually executing steps of my plugin with demo projects takes some time, I'd like to execute it on a separate server using mvn hpi:run
. To access Jenkins on my desktop, I'd like to tunnnel e.g. using ssh server -L 8080:server
. Unfortunately, I cannot access the server with tunnelling and even on the server itself, curl localhost:8080
works and curl server:8080
does not work (and ssh server
works, so it is not a connection problem).
Since ufw is disabled, I assume that the Jenkins which is run by maven usually only listens to 127.0.0.1
. To change this, according to https://wiki.jenkins.io/display/JENKINS//Starting+and+Accessing+Jenkins, either setting --httpListenAddress=0.0.0.0
or setting $HTTP_HOST
should be possible (https://serverfault.com/questions/408657/how-to-access-jenkins-remotely-on-ubuntu-12-04-server).
Unfortunately, both versions
mvn clean hpi:run -DhttpListenAddress=0.0.0.0
export HTTP_HOST=0.0.0.0 && mvn clean hpi:run
did not succeed. Additionally, I guessed -Djetty.host=0.0.0.0
could work (how to make jetty server accessible from LAN?) since the port of Jenkins can be set using -Djetty.port
, but it also did not work:
mvn clean hpi:run -Djetty.host=0.0.0.0
Is there any option to make a Jenkins plugin directly remote accessible when using hpi:run
, or is it necessary to deploy it to a local Jenkins server everytime?