일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- local
- 방콕
- codebuild
- node.js
- 체코
- Selenium
- 태국
- 뮌헨
- javascript
- 미츠이 스미토모
- terraform
- 三井住友カード
- duckdb
- 메르페이
- react.js
- 아타미
- JenkinsFile
- typescript
- documentdb
- CSV
- 페이페이
- 釜つる
- PayPay
- vba
- pyenv
- markdown
- Python
- 프라하
- 熱海
- PostgreSQL
- Today
- Total
목록Tech/Jenkins (2)
도쿄사는 외노자
Commit Message 취득 def get_commit_msg(){ script { return sh(script : "git show -s --format=%B ${env.GIT_COMMIT}", returnStdout: true).trim().replace (' ', '-spc-') } } Author 취득 def get_commit_author(){ script { return sh(script : "git --no-pager show -s --format=%an ${env.GIT_COMMIT}", returnStdout: true).trim() } } Jenkinsfile 환경변수 설정 및 사용 pipeline { agent any environment { BATCH_DIR = "./path"..
node_modules가 없거나 package.json이 갱신된 경우에만 npm install을 돌리도록 한다. 1. package.json이 갱신되었는지 판별 def check_package_updated() { script { def pretty = "" def file_paths = sh(script : "git show --pretty=${pretty} --name-only ${env.GIT_COMMIT}", returnStdout: true).trim() def path_list = file_paths.split('\n') def is_updated = 0 for (path in path_list) { if(path.contains("package.json")) { is_updated=1 } }..