Select Page

%

Compexity

Useful scripts for automate update bulk jobs on Jenkins

 

I prepared few groovy scripts that i wrote, when i was needed to update a lot of jobs on Jenkins.

What this scripts do

  1. Delete “Publish JUnit report” step from all Jenkins freestyle jobs
  2. Replace word “junit-report.xml” on “test_group_result.xml”
  3. Replace big part of text on a new one

%

Compexity

What is @NonCPS annotation in Jenkins pipeline script

 

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 NotSerializableException. Pipeline restricts all variables to Serializable types. Basically in CPS style functions will never return any value.

%

Compexity

Resolve if POST request to Jenkins had 403 error. How fix it

 

Main problem. POST request to Jenkins had 403 error.

I need to trigger job on remote Jenkins on virtual machine from master Jenkins.

%

Compexity

Big task. Migrate freestyle jobs to pipeline

 

Soo.. recently i got a task based on my meeting with out testing team.

Few words about structure, and how tests are runs. What we have: two jenkins (master jenkins and secondary master jenkins). On master jenkins for one test group was created 3 jobs and one job that created a vApp for test group