How to Use the Environment Variables in Jenkinsfile
Jenkins is a Java-based server application that runs within a servlet container such as Apache, Tomcat, or Jetty. It consists of plugins that provide various features and functionality such as support...
View ArticleSet Timezone in Jenkins
Timezone is a setting that allows you to specify the timezone that should be used for various timestamps associated with builds, such as the build start and completion times. Jenkins uses the timezone...
View ArticleSetup the Jenkins Controller
A Jenkins controller refers to a Jenkins instance which is responsible to schedule the various build jobs and dispatch them to various worker nodes. The Jenkins controller works as the central control...
View ArticleRun a Python Script from Jenkins
Jenkins is a continuous integration and delivery platform that helps automate the software development process. One way to use Jenkins is by defining a Jenkinsfile in the root of your project and...
View ArticleUse Timestamps in Jenkins
In Jenkins, timestamps record the date and time at which various events occur, such as when a build starts when it finishes, or when a user logs in. Timestamps can help track the progress of builds,...
View ArticleUsing Jenkins Triggers
A Jenkins build trigger refers to a means by which a build is automatically started based on specific events. Jenkins offers a wide range of build triggers allowing you to choose the most efficient...
View ArticleOWASP Dependency Check in Jenkins
OWASP (Open Web Application Security Project) is a nonprofit organization that works to improve the software security. It is a community-driven organization that aims to promote and improve the web...
View ArticleJenkinsfile Run a Shell Script
When you are just getting started with Jenkins, you may realize that you need to invoke the sh, bat, or PowerShell step to run shell commands on your controller. Although this can be useful when...
View ArticleJenkins Reload Configuration From Disk
The Reload Configuration from Disk command in Jenkins allows you to refresh Jenkins configuration files and directory structure. This command is used when a change is made to Jenkins and its...
View ArticleJenkins Disk Space Cleanup
Depending on the server configuration, you may need to monitor and clean up your Jenkins disk usage constantly. This can free up space and allow your Jenkins instance to perform better. There are...
View ArticleJenkins AnyOf Operation
We can use the when expression in a Jenkinsfile to specify the conditions under which a particular build step or post-build action should be executed. It allows you to specify a Boolean expression that...
View ArticleJenkins AllOf Operator
We can use the when expression in a Jenkinsfile to specify the conditions under which a particular build step or post-build action should be executed. It allows you to specify a Boolean expression that...
View ArticleInstall and Use the Ansible Jenkins Plugin
This tutorial explores how we can integrate Ansible in our Jenkins pipelines using the Ansible plugin. This allows us to run the Ansible tasks as a build step in our Jenkins pipeline. This is an...
View ArticleHow to View the Jenkins Logs
Jenkins is one of the most influential and popular free and open-source CD/CD automation servers for developers. Apart from the plethora of tools and plugins which are supported by Jenkins, it provides...
View ArticleHow to Restart Jenkins on Linux
When working with Jenkins, you may come across some instances where you need to restart the Jenkins server. An example of such a scenario is after installing or updating a specific plugin. Another case...
View ArticleJenkins Parallel Stages
A Jenkins pipeline is a group of events or jobs that are interlinked in a sequence. You can define a pipeline by creating a Pipeline object in your Jenkinsfile. Parallel stages allow you to run...
View ArticleJenkins Post-Build Actions
If you are familiar with Jenkins, you mainly work with build actions. This build represents a specific set of tasks executed by the Jenkins server. When you create a new build in Jenkins, you can...
View ArticleJenkins Post-Failure Cleanup
Jenkins “Post-build Actions” allows you to define actions that should be taken after a build is completed. One of these actions is the “Post-build Failure Cleanup” action, which allows you to specify...
View ArticleJenkins TAG_NAME
Environment variables, or env vars, are variables which are set outside of a script and are used in Jenkins scripts. Jenkins environment variables are a set of key-value pairs where the key is the...
View ArticleJenkinsfile ArchiveArtifacts
Jenkins build artifacts refer to the files generated by a specific Jenkins build and saved in one location so that they can be archived and shared with other team members or deployed to testing and...
View Article