티스토리 뷰
728x90
pipeline {
agent {
kubernetes {
inheritFrom 'seunggabi-batch'
defaultContainer 'seunggabi-batch'
}
}
environment {
COUNTRY = "kr"
ENV = "prod"
CLASS = "seunggabi.batch.job.SparkSubmitJob"
}
stages {
stage('Run Job') {
steps {
script {
ARGS = sorted(params).collect { /$it.value/ } join ","
}
sh "/app/static/sh/emr.sh 1 20 ${COUNTRY} ${ENV} ${CLASS} \"${ARGS}\""
}
}
}
}
@NonCPS
def sorted(def m){
m.sort { /$it.key/ }
}
Sort map by value in Groovy jenkins pipeline script
How to do custom sort of Map for example by value in Jekins pipeline script? This code doesn't quite work in Jenkins pipeline script: Map m =[ james :"silly boy", janny :"...
stackoverflow.com
[JENKINS-44924] pipeline groovy script - Sort a list with custom comparator or closure not sorting - Jenkins Jira
If I could have viably fixed this, I would have already - the transformation done to Groovy code to be able to be durable makes a lot of things more or less impossible to get working correctly. We've dealt with as many of them as we could without having to
issues.jenkins.io
728x90
'공부' 카테고리의 다른 글
[Jsoup] GET & POST crawling (0) | 2022.09.10 |
---|---|
[jenkins] pipeline groovy use secret `printenv NAME` (0) | 2022.09.08 |
debugExecution failed for task ':seunggabi:bootJarMainClassName'.> Unable to find a single main class from the following candidates [seunggabi.job.SparkSubmit, seunggabi.job.SparkSubmit2] (0) | 2022.09.07 |
[docker] bridge vs host (0) | 2022.09.05 |
[spark] RDD, DataFrame (0) | 2022.09.03 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- wlw
- 어떻게 능력을 보여줄 것인가?
- 테슬라 레퍼럴
- 할인
- 테슬라
- 모델y
- 연애학개론
- 테슬라 레퍼럴 코드 확인
- 테슬라 리퍼럴 코드 생성
- 유투브
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 레퍼럴 적용 확인
- 인스타그램
- Kluge
- 김달
- COUNT
- 테슬라 추천
- 모델 Y 레퍼럴
- 레퍼럴
- follower
- Bot
- 클루지
- 팔로워 수 세기
- 개리마커스
- 테슬라 리퍼럴 코드
- 책그림
- 테슬라 크레딧 사용
- 테슬라 리퍼럴 코드 혜택
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함