Category "jenkins-groovy"

groovy jenkinsfile to read a json file before `step` starts

I'm using Jenkins, we want to read a json file to provide necessary details within the jenkins scripts such as IP as an example. Jenkinsfile def getSecrets(json

How do I skip a Jenkins stage after executing some of its steps (like the when directive)?

How do I skip a Jenkins stage partway through its execution? It would be like using when after some steps or in the middle of a step, once the skip condition ha

How to get child job logs in parent job on child job failure?

I want to get child job logs in parent job irrespective of if child job passes or fails. Following code returns child jobs logs in parent job only when child jo