Why does my Gremlin traversal add only one edge?

As described in another question, I am attempting to add several “identity” vertices into a “group” vertex. Based on the recipe recommendation, I’m trying to write the traversal …

How to pass your username and password in a get request with groovy?

I send GET request and receive error 500 def baseUrl = new URL(url) HttpURLConnection connection = (HttpURLConnection) baseUrl.openConnection(); connection.addRequestProperty(“…

How to reduce output for a custom API Endpoint in java/groovy

I am working on improving a custom search for our Confluence-Server platform. We have a plugin called Scriptrunner that allow us to use Groovy instead of Java for the code. The code I am working on is …

JSONPath: Extracting subset of array produces weird results

I have this json: { “push”: { “changes”: [ { “commits”: [ { “hash”: “b194ab92186b94de3f9493818c353e9bbedb38d4&…

Unable to load a groovy classes

I am trying to serialize and deserialize a groovy object with the below class in the jenkins pipeline. SerializationUtil.groovy package com.sample; import java.io.FileInputStream; import java.io….

Find a string in Html and get value after

I’m posting to a webpage and in my response I get a big chunk of HTML that will change next request. With groovy I’d like to find this string: var WPQ1FormCtx = {“ListData”:{“owshiddenversion”:23, …