Top "Groovy" questions

Groovy is an object-oriented programming language for the Java platform.

How to print a groovy variable?

I have the following code within a Jenkins pipeline: stage ('Question') { try { timeout(time: 1, unit: 'MINUTES') { userInput = input message: 'Choose …

variables jenkins groovy jenkins-pipeline
Groovy built-in REST/HTTP client?

I heard that Groovy has a built-in REST/HTTP client. The only library I can find is HttpBuilder, is this …

rest groovy httpbuilder
Java/Groovy - simple date reformatting

I'm new to Java/Groovy development and I have a simple string that I would like to reformat, however I …

java date groovy reformat
How to replace string in Groovy

I have some string like C:\dev\deploy_test.log I want by means of Groovy to convert string to …

groovy
Including a groovy script in another groovy

I have read how to simply import a groovy file in another groovy script I want to define common functions …

groovy
Can you break from a Groovy "each" closure?

Is it possible to break from a Groovy .each{Closure}, or should I be using a classic loop instead?

groovy
Difference between Groovy Binary and Source release?

i have been seeing the words binary and source release in many websites download sections. What do they actually mean? …

groovy installation executable
How to pass parameters or arguments into a gradle task

I have a gradle build script into which I am trying to include Eric Wendelin's css plugin - http://eriwen.…

variables groovy parameters gradle
Jenkins: Can comments be added to a Jenkinsfile?

Are comments possible in a Jenkinsfile? If so, what's the syntax? I am using the declarative pipeline syntax. I want …

jenkins groovy comments jenkins-pipeline
Using Javamail to connect to Gmail smtp server ignores specified port and tries to use 25

I'm trying to use javamail in a groovy script to send out an email via gmail. I've looked many places …

java groovy smtp gmail jakarta-mail