Skip to main content

Questions tagged [groovy]

Groovy is an object-oriented programming language for the Java platform. It is a dynamic language with features similar to those of Python, Ruby, Perl and Smalltalk. It can be used as a scripting language for the Java platform.

groovy
0 votes
1 answer
23 views

How to correctly verify mock method invocation in Spock framework?

I'm trying to test a method using the Spock framework, but I'm running into an issue when verifying the mock method invocation. Here's my code: package com.workato.agent.smb import spock.lang....
diziaq's user avatar
  • 7,540
0 votes
0 answers
24 views

Map variable becomes null when manipulated as part of a Jenkins pipeline

I'm building a Jenkins pipeline, and I have this method: private Map processServerMapping(Map serverMapping, List newVersions) { def currentVersions = serverMapping.values().toSet() def ...
Anton Asserzon's user avatar
1 vote
1 answer
26 views

How to run a closure that returns a value in parallel in Jenkins pipeline?

I want to check if I can delete some of our AWS EBS snapshots that meet a certain criteria. However, since we have a LOT of snapshots, I don't want to iterate one-by-one, and instead perform the check ...
Chris F's user avatar
  • 15.9k
0 votes
1 answer
25 views

Why does this test script have static type-checking errors?

I have the following sample code Utility.myLogger package Utility; import org.apache.log4j.Logger; class myLogger { static Logger log = Logger.getLogger("com.mycompany") Boolean ...
ZeddZull's user avatar
  • 286
1 vote
2 answers
22 views

Concatenate group-wise in a non-blocking way in Nextflow

I want to split a nextflow workflow into separate chunks (vehicle types), then split these chunks even further (vehicles) and then report as soon as all workers for a specific vehicle type are done. ...
joost's user avatar
  • 147
0 votes
0 answers
41 views

Micronaut Bean Not Found on Websphere

I have a grails 5.3.6 application running on java 8_261. I am using Intellij ultimate with grails, groovy and spring plugins. Whenever I do grails run-app, the app launches normally and opens in my ...
Ali Sabra's user avatar
-1 votes
0 answers
46 views

What does this Gradle lines mean?

This lines are from GroovyFx project, which was written for Java 8. What does the classpath variables mean and how can be this translated into the latest Gradle specifications?: configurations { ...
DbSchema's user avatar
  • 389
-1 votes
0 answers
26 views

How do I get an activation code for Cyclos 4 access client?

I am trying to generate an apiKey for an access client I created on Cyclos banking software. In order to activate the access client, I need to have an activation code but I can't seem to find where I ...
Temire Emmanuel's user avatar
1 vote
1 answer
33 views

gradle plugin not found after publishToMavenLocal

I want to publish my plugin in my local Maven repository, and it does not work. The plugin looks published, but is not found after publishing. This happens even with the "hello-world" plugin ...
18446744073709551615's user avatar
0 votes
1 answer
22 views

Jenkins Pipeline get unstable/error causes from downstream job

Is there a simple and fast way to get the reasons of an error or an unstable of downstream job? And at what stage did this happen? We have one reason of unstable that we don't care about (we can't ...
malltaf's user avatar
0 votes
2 answers
50 views

My variable is not interpolated in the body on emailext

This is a piece of my Jenkinsfile: emailext([ attachmentsPattern: '**/build/*.log', subject: 'Hello World', recipientProviders: [developers(), requestor()], to: '$...
tail's user avatar
  • 375
0 votes
2 answers
48 views

How to conduct Groovy compile-time error check, but without @TypeChecked or @CompileStatic?

A springboot gateway project, written with Groovy, i.e., all the Controller and Service are in *.groovy. In fact, the code is totally java-style. Using groovy is only for hot update. So we don't need ...
dim-strong's user avatar
0 votes
1 answer
34 views

How to retrieve Jenkins build parameters in the email groovy script?

I am using Jenkins version 2.463 and I have a parameterized pipe-line job, as: parameters { string(name: 'testSite', defaultValue: '...', description: 'Test Site') string(name: 'GIT_API', ...
user3595231's user avatar
0 votes
1 answer
29 views

groovy under eclipse un resolved groovy.json.JsonSlurper

I have installed the eclipse groovy plugin here I created new groovy project and add new groovy script file to it to test. I was trying to do json manipulation so I copied the following code to my ...
samer saleh's user avatar
0 votes
0 answers
23 views

union type data serialization

I'm trying to use ConvertRecord to deserialize a union type of data from avro to json. However I've seen different behavior The schema is defined as: "name": "data", ...
Jin Ma's user avatar
  • 199

15 30 50 per page
1
2 3 4 5
2019