Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [groovy]

The tag has no usage guidance.

0
votes
3answers
2k views

Groovy syntax not working with backslashes

I'm trying to use a backslash on the command bellow at groovy syntax: find /path/folder-* -type f -iname "file*" -exec rm -f {} \; When I try to build this command on a Jenkins pipeline give me an ...
0
votes
1answer
710 views

Install groovy console on Mac and make it runnable from dock

How can I install and run Groovy console/IDE from the dock on Mac Sierra?
2
votes
1answer
3k views

Setting up groovy SDK on Intellij 2017.1

I'm trying to run Spock tests with my project in IntelliJ 2017.1 community ed. While editing my spec file I get the error msg "Cannot resolve spock" on the import line with a "Configure Groovy SDK" ...
0
votes
1answer
368 views

“Wget --retry” command - shell script in jenkins

Is is possible to get the value of how many times the wget command retries? and how? I want to include the number of retries in the email, to be send after the build in Jenkins.
0
votes
1answer
66 views

Groovy performance on Linux machine

I have a problem when I start Groovy on one of my Linux machines - it takes about 30 seconds to execute very simple command: groovy -e "" if I run strace on it, here is what I see where it stops and ...
0
votes
1answer
2k views

Jenkins 2.7 launch all jobs starting with a keyword as pipeline

I am trying to launch all jobs starting with a preset string as a pipeline in Jenkins 2.7. So far I managed to write this groovy code: node { jobs = hudson.model.Hudson.instance.getAllItems(...
1
vote
2answers
1k views

Groovy console won't load on Windows 7 x64

I've never worked with Groovy before. I installed the executable and the latest JDK from the Java website. I set my system ENV variables JAVA_HOME to C:\Program Files\Java\jdk1.8.0_77 and ...
3
votes
2answers
3k views

Specifying the groovy distribution in intelliJ when creating a new project

I've been following these directions to set up a project in IntelliJ with groovy support, but I get blocked at step 3 because the location of my groovy distribution is not specified, and IJ refuses to ...
5
votes
2answers
3k views

How to install Java and Groovy in Ubuntu?

I'm a new user to Ubuntu! so I need your help. How do I install Java and Groovy in Ubuntu?? Please give step by step instructions.
0
votes
0answers
1k views

STDOUT redirection to a file does not work if Groovy script run directly from command line (.groovy in PATHEXT)

I've updated the title, please see update below for the reason. I have asked this question on Stackoverflow, but still didn't receive an answer. Groovy: redirect stdout to a file does not work. I'...
5
votes
5answers
10k views

How can I find non-ASCII characters in text files?

Is there a tool that can scan a small text file and look for any character not in the simple ASCII character set? A simple Java or Groovy script would also do.