본문 바로가기

운영체제/raspbian

[라즈베리파이] 젠킨스 java -jar war 실행

목적
- 설치 방식이 아닌 war 파일 실행

pc 정보
- os : Raspberry Pi OS Lite
- java version : 11

참고사항
- 다운로드는 mac os서 진행 후 scp를 이용하여 라즈베리에 파일을 이동했습니다.

젠킨스 war 파일 다운(mac os에서 진행)
접속 https://www.jenkins.io

Jenkins

Special thanks from the Jenkins project to users and contributors with the New Year! Let’s take a look at some changes this year. Highlights Major events including Google Summer of Code, Hacktoberfest, She Code Africa Contributhon, and three Contributor

www.jenkins.io

war 파일 다운로드

라즈베리파이에 파일 업로드

라즈베리파이에 업로드된 젠킨스 파일 권한 변경

chmod 755 jenkins.war

젠킨스 실행

java -jar jenkins.war --httpPort=8080

실행이 완료되면 마지막에 아래와 같이 표시됩니다.( 초기 비밀번호가 표시됨 )

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

0824cfc81a2f48ab862ac62d71b67c84

This may also be found at: /home/pi/.jenkins/secrets/initialAdminPassword

초기 비밀번호 재 확인

cat /home/pi/.jenkins/secrets/initialAdminPassword

접속화면 확인

http://localhost:8080

접속하시고 아래와 같은 화면이 나온되면 정상적으로 실행 완료된 것입니다.

처음 접속화면

초기 비밀번호는 처음 실행 후 생성된 비밀번호를 입력하시면 됩니다.

초기 비밀번호 입력

기본 플러그인 설치

기본 플러그인 설치
플러그인 설치중
관리자 계정 설정

젠킨스 url 설정
설정변경없이 [save and finish] 버튼 클릭

설정 종료 화면
[Start using Jenkins] 클릭

최종 설정 완료 후 표시되는 화면 입니다.

설정 완료 후 접속화면

젠킨스 홈페이지 참조
https://www.jenkins.io/doc/pipeline/tour/getting-started/

Getting started with the Guided Tour

This guided tour introduces you to the basics of using Jenkins and its main feature, Jenkins Pipeline. This tour uses the "standalone" Jenkins distribution, which runs locally on your own machine.

www.jenkins.io