Trigger specific Jenkins-jobs via built-in script-console

Jenkins has a cool built-in groovy-console which makes it very easy to do stupid mainenance- or bulk-tasks. In my last project, I had about 300 Jenkins-jobs (xxx-ci, xxx-sonar, xxx-deploy-serverA, xxx-deploy-serverB and so on). You see, it was hard for my mouse, clicking throught the jobs-overview and find the correct job to start 🙂 By using […]

Discover svn-branches and auto-create Jenkins-jobs

When working with branches, sometimes it’s really annoying to create Jenkins-jobs manually, because whenever a new branch was created by dev-teams, the devops-team is asked to create the corresponding Jenkins-job as soon as possible to enable a a working ci-infrastructure. So why don’t use Jenkins itself to look for new branches? In this post, I […]

Create Jenkins-Job with Ant and Groovy through authenticated remote API

At work, we drive a build-system based on Apache Ant and Jenkins. At the moment, we create new jobs in Jenkins by automatically putting a predefined config.xml into a new created directory and restarting Jenkins. That’s OK if we have enough time. But Jenkins offers a nice remote API, so I wrote a simple ant-target, […]

bash-backup-script for jenkins‘ job-configs via user-crontab

You (or your colleagues) do often some changes on the jenkins-job-configuration? That means you need an option for backup. There’s a nice backup-plugin for jenkins and a configuration-history-plugin, but I prefere the „hard“ file-backup. For each job, jenkins stores the job-configuration (upstream, downstream, build-params etc. pp.) in a file called „config.xml“ that sits directly in […]

create branch-jobs for Jenkins/Hudson via custom ant-script

Imagine you have about 70-80 well-prepared Jenkins jobs with all the xtra-stuff and plugin-configurations that are usefull and necessary to produce the desired artifacts… and it works 🙂 And now imagine, the release for version v1.0 is out, the trunk was set to v2.0, and your configuration manager created branches vor v1.1. Right the next […]