Select Page

CI/CD automation using Jenkins

Cannot start Jenkins agent service on Windows host machine

  Cannot start Jenkins agent service on Windows host Our architecture - one master Jenkins, that have few Windows nodes and several Linux nodes. All nodes added and configured properly. But for some reason, connection with one of Windows nodes was broken.  ...

What is @NonCPS annotation in Jenkins pipeline script

  What mean @NonCPS annotation in Jenkins pipeline CPS - Continuation-passing style. Style of programming in which code execution in the form of a continuation, waterfall style. Usually, execution pipeline code with a hard and complex logic occur some error, like...

How to parse XML file in Jenkins scripted pipeline

  How to parse XML file in Jenkins scripted pipeline Let's discuss how we can read and work with xml files in pipelines, and if this possible at all. Basically scripted pipeline - it's groovy code. But some methods and functions can be restricted. I have a task,...

Useful scripts for automate update bulk jobs on Jenkins

  Check this out, that can be interesting I prepared few groovy scripts that i wrote, when i was needed to update a lot of jobs on Jenkins. What this scripts do Delete "Publish JUnit report" step from all Jenkins freestyle jobs Replace word "junit-report.xml" on...

Note. Variables in groovy

how groovy present variables in pipelines If you don't know or forgot what style you should aply for use variables in you pipelines this table comparing can help you. Operation system Linux, i used environment variable and regular variable. Also for example if you...