How to configure Jenkins deployment path on Ubuntu?

581

Ah, looking at /etc/default/jenkins a bit more, this turned out very easy.

The end of /etc/default/jenkins looks like this by default:

# servlet context, important if you want to use apache proxying  
PREFIX=/jenkins

# arguments to pass to jenkins.
# --javahome=$JAVA_HOME
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
# --httpsPort=$HTTP_PORT
# --ajp13Port=$AJP_PORT
# --argumentsRealm.passwd.$ADMIN_USER=[password]
# --argumentsRealm.roles.$ADMIN_USER=admin
# --webroot=~/.jenkins/war
# --prefix=$PREFIX

JENKINS_ARGS="--webroot=/var/cache/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"

So, you only need to set PREFIX to your liking, and edit JENKINS_ARGS to contain --prefix=$PREFIX. So JENKINS_ARGS would be something like:

 JENKINS_ARGS="--webroot=/var/cache/jenkins/war --prefix=$PREFIX --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
Share:
581
Mussé Redi
Author by

Mussé Redi

Updated on September 18, 2022

Comments

  • Mussé Redi
    Mussé Redi almost 2 years

    What's the function of <HTMLSelectElement> in the context of a TypeScript assignment?

    let element = <HTMLSelectElement> document.querySelector('#id_name');
    

    Mozilla's documentation discusses the similarly named HTMLSelectElement interface, which seems different than the one used in TypeScript.