Create a Jenkins build

Learn how to create a Jenkins build, so you can leverage continuous integration within your test automation pipeline.

Before you start

You’ll need to complete the following:

Open Jenkins

By default, Jenkins is set to http://localhost:8080. Open Jenkins in your browser.

Open Jenkins in your browser

Optional: install the Maven plugin

If you haven’t installed the Maven plugin already, select Dashboard > Manage Jenkins.

Select Manage Jenkins tab

Select Plugins.

Select Plugins tab

Select Available Plugins, then search for Maven and select Install after restart.

Select Maven and select Install after restart

Create a new project

Select Dashboard > New Item.

Select New Item option in Jenkins

Enter a project name, select Maven project > OK.

Set up the minimum requirements

In the Configuration page, you will configure your Maven project. The following section outlines the minimum requirements for integrating Jenkins with Kobiton; however, you can add or change any of these options to better meet your project needs.

General

In the General pane, enter a description.

Enter description

Select the Discard old builds checkbox, then choose the maximum number of days to keep builds and how many builds to keep. For example:

Select the Discards old build

If you are sharing this build with multiple users, we recommended configuring runtime environment variables so users will be required to enter their username, API key, and device UDID so Jenkins can assign these variables at runtime. For more information, see Configure environment variables in Jenkins.

Source code management

Select Source Code Management.

select Source Code Management tab

Select Git, then enter the URL you created previously along with your credentials.

select Git in Source Code Management

Build triggers

Select Build Triggers.

Select Build Triggers closeup

Choose the settings that work best for you and your team. For example:

"Select settings in Build Triggers'

Build environment

Select Build Environment.

Select Build Environment tab

Select the Delete Workspace before build starts, Add timestamps to Console Output, and Abort the build if it’s stuck checkboxes.

Select

Now that your Maven project is configured with the minimum requirements, you can configure your build steps.

Configure your build steps

In the remaining panes on the Configuration page, configure your Maven project’s Pre Steps, Build, Post Steps, Build Settings, and Post-Build Actions. Build steps are project-specific, so choose the options that best meet your project’s needs.

When you’re finished, select Save.