Tuesday, 18 August 2020

Jenkins, it's Groovy, Baby!

I've been working with Jenkins a lot recently, in part co-developing a Plugin using Java.

I've also been munging various existing Pipelines, many of which are written in Groovy ( hence the Austin Powers reference ).

One thing I did NOT know ..... ( of many, of course ) ....

Jenkins has a nice little Script Console

This is available from the Jenkins server's main URL: -

https://jenkins.myserver.com/script

which allowed me to play with some Groovy -> environment variable stuff: -


No comments:

Note to self - use kubectl to query images in a pod or deployment

In both cases, we use JSON ... For a deployment, we can do this: - kubectl get deployment foobar --namespace snafu --output jsonpath="{...