Jenkins

[Jenkins] check element in groovy array/hash/collection/list

thxxyj 2022. 11. 16. 10:28
728x90
// list
[1,2,3].contains(1) == true

// map
[a:1,b:2,c:3].containsValue(3)
[a:1,b:2,c:3].containsKey('a')

 

https://stackoverflow.com/questions/51927/how-to-check-if-element-in-groovy-array-hash-collection-list

 

728x90

'Jenkins' 카테고리의 다른 글

jenkins-cli로 job 복사/생성하기  (0) 2022.12.14
jenkins slave node 추가하기  (0) 2022.12.08
[Jenkins] stage skip 하기 (when, if)  (0) 2022.11.16
[Jenkins] Setup Lockable Resource  (0) 2022.11.14
Jenkins 설치하기 (Ubuntu)  (0) 2022.10.11