sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
Jenkins의 최신 버전을 설치한다.
sudo apt update
sudo apt install jenkins
다음과 같은 오류 메시지가 나타난다.
Error: W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn’t be verified because the public keyisnot available: NO_PUBKEY 9B7D32F2D50582E6"
해당 오류는 PGP 공개키가 서버에 등록되지 않아서 발생한 것으로 키를 ubuntu keyserver에 등록한다.