Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
joohanhong
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JooHan Hong
joohanhong
Commits
c6a25fa4
Commit
c6a25fa4
authored
Aug 08, 2022
by
JooHan Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jenkins, source code deploy init
parent
0c9a28d7
Pipeline
#6086
passed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
README.md
DEVOPS/K8S_SOURCE/README.md
+42
-0
No files found.
DEVOPS/K8S_SOURCE/README.md
0 → 100644
View file @
c6a25fa4
[
![logo
](
https://www.hongsnet.net/images/logo.gif
)
](https://www.hongsnet.net)
# Jenkins Source Code Deploy Overview
> GitLab Project의 Push Event 발생 시 Jenkins가 이를 배포해주는 과정을 살펴본다.
**!참고**
: GitLab Webhook 설정은 생략한다. 만약 확인이 필요하다면, 다음의 링크를 참조한다.
[
바로가기
](
./WEBHOOK/
)
# Jenkins Pipeline Script Configuration
> Jenkins 프로젝트 > 구성 > Pipeline 에서 설정한다.
```
pipeline {
agent any
stages {
stage('Git Clone') {
steps {
sh 'mkdir -p hongsnet'
dir("hongsnet")
{
git branch: 'master', credentialsId: 'juhanida21', url: 'https://gitlab.hongsnet.net/joohan.hong/hongsnet.git'
}
}
}
stage('Source code Deploy') {
steps {
sh 'rsync -avz --progress hongsnet/ 172.24.0.245::HONGSNET-WEB/'
}
}
}
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment