티스토리 뷰
Environment variables
- environment 에다가 설정하면 된다.
- 사용할 때는 $변수명 형태로 사용하면 된다.
예제
pipeline {
environment {
PROJECT = "my_project"
PHASE = "alpha"
}
agent { label "BUILD"}
stages {
stage("START") {
steps {
sh 'echo "project: $PROJECT, phase: $PHASE"'
}
}
}
}
'DevOps > Jenkins' 카테고리의 다른 글
| 5 Simple tips for boosting your Jenkins performance (0) | 2019.07.04 |
|---|---|
| How to replace Jenkins logo and title text (0) | 2019.07.03 |
| Jenkins: Couldn't find any revision to build. Verify the repository and branch configuration for this job (0) | 2019.04.04 |
| How to view the metric data on Jenkins(Jenkins 에서 메트릭 데이터 보는 방법) (0) | 2018.12.26 |
| Jenkins (젠킨스) - Declarative Pipeline 공유 라이브러리 구성하기 (0) | 2018.08.29 |
| JVM 환경에서 LDAP 연동 후 빈번한 로그인 실패 발생시 대응 방법 (0) | 2018.08.14 |
| Linux Jenkins 설치 (0) | 2018.02.07 |
| 젠킨스(Jenkins) LDAP 설정 방법 (0) | 2017.08.08 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Thread Dump
- Config History
- DevOps
- openssl
- Playbook
- 파이프라인
- URL Encoding
- Nexus
- ssl
- iTerm2
- 젠킨스
- Linux
- groovy
- JVM
- vagrant
- 엔서블
- 데브옵스
- rsync
- 리눅스
- 쓰레드덤프
- Docker
- rundeck
- Ansible
- 플레이북
- PostgreSQL
- Jenkins
- nginx
- Password manager
- Shell Script
- 엔시블
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
글 보관함