Integrate Jenkins on Docker hosted in Ubuntu
Docker is a platform for running applications in an isolated environment called a Docker container. Applications like Jenkins can be downloaded as read-only images, each of which is run in Docker as a container.
However, when your Jenkins is installed on a dynamic Docker hosted in Ubuntu without GUI, you might not be able to configure build and integration with Katalon Studio from the user interface normally.
This tutorial will guide you through configuring and building your Katalon Project with Jenkins on Docker hosted in Ubuntu.
Your Katalon project will run with the Katalon Studio Docker image. Katalon Studio and Katalon Runtime Engine do not need to be installed on your local machine.
- An active floating Katalon Runtime Engine license.
- Docker and Jenkins already installed and configured. For installation instructions, see this Jenkins guide: Installing Docker.
Integrate Jenkins with Docker
To integrate with Docker on Jenkins, you need to install the Docker plugin and Docker Pipeline, then set an environment path to Jenkins. Do as follows:
Upload your Katalon project on Jenkins
- Ensure Docker is running and that both the Docker plugin and Docker Pipeline are active on Jenkins.
- Clone or download our sample CI/CD project at ourGitHub repository.
You have two options for uploading your Katalon project to Jenkins:
From a Git repository.
From your local workspace.
Upload a Git repository
Upload in the local workspace
- Put your CI/CD project folder in this directory:
Users/Your_user_name/.jenkins/workspace
. Copy your project folder name. - In the Jenkins Dashboard, go to New Item and create a Freestyle project. Name your project the same name as your project folder in your local Jenkins workspace.