Setting up Jenkins

Let's use Jenkins as the CI tool for our application.

If you are already familiar with Docker, you can use the official Docker image provided by Jenkins and skip the following steps. The Docker image will be automatically generated by JHipster when creating the CD/CI pipeline in the following section. Visit http://www.jhipster.tech/setting-up-ci-jenkins2/ for more details.

We first need to set up a local Jenkins instance:

  1. Let's download the latest binary from http://mirrors.jenkins.io/war-stable/latest/jenkins.war.
  2. Now, open a Terminal and navigate to the folder where the file was downloaded.
  3. Execute java -jar jenkins.war --httpPort=8989 from the Terminal to start a Jenkins server. The port should not conflict with our application port. The default password will be printed on the console. Make a copy of it.
  4. Navigate to https://localhost:8989 and paste the password copied before.
  5. Click on the Install suggested plugins button on the next page and wait for the plugin installation to complete.
  6. Create an admin user on the next page and complete the setup.

Now that our Jenkins server is ready, let's go ahead and create a Jenkins pipeline for our project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.23.101.60