> For the complete documentation index, see [llms.txt](https://docs.sysout.co.kr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sysout.co.kr/web/ubuntu-server/jenkins.md).

# Jenkins

## Jenkins in Ubuntu

* OS : Ubuntu 18.04

### Jenkins 설치

```shell
# apt-get upgrade
sudo apt-get update -y
sudo apt-get upgrade -y

# install JDK (필요하다면)
sudo apt install openjdk-11-jdk -y

# add gpg key for jenkins installation
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | apt-key add -

# add repository address to /etc/apt/sources.list.d
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

# upgrade package again
sudo apt-get update -y

# install jenkins
sudo apt-get install jenkins -y
```

### Jenkins 시작

```shell
sudo systemctl start jenkins
```

### Jenkins 중지

```shell
sudo systemctl stop jenkins
```

### Jenkins 방화벽 설정

```shell
sudo ufw allow 포트번호
```

### Jenkins 포트 변경

```shell
sudo nano /etc/default/jenkins
```

<div align="left"><img src="/files/b2CUwSidfcNkoWxzoA9Y" alt=""></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sysout.co.kr/web/ubuntu-server/jenkins.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
