Category "groovy"

Getting java.io.IOException: Server returned HTTP response code: 400 for URL: when using a url which return 400 status code

I am trying to perform a get request using Groovy using the below code: String url = "url of endpoint" def responseXml = new XmlSlurper().parse(url) If the endp

Jenkins Shared Library - Importing classes from the /src folder in /vars

I am trying to writing a Jenkins Shared Library for my CI process. I'd like to reference a class that is in the \src folder inside a global function defined in

Environment variable cannot be used in Jenkins JobDSL plugins

We use Jenkins JobDSL with ConfigurationAsCode for our CI setup. The job is checking if there is a difference in the Git repo and if there is : clone the repo,

Jenkins launches 2 builds when manually triggered

I've noticed a recent issue in both our instances of Jenkins. When launching a job manually, it launches twice. I've no idea what is causing it, but it's happen

Jenkins launches 2 builds when manually triggered

I've noticed a recent issue in both our instances of Jenkins. When launching a job manually, it launches twice. I've no idea what is causing it, but it's happen

Unable to find Groovy method when building Rhino with Intellij IDEA

While trying to build https://github.com/mozilla/rhino, I'm getting Unable to find method on org.codehaus.groovy.runtime.StringGroovyMethods. so the build fails

Assert mock call with argument assigned in where block in Spock

I have a method that among others generates an identifier, sends it to some external dependency and returns it. I want to have a unit test that tests if the sam

How to check if Jenkins build is waiting for input?

In Jenkins' Groovy, how can I detect that some other build is waiting for user input, as triggered by statements like input message: 'Retry?' ok: 'Restart'? I

Jenkins Shared Library src class - unable to resolve class

I am looking for some guidance on the design of a Jenkins Shared Library class. Using global vars as shared library is working fine but everytime I define a cla

Why this error? "No such property: Entry for class: java.util.Map"

I'm following an example from JENKINS-44085 issue very-bottom comments about creating a stage map almost to the T, but when I execute my code I get No such pro

Compile Groovy in VSCode

I've found the vscode-groovy extension that does the formatting and highlighting, but I'm really having trouble getting the compiler/debugger configured. I f

After updating cucumber-groovy I get "Access to 'PickleStepTestStep' exceeds its access rights"

After updating cucumber-groovy from version 4.7.1 to 6.1.2 I started getting an error Access to 'PickleStepTestStep' exceeds its access rights. In old version i

Intellij: Cannot select "Groovy" in "Add Framework Support"

I would like to add Groovy support to my project in Intellij Idea 2018.1. But when I open "Add Framework Support..." from the project context menu, I don't see

SOAUI Groovy Getresponsenode.value from xml is null

I have a problem where I have tried very different scenarios, I am a fresh automation tester for api services and I'm using soapui and groovy to my services. So

Jenkins deployment to Tomcat failed

I'm currently learning and implementing Jenkin's Pipeline for automated integration for java web application. My plan is that once developers successfully comm

Jenkins pipeline library build using Java instead of Groovy

I would like to write my company Jenkins Pipeline Library using Java not Groovy, as groovy is slower than Java. I tried to find examples of such Java Jenkins li

How do I simply parse a date without a year specified?

I've got a tool which seems to be giving me dates without specifying the year that I need to convert and I'm using Java for the task (actually Groovy but close

how do i add a topic to a running kafka container using docker commands?

I have a kafka container started using following docker run --detach --name kafka -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=192.168.1.89 --env ADVERVTIS

How to retrieve current workspace using Jenkins Pipeline Groovy script?

I am trying to get the current workspace of my Jenkins build using a Groovy pipeline script: node('master') { // PULL IN ENVIRONMENT VARIABLES // Jenki

Jackson version conflict in groovy

When I run the code below using groovy 3.0.2 I get an error because groovy/lib dir already has some older version of jackson and for some reason some of them ge