Home » Jenkins

Tag Archives: Jenkins

Jenkins: Automating your delivery pipeline

In this post, we are going to create a Jenkins pipeline for a Java Spring project using Maven and Git: Accessing Jenkins dashboard and configuring Maven in Jenkins: Click on “Manage Jenkins” and then in “Global Tool Configuration” Add a Maven installation and provide a name for it. Click on Save. Creation of our first build job in Jenkins for ...

Read More »

Best Jenkins Pipeline Tutorial For Beginners [Examples]

Jenkins CI/CD has always been the goto option for DevOps professionals and beginners. It has more than 16,000 stars on GitHub and 6,500 forks. Being one of the oldest players in the CI/CD market, Jenkins has huge community support with more than 1500 plugins to help professionals ship faster through their Jenkins Pipelines. Whether you are just starting off your ...

Read More »

Checking for Artifactory in a Jenkins Pipeline

One of my projects uses the Artifactory as the repository manager. Unfortunately when doing a Jenkins pipeline build, I sometimes forget to ensure the Artifactory server is up first and find the job has failed after running for a while. I’ve added some script to my Jenkinsfile that will check for the Artifactory server early on and fail fast if ...

Read More »

The Perils of the Shared Jenkins and Making Decisions

You may be thinking of sharing a Jenkins server, perhaps you’re worried about: Who has the time to do admin on multiple servers?How can we be sure that we don’t open a gaping chasm (it happens) on our network making our code and test environment public?Ensuring people use a standard toolsetAvoiding the cost of multiple copies of the same services ...

Read More »

Converting Helm Charts Into Jenkins X Apps

Your cluster is bound to run quite a few third-party applications. They need to be installed and managed somehow. This article offers one possible way to install and maintain third-party applications using Jenkins X Apps. We’ll use Istio as an example of such an application and try to figure out how to convert its official Helm charts into Jenkins X ...

Read More »

Field Notes from an Ad-Hoc Jenkins Pipeline

I recently had a challenge. I have written a PR to improve an open source library, but the owners of that library haven’t merged it. I don’t really want to wait until they merge the library until I can use it, so I need to deploy my copy of it, with a modified version ID, to a private artifactory server. ...

Read More »

Accessing and dumping Jenkins credentials

Most pipelines require secrets to authenticate with some external resources.All secrets should live outside of our code repository and should be fed directly into the pipeline. Jenkins offers a credentials store where we can keep our secrets and access them in a couple of different ways. Why dump credentials Jenkins is an easy pick when it comes to intelligence gathering. ...

Read More »

Private Jenkins Shared Libraries

The official documentation for Jenkins Shared Libraries is pretty good, but not perfect. This article expands on how to use Jenkins Shared Libraries with private git repositories, semantically version, and unit test your libraries and provides working examples which you can run yourself. Short Intro Jenkins Shared Library is a handy tool when dealing with multiple similar pipelines. If you ...

Read More »

Creating a Jenkinsfile pipeline

Basics of setting up a Jenkins multibranch pipeline job and defining a Jenkinsfile. Creating Multibranch Pipeline Job If you want to follow this article but don’t have a Jenkins instance at hand you can use my GitHub project to spin up a dockerized Jenkins: git clone https://github.com/hoto/jenkinsfile-examples.git cd jenkinsfile-examples docker-compose pull docker-compose up Let’s open Jenkins by going to localhost:8080 ...

Read More »