This is the documentation for version 0.39. For documentation on the latest version of kpt, please see kpt.dev.

Creating a Jenkins Instance on GCP

  1. Create a Firewall Rule that allows TCP connections to port 8080, which Jenkins uses.

    1. Go to the Firewall page.
    2. Click Create Firewall Rule.
    3. Specify a Name for your firewall rule, e.g. allow-http-8080.
    4. Select All instances in the network as Targets.
    5. Select IP ranges in the Source filter.
    6. Enter 0.0.0.0/0 as Source IP ranges.
    7. In Protocols and ports, use Specified protocols and ports, check tcp and input 8080.
    8. Click the Create button.
  2. Create a new VM instance of Ubuntu 18.04 LTS on GCP.

    1. Choose Ubuntu 18.04 LTS as image in Boot disk.
      1. Click change.
      2. Scroll through the version dropdown to find the right one.
    2. Expand Management, security, disk, networking, sole tenancy, click the Networking tab, enter the name of the firewall rule you created, e.g. allow-http-8080.
  3. SSH into the VM instance you just created.

  4. Install Jenkins on the VM.

    1. Install JDK first.

      sudo apt update
      sudo apt install openjdk-8-jdk
      
    2. Then install Jenkins.

      wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
      sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > \
          /etc/apt/sources.list.d/jenkins.list'
      sudo apt-get update
      sudo apt-get install jenkins
      
  5. Go to <instance ip>:8080 to set up Jenkins.

Last modified July 28, 2020: Regenerate docs (3a694b8a)