How to do it...

Now let's install and configure Jenkins:

  1. Add the repository key to the system:
 wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
  1. Append the Debian package address to sources.list:
    sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
  1. Update the apt packages:
    sudo apt update
  1. Install Jenkins:
    sudo apt install jenkins
If you get an error when you install Jenkins, you can uninstall it with: sudo apt-get remove --purge jenkins
  1. Start the Jenkins service:
    sudo systemctl start jenkins
  1. If you want to see the Jenkins status, use this command:
    sudo systemctl status jenkins
  1. Jenkins runs on port 8080 by default, and we need to open the ...

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.