Skip to content
KI

Kenan Ibrovic

2 articles

March 21, 2022

Find your Jenkins pipeline faster

Software Development

Find your Jenkins pipeline faster

If you have a Jenkins instance you’re sharing with other developers, it can be quite hard to find your jobs. By default, Jenkins names your jobs as: #${BUILD_NUMBER} and adds the date and time of execution. When you work with other team members, your history will look something like this:  Unless you know exactly which build was yours or the time you ran this job, it will take some clicking back and forth to find your job. Using two plugins, you can make your life much easier. First, the Build Name and Description Setter plugin allows you to set the build name and description. Second, the build user vars plugin extends your options with user variables which we will use.  Changing a build name and description can be easily done in Jenkins GUI job configuration. In the Build Environment section, set Build name to: #${BUILD_NUMBER} ${BUILD_USER}. If you’d like to make your history a bit more descriptive, you can add a description with your TARGET_SYSTEMparameter: TARGETSYSTEM: ${TARGET_SYSTEM}. Now, it will be much easier to find your job. Of course TARGET_SYSTEM is not a Jenkins built in variable but in this context it is used to define a specific environment on which jobs are running. If you are using any other variable for this specific purpose, you can use it here. This will work for Freestyle projects. However, if you’re using pipelines like most people do, you can add this as a step in your Jenkinsfile: stage('Add Build Description'){     steps {         wrap([$class: 'BuildUser']) {             buildName "#${BUILD_NUMBER} ${BUILD_USER}"             buildDescription 'TARGETSYSTEM: ${TARGET_SYSTEM}'         }     } }   "Find your Jenkins pipeline faster" Tech Bite was brought to you by Kenan Ibrović, DevOps Engineer at Atlantbh. (more…)

September 22, 2021

Nexus Upgrade Adventures

Software Development

Nexus Upgrade Adventures

Nexus Upgrade Adventures We all want our services to be up to date, security patches applied, all bugs fixed, new features and all the other cool things. Well, life is not perfect and quite often you don’t have enough time for this. Other priorities pop up and you end up postponing the upgrade until it becomes a priority. The same thing happened with a certain Nexus service. (more…)

Ready to Achieve More?

We’ll help you reach your goals quickly with an easy and straightforward process to kick off our collaboration. Here’s what happens next.

STEP 1

Discovery Call

Let’s chat to understand your company, project needs, and answer any questions along the way.

STEP 2

Free Consultation

Work closely with our experts to explore the right solutions for your business.

STEP 3

Collaboration Proposal

We'll recommend the best strategy for your goals, ensuring you get the most from our expertise.

STEP 4

30-Day Cancellation
Policy Contract

Spoiler: It’s Never Been Used

Enjoy peace of mind while we deliver excellence from day one—our track record speaks for itself.

Services you're interested in (Optional)