문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
ci:jenkins:env [2022/03/08 15:48] kwon37xi 만듦 |
ci:jenkins:env [2022/03/08 16:09] (현재) kwon37xi [Environment Injector] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
- | ====== Jenkins Environment Variable ====== | + | ====== Jenkins Environment Variable |
- | ===== Custom | + | ===== Global |
+ | * **Jenkins 관리 -> 시스템 설정 -> Global Properties** 에서 **Environment Variables** 항목을 추가한다. | ||
+ | ===== Jenkinsfile ===== | ||
+ | * [[ci: | ||
- | ===== 참조 ===== | + | <code groovy> |
- | * [[https:// | + | pipeline { |
+ | //Setting the environment variables DISABLE_AUTH and DB_ENGINE | ||
+ | environment { | ||
+ | DISABLE_AUTH | ||
+ | DB_ENGINE | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Environment Injector ===== | ||
+ | * https:// | ||
+ | * global 혹은 job 단위로 환경변수를 지정하거나 혹은 상위에서 지정한 환경변수를 삭제할 수 있다. | ||
+ | ===== 참조 ===== | ||
+ | * [[https:// |