Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
51 views

I have an old project in grails 3.3.10 and try to migrate to 4.0.4 (step by step, finally to 7) I have problem with cmds Caused by: groovy.lang.MissingMethodException: No signature of method: xxx....
Tooroph's user avatar
  • 21
0 votes
0 answers
77 views

I have a Jenkins pipeline with a critical stage that runs my custom .NET CLI performing important tasks. I want this stage to be fully atomic, meaning that if someone tries to abort the build while ...
Raj Mohammed's user avatar
Advice
1 vote
1 replies
21 views

Say I have the following classes. @Singleton class EnvMgr { private String environment = "default" String getEnvironment() { return environment } def setEnvironment(...
Chris F's user avatar
  • 17.3k
0 votes
0 answers
21 views

I am Rajeswari In the groovy script i have to filter who login in Jenkins but I am able to filter the user list all in the manage/security Realm the user list So How to use it they is no direct method ...
Rajeswari S's user avatar
0 votes
0 answers
45 views

In my Grails 6 project, I'd like to add an additional feature to select domain classes, so I defined a custom trait. trait MyDomainClassTrait<D> implements GormEntity<D> {} // domain ...
ilPittiz's user avatar
  • 812
2 votes
1 answer
67 views

In Groovy 4.x it was possible to escape the 'properties' keyword when using JsonSlurper using getAt('properties') like below: import groovy.json.JsonSlurper def json = new JsonSlurper().parseText(&...
Johan's user avatar
  • 41.2k
0 votes
0 answers
53 views

I'm using JetBrains GDSL files which are a way to define extra methods and properties that are available at runtime to a Groovy script. My use case is for Jenkins pipeline steps but the GDSL ...
Mark's user avatar
  • 1,862
0 votes
1 answer
59 views

I have a main Groovy file with defined methods, and I've loaded a second Groovy script. main-script.groovy node('Node1'){ Method1() Method2() def loadedSecondScript = load('./second-...
diagramd 2020's user avatar
0 votes
0 answers
88 views

Say I have this recursive function in a Jenkins pipeline. It's initially called by another function, but then calls itself recursively. def recursiveFunction(final Integer timeout) { static Integer ...
Chris F's user avatar
  • 17.3k
0 votes
1 answer
29 views

We use Groovy/JUnit to test our Java Spring Boot application. We use Map coercion to define our mocks. I'd like to return a mocked ConfigurableApplicationContext when our main method calls new ...
bmauter's user avatar
  • 2,973
0 votes
1 answer
68 views

I have learned that for "break"-ing any loop I use return true and for "continue"-ing it I use return false.Also I learned that "break"-ing each there is no way and for &...
Alexander Samoylov's user avatar
1 vote
1 answer
59 views

I'm encountering an issue with my pipeline script when running it from SCM. The @Field annotation isn't being recognized, even though I'm using the correct import statement (import groovy.transform....
Sohaib El Mediouni's user avatar
0 votes
1 answer
57 views

While upgrading a Grails 4 application to Grails 5, I encountered a failure in one of the json views (.gson file) when specifying a field having an empty map. In Grails 4, this worked fine, but in ...
Ryan H's user avatar
  • 903
0 votes
3 answers
41 views

I would like to use Eval.me to expand a string which contains a variable name. def var = '1234' // This works eval_str = "println $var" Eval.me(eval_str) // This does not: No such property:...
Alexander Samoylov's user avatar
1 vote
1 answer
44 views

I have created two unetstack groovy agents (AnchorMotionAgentV2 and AnchorCommAgentV2), which I expect to send messages to each other. The AnchorCommAgentV2 is expected pass control messages to ...
Aminu's user avatar
  • 11
0 votes
0 answers
38 views

characterList:[ {"id":1,"value":"Tom"}, {"id":2,"value":"Jerry"}, {"id":3,"value":"Hulk"}, {"id":4,&...
GroovyGal's user avatar
0 votes
1 answer
43 views

I have a main job script, pipline.groovy node('Node1'){ def script1 = load('script1.groovy') script1() //..some code def script2 = load('script2.groovy') } I load two scripts in it, script1....
diagramd 2020's user avatar
1 vote
1 answer
65 views

I have 2 projects, a LibraryProject and an ApplicationProject. ApplicationProject needs LibraryProject as a dependency. In the LibraryProject, the build.gradle contains: group = 'com.company.product' ...
Giorgos's user avatar
  • 56
0 votes
1 answer
57 views

I have a loop controller in my test plan with a counter called fileNumber. I also have a groovy script which fetches keys and uploadIds from the response of an API call. This is the script I have: ...
rum_15's user avatar
  • 59
0 votes
1 answer
44 views

I’m using Grails 2.5.6 and I created a simple Person domain and a PersonController. When I try to call POST /person/add, I get the following error: Method on class [com.demo.Person] was used outside ...
İrem Ertürk 1's user avatar
0 votes
0 answers
32 views

Description: I'm using the Jenkins Active Choices Plugin to build a dynamic UI with parameters for test suites and their arguments. I have two parameters: SUITES (Active Choice Checkbox): Lets the ...
Alex_M's user avatar
  • 9
0 votes
1 answer
109 views

Building & deplying my EAR (JAR + WAR) on 'gradle.build' with 'gradle-wrapper.properties' runs fine on 'gradle-8.14.3': tasks.register('ViViFYdEAR', Ear) { project.logger.lifecycle(">&...
NOTiFY's user avatar
  • 1,426
0 votes
0 answers
58 views

I have pipelines that I am building using groovy. Currently I am setting my buildRetention using the following: strategy { allBranchesSame { props { ...
HLT's user avatar
  • 607
0 votes
0 answers
65 views

I'm running Jenkins on a Windows machine, and I have a Jenkinsfile that triggers a pipeline periodically using the cron directive: pipeline { agent any triggers { cron('0 1 * * 1-5') /...
tail's user avatar
  • 481
2 votes
0 answers
100 views

In a Jenkins script, I do : def status = powershell( script: """ # Display current directory Write-Host "Current directory: \$(Get-Location)" # ...
Oodini's user avatar
  • 1,463
0 votes
0 answers
46 views

This is my controller package example.infra.adapters.input.api.v1.endpoints import example.aplication.services.authentication.LoginAuthenticator import example.aplication.dtos.authentication....
David P's user avatar
0 votes
0 answers
51 views

I have embedded Groovy 4.0.9 in my application as a scripting language, and I want to be able to provide helpful feedback to my users when their scripts don't compile. This works ok with a basic ...
user3760601's user avatar
0 votes
1 answer
108 views

I started to test Docker to run my application and I had noticed my memory consume when using "docker stats". I see the memory used from the container increasing like, every f5 on my page or ...
David P's user avatar
0 votes
1 answer
60 views

I'm using a findBy query in a grails/gorm project, where there is usually only one result (and I only ever want one result). However, there could occasionally be two (or even three theoretically, ...
Rosensweig's user avatar
0 votes
1 answer
106 views

In Jenkins, I need the IP/Computer Name of the client computer that the user started a Jenkins job from. I have tried this, but it never reaches the inner "if" source: Source 1 Source 2: ...
HammerOfSweden's user avatar
0 votes
1 answer
61 views

I want to make an interface with some static methods for decorating instances or adapting them to other interfaces. However, Groovy 4.0.x gives an error when trying to do this, probably because it's ...
Choosechee's user avatar
3 votes
2 answers
213 views

So, I need to have an object implement two interfaces that both require a method with the same signature as each other, but different return types. Something like these two: interface FooPrinter { ...
Choosechee's user avatar
0 votes
0 answers
25 views

Where does the restriction come from, that makes the following invalid? pipeline { agent any triggers { cron(["TZ=Europe/Berlin", "H H(0-7) * * 0-5"].join("\n&...
ciis0's user avatar
  • 523
0 votes
0 answers
171 views

Jenkins or the container process tried to write to /var/jenkins_home, but it lacked the required file system permissions. Jenkins pipelines on Kubernetes using a shared podTemplate that dynamically ...
Manish Gupta's user avatar
0 votes
1 answer
48 views

I want to create a custom Number type in Groovy that accepts null, empty strings, and any input valid for the BigDecimal constructor. When given null or an empty string, it should behave like a ...
Honwhy Wang's user avatar
2 votes
1 answer
225 views

I am trying to commit my changes to a Jenkinsfile but I am getting the following info statement: 1 info Class should be marked with one of @GrailsCompileStatic, @CompileStatic or @...
Fergus Johnson's user avatar
2 votes
1 answer
81 views

I'm moving my team's project from Grails 7.0.0-M1 to 7.0.0-M4 and it kinda works, but I'm new to Grails/Groovy/Gradle/... and curious so I run ./gradlew dependencies | less and notices a block like ...
Stefano Canepa's user avatar
0 votes
2 answers
92 views

Currently, I am considering these three methods to define a new scope. if (1) { def a = 1 } ({ def a = 1 })() any { def a = 1 } Is there anyone better? It seems the official style guide ...
relent95's user avatar
  • 5,128
1 vote
1 answer
87 views

I am debugging a workflow, and cannot quickly find a way to execute view (to print the diagnostic output) and then exit (quit) the workflow. The actual workflow is complex, and I reduced it to a ...
Timur Shtatland's user avatar
0 votes
1 answer
65 views

My XML: <loadUnit> <suspect>false</suspect> <attributeValue> <name>Lottable02</name> ...
keku keku's user avatar
0 votes
1 answer
42 views

I am fetching a part of xml using XmlSlurper, when xml has <node> </node>(value with 2 space), its converting it as <node/>, but i want to keep it as original XML Original XML <...
keku keku's user avatar
1 vote
1 answer
34 views

We are in the Groovy universe. Let's say I have a record like follows: record Person(String firstName, String lastName, String city) {} What is the shortest way to make sure that none of the three ...
Natasha's user avatar
  • 916
1 vote
1 answer
66 views

I'm trying to implement a custom script execution system using GroovyScriptEngine that loads scripts from an S3-like storage system. However, I'm encountering issues with dependency resolution. Here's ...
Jorge Guerreiro's user avatar
0 votes
1 answer
199 views

I am debugging a workflow, and cannot quickly find a way to execute view (to print the diagnostic output) and then exit (quit) the workflow. If I use System.exit(0) or exit(0) in the code snippet ...
Timur Shtatland's user avatar
1 vote
1 answer
172 views

I use Spock to test Java-code. For example, I have the following Java-class: public class Github implements RemoteRepository { @Override public Boolean isBranchExist(String branch) { ...
Ilya Pyatizbyantsev's user avatar
0 votes
1 answer
96 views

this is my first time posting a question so I hope I am doing it right! I am newer to Jenkins and Groovy, but have been working with the Jenkinsfile for quite a while now, specifically focusing on the ...
Enigmatic's user avatar
0 votes
0 answers
38 views

how can I reliably fail a Jenkins pipeline build if the remote agent disconnects during execution? binding.setVariable('selectedNode', "") pipeline { agent {label: LOCAL_NODE} ...
Ioan Simiciuc's user avatar
0 votes
0 answers
29 views

I am working on a structural replace tool that creates a variable declarations from some code. My intention is to have inputs like; inParams.put("userName", user.getUsernameString()) become ...
Kral's user avatar
  • 35
-3 votes
1 answer
63 views

I was recently stuck on a Jenkins issue due to incorrect assumptions and how Groovy handles named arguments. There's a doc on named arguments here. We are able to call a function with named arguments ...
oats's user avatar
  • 481
0 votes
0 answers
21 views

I have the following Javadoc comments and class: /** * Base class for immutable {@link Iterator} wrappers that provide a view * into the wrapped {@link Iterator} with its values transformed. * ...
Choosechee's user avatar

1
2 3 4 5
608