티스토리 뷰
728x90
pipeline {
agent {
kubernetes {
inheritFrom 'seunggabi-batch'
defaultContainer 'seunggabi-batch'
}
}
environment {
COUNTRY = "kr"
ENV = "prod"
CLASS = "seunggabi.batch.job.TestJob"
}
stages {
stage('Run Job') {
steps {
script {
ARGS = sorted(params).collect { /$it.value/ } join ","
}
sh "/app/static/sh/emr.sh 1 20 ${COUNTRY} ${ENV} ${CLASS} \$(printenv MAIL_DOMAIN),\$(printenv MAIL_ID),\$(printenv MAIL_PW),\"${ARGS}\""
}
}
}
}
@NonCPS
def sorted(def m){
m.sort { /$it.key/ }
}
printenv - Display the values of environment variables
Format printenv [name] tcsh shell: printenv [name] Description The printenv command displays the values of environment variables. If the name argument is specified, only the value associated with name is printed. If it is not specified, printenv displays t
www.ibm.com
https://e.printstacktrace.blog/jenkins-pipeline-environment-variables-the-definitive-guide/
Jenkins Pipeline Environment Variables - The Definitive Guide
In this blog post, I will show you how you can work with Jenkins pipeline environment variables effectively. You will learn how to set env variable, how to use it in different context, as well as how
e.printstacktrace.blog
728x90
'공부' 카테고리의 다른 글
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 레퍼럴
- 인스타그램
- 테슬라 레퍼럴 코드 확인
- Kluge
- 테슬라 레퍼럴 적용 확인
- 테슬라 리퍼럴 코드 생성
- 김달
- 책그림
- 연애학개론
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 리퍼럴 코드 혜택
- 테슬라
- 개리마커스
- wlw
- COUNT
- Bot
- 모델 Y 레퍼럴
- 클루지
- 어떻게 능력을 보여줄 것인가?
- 할인
- 모델y
- 팔로워 수 세기
- 테슬라 리퍼럴 코드
- 테슬라 크레딧 사용
- 테슬라 추천
- follower
- 테슬라 레퍼럴
- 유투브
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함