Skip to main content

Questions tagged [groovy]

The tag has no usage guidance.

0 votes
0 answers
258 views

Find and Replace does not seem to work in Jenkins Pipeline

I have the following code to search a string and replace it in all deployment.yaml files sh "find . -name deployment.yaml -exec sed -r -i 's,$project.*,$project:$tag,' {} +" it works locally ...
user2179627's user avatar
0 votes
1 answer
674 views

how do I install realvnc-vnc-server on Ubuntu linux Groovy?

Installing real-vnc-vncserver from deb file downloaded from Realvnc.com fails due to missing a dependency. This seems to be missing libgcc1 which is not available on Groovy (20.10) There is a libgcc-...
aardvark's user avatar
0 votes
1 answer
975 views

How to fix sed command to work in groovy

I have the following code which works in gitlab (without the sh part): sh ''' mkdir ./pylint docker run --rm --entrypoint=/usr/local/bin/pylint ${IMAGE_NAME}:${IMAGE_VERSION} --rcfile=.pylintrc --exit-...
arielma's user avatar
  • 101
0 votes
0 answers
4k views

How to use groovy env. variable in Jenkins to pass through bat command in Jenkins pipeline

I want to concatenate the variable %dispatcher% = %region%COGAPP%env%:10000based on the Jenkins parameter selection. region is passed correctly but env is not. env has an additional loop so it returns ...
jgt05's user avatar
  • 13
0 votes
1 answer
63 views

Groovy SDK 2.5.7 on Win7 Pro w/Java JDK 8 update 211 - Groovy Console not launching

I installed the 64-bit Java SE 8 update 211 last week in preparation for installing Groovy. I attempted to install the Groovy 2.5.7 SDK earlier today. Initially, it recognized the 64-bit Java I ...
user1052639's user avatar
4 votes
1 answer
7k views

Groovy - Error: Groovy: Internal groovyc error: code 1

Everytime I try to run a groovy script I recive the error message I mentioned above. I don't really have a clue how to handle this error, I only can give you the entire error message. Information:...
Tom Krebs's user avatar
4 votes
1 answer
4k views

Why groovy shows warning "An illegal reflective access operation has occurred" when I use JDK11

When I use JDK11, and then installed Groovy, some warning occurred like below: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy....
Mingyue Xie's user avatar
2 votes
1 answer
731 views

Is there a 64-bit version of Groovy for Windows 10?

Is there a 64-bit version of Groovy? My OS is Windows 10. I have been looking for days with no luck. The problem I have is that I need to use a 64-bit JVM with Groovy so that I can maximize the JVM ...
Yousef's user avatar
  • 123
2 votes
5 answers
36k 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 ...
Marlon's user avatar
  • 379
0 votes
1 answer
3k 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?
wick's user avatar
  • 161
2 votes
1 answer
4k 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" ...
Jacomoman's user avatar
  • 129
0 votes
1 answer
1k 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.
xerxesjunemark's user avatar
0 votes
1 answer
3k 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(...
J. Doe's user avatar
  • 21
1 vote
2 answers
3k 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 ...
user584002's user avatar
0 votes
1 answer
158 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 ...
Roman Goyenko's user avatar

15 30 50 per page