imsavva.com

Folder icon

Tags / Groovy

1Z0-808
2018
ATG
Apache Fop
Bash
CNC
Elasticsearch
GWT
Groovy
JPA
Java
JavaScript
Jenkins
Jetty
Kibana
Linux
Malta
MySQL
OCA
PDF
Sed
Ubuntu
Windows services
collections
concurrency
dates
dig deeper
essay
exceptions
food
games
interview questions
logging
movies
patterns
photos
shopping
task
technical
thoughts
trash
trip
windows

Using sed in Jenkins Groovy pipeline

I spent some time trying to figure out how to fix unexpected slash char error in my pipeline. My aim was to change some value in a config file after checking out a Git repository. I have a Jenkins pipeline and I used sed to perform the substitution. The pipeline wouldn't even compile because of Groovy's way of…
Posted on
2020-05-22

How to run a Groovy script from Java

showPostImage(984496268)

Uncaught exception: the image was stolen by a UFO

One of the ways of running a Groovy script from Java is using GroovieShell. First, add the groovy-all Maven dependency (consider using a fresher version): Next, create a class containing the main method. The Binding instance helps us to bind variables to the shell. These variables will be available for our script. We…
Posted on
2017-03-01
Do I really need the footer?