Groovy is an object-oriented programming language for the Java platform.
Here's the code I'm playing with node { stage 'build' echo 'build' stage 'tests' echo 'tests' stage 'end-to-end-tests' def e2e = …
jenkins groovy jenkins-workflow jenkins-pipelineI have a jenkinsfile dropped into the root of my project and would like to pull in a groovy file …
jenkins groovy jenkins-pipelineGroovy scripts raises an error: def a = "test" + "test" + "test" Error: No signature of method: java.lang.String.positive() is …
string groovy multilineHere's my Jenkins 2.x pipeline: node ('master'){ stage 'Checkout' checkout scm stage "Build Pex" sh('build.sh') } When I run …
shell jenkins groovy jenkins-pipelineIn the following piece of code (taken from the Groovy Semantics Manual page), why prefix the assignment with the keyword …
groovy keywordSay I have something like this: new File("test").eachFile() { file-> println file.getName() } This prints the full filename …
java file-io groovy file-extensionUnder certain conditions I want to fail the build. How do I do that? I tried: throw RuntimeException("Build failed …
jenkins groovy jenkins-pipelineI trying to build dynamic filters using findAll on a list. I have a variable that needs to be included …
groovy findallNowadays I hear a lot about "Groovy on Grails" and I want to know more about it: What is Groovy? …
grails groovyI tried this: def str1="good stuff 1)" def str2 = str1.replaceAll('\)',' ') but i got the following …
groovy replaceall