Develop/Groovy4 Groovy Docs http://docs.groovy-lang.org/docs/groovy-1.7.3/html/groovy-jdk/java/lang/String.html#contains(java.lang.String) String (Groovy JDK) Replaces the first substring of a String that matches the given compiled regular expression with the given replacement. Note that backslashes (\) and dollar signs ($) in the replacement string may cause the results to be different than if it were being tre docs.groov.. 2022. 9. 29. Pipeline Syntax https://jayy-h.tistory.com/43 Jenkins - 환경변수 사용 Jenkins 환경변수 Jenkins Global variable env : env 환경변수는 다음과 같은 형식 env.VARNAME 으로 참조될 수 있다. 대표적인 env의 property는 아래와 같다. property 이름 설명 BUILD_ID 현재 빌드의 ID이며.. jayy-h.tistory.com https://opensource.triology.de/jenkins/pipeline-syntax/globals Pipeline Syntax: Global Variable Reference [Jenkins] Overview Global variables are available in Pipeline directly,.. 2022. 9. 27. Truncate String https://blog.leocat.kr/notes/2018/03/23/groovy-tokenizing-string [Groovy] 문자열 자르기 (tokenizing) Java 문자열을 자를 때 많이 쓰는 함수는 split이다. split은 정규식도 가능하다는 장점이 있다. Groovy는 당연히 split을 사용할 수도 있지만, tokenize함수도 제공된다. 둘의 차이를 살짝 비교해 보자. blog.leocat.kr 1. .split() 결과로 empty string이 나올 수 있음 2. .tokenize() 결과로 empty string이 나오지 않음 String testString='hello world' assert ['he', ' w', 'r', 'd'] == testString.tokeniz.. 2022. 9. 27. Remove duplicated values in a list https://stackoverflow.com/questions/25290481/groovy-remove-duplicate-from-list-using-unique-function Groovy remove duplicate from list using unique function I'm using soapui groovy script. I want to remove the duplicate from a list, using the next code: def myStr = "aaaa ; bbbb ; ccccc" def myList = myStr.split(";") myList = myList.unique() but wh... stackoverflow.com https://stackoverflow.com/q.. 2022. 9. 27. 이전 1 다음