Table of contents

Installing Jenkins X


Installing on Google Cloud Platform

Prerequisites

Installing Jenkins X on Google Cloud Platform Shell requires the following supported services installed and configured prior to installation:

  • A Google Cloud Platform (GCP) account. You can sign up for the GCP free trial, which lasts 12 months, and currently offers US$300 of credit.

  • Also ensure you have created a GCP project for your Jenkins X installation. It is recommended that you create a new GCP project, separate from your other development and production clusters.

Installing

To run jx commands from the GCP Cloud Shell, install the Jenkins X binaries from the GitHub repository and install it via GCP shell commands:

  1. Open the GCP Cloud Shell, and choose your GCP project for Jenkins X.

    Note
    It is highly recommended that you use Google Chrome browser with GCP Cloud Shell, as you may experience issues using other browsers.
  2. In GCP Cloud Shell, download the Jenkins X command-line binaries latest version (where [LATEST_VERSION] is the most current version of Jenkins X released, which is 2.0.46):

    curl -L https://github.com/jenkins-x/jx/releases/download/[LATEST_VERSION]/jx-linux-amd64.tar.gz | tar xzv
  3. Move the jx exectutable into the executable directory with this command:

    sudo mv jx /usr/local/bin

Once you have the jx binary installed you can then configure a Jenkins X cluster on Google Kubernetes Engine.