우분투 Jenkins 설치 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
1번째 줄: 1번째 줄:
{{테스트|ubuntu 16.04 LTS}}
{{테스트|ubuntu 16.04 LTS}}
==개요==
==개요==
;Jenkins Installation
;Jenkins Installtion
;젠킨스 설치
;젠킨스 설치
*젠킨스 설치 방법
*젠킨스 설치 방법
7번째 줄: 7번째 줄:
==Java 설치==
==Java 설치==
===Java 버전 확인===
===Java 버전 확인===
<syntaxhighlight lang='console'>
<source lang='console'>
john@zetawiki:/etc/apt$ java -version
john@zetawiki:/etc/apt$ java -version
'java' 프로그램은 다음 패키지에서 찾을 수 있습니다:
'java' 프로그램은 다음 패키지에서 찾을 수 있습니다:
17번째 줄: 17번째 줄:
  * openjdk-9-jre-headless
  * openjdk-9-jre-headless
다음을 실행해 보십시오: sudo apt install <선택한 패키지>
다음을 실행해 보십시오: sudo apt install <선택한 패키지>
</syntaxhighlight>
</source>
:→Java 설치가 되어 있지 않음을 알 수 있음
:→Java 설치가 되어 있지 않음을 알 수 있음


===Java 설치===
===Java 설치===
*Jenkins가 아직 Java 9와의 호환성 문제가 해결이 되지 않음을 참고 (http://pkg.jenkins-ci.org/debian/)
*Jenkins가 아직 Java 9와의 호환성 문제가 해결이 되지 않음을 참고 (http://pkg.jenkins-ci.org/debian/)
<syntaxhighlight lang='console'>
<source lang='console'>
john@zetawiki:/etc/apt$ sudo apt-get install openjdk-8-jre-headless -y
john@zetawiki:/etc/apt$ sudo apt-get install openjdk-8-jre-headless -y
패키지 목록을 읽는 중입니다... 완료
패키지 목록을 읽는 중입니다... 완료
257번째 줄: 257번째 줄:
done.
done.
done.
done.
</syntaxhighlight>
</source>
 
===설치 확인===
<syntaxhighlight lang='console'>
john@zetawiki:/etc/apt$ java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-2ubuntu1.16.04.3-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
</syntaxhighlight>
 
 
==Jenkins 설치==
===apt key 추가===
<syntaxhighlight lang='console'>
john@zetawiki:~$ wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
</syntaxhighlight>
 
===syntaxhighlights.list에 jenkins 위치 추가===
*vi로 syntaxhighlights.list 파일 수정
<syntaxhighlight lang='console'>
john@zetawiki:/etc/apt$ sudo vi /etc/apt/syntaxhighlights.list
</syntaxhighlight>
 
*위치 추가
: 마지막 줄 "deb https://pkg.jenkins.io/debian binary/" 추가
<syntaxhighlight lang='console'>
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
 
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial main restricted
 
## Major bug fix updates produced after the final release of the
## distribution.
deb http://kr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://kr.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://kr.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial-updates universe
 
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://kr.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://kr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
 
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://kr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://kr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
 
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
 
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
 
# Jenkins Debian Packages
deb https://pkg.jenkins.io/debian binary/
</syntaxhighlight>
 
===apt-get update===
*apt에 추가한 내용에 대하여 업데이트 수행
<syntaxhighlight lang='console'>
john@zetawiki:/etc/apt$ sudo apt-get update
</syntaxhighlight>
 
===Jenkins 설치===
<syntaxhighlight lang='console'>
john@zetawiki:/etc/apt$ sudo apt-get install jenkins -y
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다     
상태 정보를 읽는 중입니다... 완료
다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다:
  linux-headers-4.8.0-36 linux-headers-4.8.0-36-generic linux-image-4.8.0-36-generic linux-image-extra-4.8.0-36-generic
  snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  daemon
다음 새 패키지를 설치할 것입니다:
  daemon jenkins
0개 업그레이드, 2개 새로 설치, 0개 제거 및 8개 업그레이드 안 함.
72.6 M바이트 아카이브를 받아야 합니다.
이 작업 후 73.4 M바이트의 디스크 공간을 더 사용하게 됩니다.
받기:1 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 daemon amd64 0.6.4-1 [98.2 kB]
받기:2 https://pkg.jenkins.io/debian binary/ jenkins 2.79 [72.5 MB]
내려받기 72.6 M바이트, 소요시간 59초 (1,229 k바이트/초)                                                                 
Selecting previously unselected package daemon.
(데이터베이스 읽는중 ...현재 246283개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../daemon_0.6.4-1_amd64.deb ...
Unpacking daemon (0.6.4-1) ...
Selecting previously unselected package jenkins.
Preparing to unpack .../archives/jenkins_2.79_all.deb ...
Unpacking jenkins (2.79) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
daemon (0.6.4-1) 설정하는 중입니다 ...
jenkins (2.79) 설정하는 중입니다 ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
</syntaxhighlight>
 
==서비스 시작==
<syntaxhighlight lang='console'>
john@zetawiki:/etc/apt$ sudo service jenkins restart
</syntaxhighlight>
 
==서비스 확인==
* http://localhost:8080/ 입력하여 서비스 동작 확인
 
==Unlock Jenkins==
*이번 버전들의 보안 문제로 Unlock 상태로 기본 서비스가 시작됨
===Unlock===
* root 계정으로 번호를 받음
<syntaxhighlight lang='console'>
root@zetawiki:/# sudo cat /var/lib/jenkins/secrets/initialAdminPassword
aa6d3608f9bd4970b17162b4f0511831
</syntaxhighlight>
 
*번호를 Unlock된 페 Jenkins 페이지의 Administrator password에 입력


==같이 보기==
==같이 보기==
* [[Jenkins]]
* [[같이보기]]
* [[같이보기]]
* [[같이보기]]
* [[같이보기]]


==참고==
* {{위키백과}}
* {{다음사전}}
* {{다음백과}}
* {{네이버사전}}
* {{네이버백과}}


[[분류: Jenkins]]
[[분류: 국사]]
[[분류: 세계사]]
[[분류: 명사]]
[[분류: 명사]]

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)

이 문서에서 사용한 틀: