To test it out:
- Make sure Java works (if you can reach the Jenkins you installed with apt-get, it does)
- Remove or at least shut down the Jenkins you installed with apt-get (but leave dependencies, like Java!)
- Download the
jenkins.war
of desired version to a location of your choice, such as /home/desireduser/jenkins/
- Set environment variable:
export JENKINS_HOME=/home/desireduser/jenkins
- as desireduser, run
cd ~/jenkins ; java -jar jenkins.war
If you just want to test it out in a secure environment, you can do this with your own account. For shared use, you probably want to create user jenkins or something. But the point of above is, simply running Jenkins is very simple. Things get a bit more complicated and platform-dependent only, when you want it to start it automatically, etc.
To install it as daemon, there are docs.
Alternative way: install with apt-get, then just replace the jenkins.war file with newer version, and restart the service. Jenkins should take care of updating all the extra files. Disclaimer: I have not actually tested this, so I can't promise it actually works... better take backups of jobs, etc.
apt-cache policy jenkins
? Have you tried to doapt-get update
followed byapt-get install jenkins
? – Salem