Jenkins: Reset Admin Password

If you have forgotten the Jenkins admin password and can’t log in to a Jenkins user interface (UI) as administrator, you can connect to a Jenkins server via SSH and reset the Jenkins admin password. The simplest solution is to completely disable security in /var/lib/jenkins/config.xml file, access the Jenkins UI omitting authentication and rest the […]

Jenkins: Default Password & Username

The first time you start Jenkins, the configuration is created along with the initial default administrator account. If for some reason you have skipped the user-creation step in the setup wizard, you can use the default admin username and password to access the Jenkins UI. The Jenkins default password is stored in the $JENKINS_HOME/secrets/initialAdminPassword file […]

Jenkins Pipeline: Conditionally Define Variables – Groovy Script

The Groovy scripting language supports conditional structures, that can be used in Jenkins pipelines. Assume that you have a parametrized Jenkins job and in a Jenkinsfile you have a variable that should be defined depending on provided parameters. Here is an example of how to conditionally define variables in a Jenkins pipeline using the Groovy […]

Install Jenkins – Ubuntu, CentOS

What is Jenkins? Jenkins is a well-known open source CI/CD (Continuous Integration and Continuous Delivery) automation server written in Java. In this tutorial i will show how to install Jenkins on Ubuntu-18.04, 16.04 and Centos-7, 6 and how to perform initial Jenkins configuration. Jenkins requires Java, so firstly it needs to install OpenJDK-8 JRE/JDK (Java […]