The Webinterface of SonarQube is nice, but sometimes you (or your boss) simply want a report that gives an overview over the current status of only the most important measure-results of all your software projects. With a little bit of Groovy-magic and some minutes with good old bad java-scripting this is possible.
Someday your boss will ask you to get a list of all jobs and their build-durations in your Jenkins… as often as quick as possible 😉 Just use the following piece of Groovy-code in the Jenkins-console and lay back.
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 […]
Sometimes you need to send a mail… I was looking for a possibility to easily send mails with Groovy but I didn’t find a simple solution. The I remembered, that Groovy is just ugly Java 🙂
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 […]