Jenkins 설정
- 1 Credentials
- 1.1 Git
- 1.2 Slack Notification
- 1.3 Result
- 2 Plugin Manager
- 2.1 Install Plugins
- 3 Configure Global Security
- 3.1 Authorization
- 3.1.1 Create User
- 3.1 Authorization
- 4 Global Tool Configuration
- 5 Configure System
- 5.1 Global properties
- 5.1.1 Publish over SSH
- 5.2 Slack
- 5.1 Global properties
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
Publish Over SSH
Slack Notification
Active Choices
chromedriver
Gradle
Job DSL
NodeJS
Monitoring
SSH Pipeline Steps
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.