jenkins
# 安装
# 安装java
sudo apt update
sudo apt install openjdk-11-jre
java -version
1
2
3
4
5
6
2
3
4
5
6
# 安装jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
1
2
3
4
5
6
7
2
3
4
5
6
7
# 配置
# 查看密码
cat /var/lib/jenkins/secrets/initialAdminPassword
3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxc
1
2
3
2
3
# 修改端口的文件
/etc/default/jenkins
# 问题
报错:
无法连接仓库:Command "git ls-remote -h -- git@git-ssh.birenchong.cn:dxxxxxxt/java/dxxxxxxt.git HEAD" returned status code 128:
stdout:
stderr: No ECDSA host key is known for git-ssh.birenchong.cn and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
本地连接一下远程地址,然后把
把~/.ssh/known_hosts 拷贝到 /var/lib/jenkins/.ssh/
1
2
2
Last Updated: 2023/11/08, 14:45:54