Jenkins: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{| | |||
| valign="top" | | |||
'''Linux:''' | |||
export JENKINS_HOME=/srv/jenkins | |||
| valign="top" | | |||
'''MacOS:''' | |||
export JENKINS_HOME=$HOME/jenkins | |||
|} | |||
{| class="wikitable sortable" | |||
|- | |||
! Local location !! Container location !! Usage | |||
|- | |||
| <code>$JENKINS_HOME/jenkins_2.235.3/jenkins_home</code> || <code>/var/jenkins_home</code> || For storing jenkins data | |||
|} | |||
==Docker== | |||
<source lang="bash"> | |||
docker run --detach \ | |||
--publish 8080:8080 \ | |||
--publish 50000:50000 \ | |||
--name jenkins \ | |||
--volume $JENKINS_HOME/jenkins2.235/jenkins_home:/var/jenkins_home \ | |||
jenkins/jenkins:2.235.3-lts-centos7 | |||
</source> | |||
==Raspbian== | |||
<source lang="bash"> | <source lang="bash"> | ||
df -h | df -h |
Revision as of 22:57, 10 August 2020
Linux: export JENKINS_HOME=/srv/jenkins |
MacOS: export JENKINS_HOME=$HOME/jenkins |
Local location | Container location | Usage |
---|---|---|
$JENKINS_HOME/jenkins_2.235.3/jenkins_home |
/var/jenkins_home |
For storing jenkins data |
Docker
docker run --detach \
--publish 8080:8080 \
--publish 50000:50000 \
--name jenkins \
--volume $JENKINS_HOME/jenkins2.235/jenkins_home:/var/jenkins_home \
jenkins/jenkins:2.235.3-lts-centos7
Raspbian
df -h
vcgencmd measure_temp
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
apt update
apt list --upgradable
apt install git/stable
apt install jenkins/binary
systemctl start jenkins
systemctl status jenkins
systemctl enable jenkins
/lib/systemd/systemd-sysv-install enable jenkins
vcgencmd measure_temp
df -h
Admin User
cat /var/lib/jenkins/secrets/initialAdminPassword
ssh -L 8080:localhost:8080 [email protected]
http://localhost:8080