Jenkins 설정

 


Credentials

Git

Click Credentials from left side bar → (global) in the jenkins store

 

Click Add Credentials

 

username is git ID

password is git PW

ID is using inside the pipeline to get auth as a git-credential

Description write To get git authorisation to access

 

 

Slack Notification

Create channel

 

Click preference → Add an app

 

Search Jenkins and click Add

 

Click View in App Directory

https://iondxp.slack.com/apps → search Jenkins

 

Click Add to Slack

 

Select channel Jenkins notification

Click Add Jenkins CI integration

 

Edit configuration

 

Copy Token

 

Go to Jenkins Credential → click (global) → Add Credential

select secret text

copy slack token into secret

ID is using inside the pipeline to get auth as a git-credential

Description write To get slack authorisation to access

 

Result

 

 


Plugin Manager

Install Plugins

Manage Jenkins → Manage Plugins → Available

Find and Install

  1. Publish Over SSH

  2. Slack Notification

  3. Active Choices

  4. chromedriver

  5. Gradle

  6. Job DSL

  7. NodeJS

  8. Monitoring

  9. SSH Pipeline Steps

  10. Workspace cleanup

 

Click Download now and install after restart Jenkins

 


Configure Global Security

Authorization

Create User

To sign up by developer

When creating New Jenkins, Should Allow to sign up option.

Close this option to block stranger’s sign up after the developers sign up did within 2 ~ 3 days.

 

Select Allow users to sign up to join developer on Jenkins

 

Now, Available to create an account

 

To create account by the administrator

Manage Jenkins → Manage Users

Select Create User

 

Write Information

 

Result

 

Delete User

Manage Jenkins → Manage Users

Click Delete icon(Red)

 

 

 

 


Global Tool Configuration

Manage Jenkins → Manage Plugins → Configure system

 

Nodejs install

set name as a NODE_HOME

 

 


Configure System

Manage Jenkins → Configure system

Global properties

Select Environment variables

Name: JAVA_TOOL_OPTIONS

Value: -Xmx2048 -XX:MaxPermSize=2048 -Dfile.encoding=UTF-8

 

 

 

Publish over SSH

  • Name

  • Hostname(IP)

  • username: ec2-user

  • remote directory: /Home/ec2-user

  • Press advanced → Input Key

 

 

Slack

Must required Slack Notification plugin, Create Credential to access Slack.