安装jenkins
Password: --------------
Reference:
https://www.cnblogs.com/gufengchen/p/13281116.html
https://phoenixnap.com/kb/how-to-install-java-centos-8
https://linuxize.com/post/how-to-install-jenkins-on-centos-7/
https://linoxide.com/ubuntu-how-to/install-java-ubuntu-20-04/
https://medium.com/try-except-finally/install-jenkins-on-wsl-ubuntu-d6cfeec8cd60
Make an apt update, or JRE may download incomplete,
sudo apt update
Install Java Runtime Environment (JRE)
sudo apt install default-jdk default-jre
Right here, I will test if java installed by this
Java -version
Setup GPG keys of the Jenkins repository
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
Add Jenkins repository
sudo sh -c “echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list”
Make an apt update before installing, since you just add a new repository,
sudo apt update
Install Jenkins via apt
sudo apt install jenkins
Start Jenkins services by
sudo /etc/init.d/jenkins start
Launch Jenkins
Launch your browser and navigate to
http://{your_ip}:8080
http://localhost:8080
http://localhost:8080/jenkins
s
password
sudo vi /var/lib/jenkins/secrets/initialAdminPassword
http://localhost:8080/
Instance Configuration
http://localhost:8080/
Gitlab 账号
https://stackoverflow.com/questions/33883551/error-installing-ruby-runtime-in-jenkins
ruby-runtime jdk-8
Gitlab Hook
Jdk 8 is supported well ,while jdk-11 is not supported on ruby-runtime.
It is Known issue at https://stackoverflow.com/questions/33883551/error-installing-ruby-runtime-in-jenkins
Solution is jdk8.