Automating the build and deployment processes enables software development teams to make smaller changes more often.

Automation limits bugs due to code other team members write, as the code was checked out.

to get to achieve this benefit, a high degree of automation and orchestration is necessary.

Tiny PC Hero

Jenkins is one of the most popular and flexible open-source orchestration tools out there.

Prerequisites

We get hands-on in this article.

after you grab installed Jenkins, you’re free to access it right from your web online window.

The word Windows 11 with a map pin on the right and the default windows 11 wallpaper as background.

Open your internet tool and navigate to

, and you see Jenkins starting or waiting for an initial password.

This process makes sure you have access to the file system of the system you installed it on.

Plugins are how Jenkins interacts with other components and services.

‘Figment’ in a Galaxy Z Fold 6 next to an 8BitDo Pro 2 controller.

You install more plugins later, but for now, grab the defaults.

Defining the Jenkins URL

Next, you’re asked to set up the Jenkins URL.

There’s no need to worry about the URL for this walkthrough.

Article image

Jenkins

But the URL will be used in any webhooks and environment variables that Jenkins creates.

To get the most out of Jenkins, you must install plug-ins.

Plugins are open-source packages that interact with other programs and services within Jenkins.

Get the password and enter it in the Administrator password box to continue.

PowerShell is a part of the requirements of this article.

Chuck Norris doesn’t break builds, unworthy builds stop in their tracks in his presence.

press the checkbox next to the PowerShell plugin and click Install without restart.

Set up your first Jenkins admin user.

The next page you’re taken to is the Configure Project page.

This may look overwhelming, but don’t worry about it right now.

As you scroll down the configuration page, notice the many available options.

An empty Jenkins page.

Below, you’ll find each option and the value that should be provided for this demonstration.

Source Code Management

punch Git, then key in your repository URL in the Repository URL field.

Leave the rest of the prefs as default.

Under the Available tab, you can see what’s available.

Build Triggers

Select Poll SCM, then enter

in the Schedule field.

This is acron timerthat polls for changes to that repository every minute.

Build

Under the Add Build Step dropdown, select Windows PowerShell and enter

in the Command field.

Click on Git, then enter your repository URL in the Repository URL field.

Jenkins does not actually activate Chuck Norris, Jenkins just looks for his approval.

Earlier when you entered

in the build step, you may have wondered where that variable is coming from.

Now that your job is configured, it’s time to test it.

Select Poll SCM, then enter * * * * * in the Schedule field.

Under the Add Build Step dropdown, select Windows PowerShell and enter Get-ChildItem $ENV:WORKSPACE in the Command field.

select Activate Chuck Norris from the Add Post-build step dropdown to add the Chuck Norris plugin’s visual effect to the job.

Your home page after testing a new run of your Jenkins job.

Console Output shows each command line step Jenkins took running the build.

A similiar output from cmdlet.