Skip to content

How to build Jenkins X on Power

Prajyot-Parab edited this page Nov 1, 2018 · 5 revisions

Building Jenkins-x on Power

Prerequisites

  • git
  • curl
  • wget
  • make
  • tar
  • Go 1.11.x or later
  • dep

Configuring Go

-- The jx's binary eCLI is built on your machine in your GO Path.

sudo su
wget https://dl.google.com/go/go1.11.1.linux-ppc64le.tar.gz
chmod ugo+r go1.11.1.linux-ppc64le.tar.gz
tar -C /usr/local -xzf go1.11.1.linux-ppc64le.tar.gz
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/<source_root>/

Dep Installation

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

Fork the Repository

-- Begin at Github by forking jx, then clone your fork locally. Since jx is a Go package, it should be located at $GOPATH/src/github.com/jenkins-x/jx.

mkdir -p $GOPATH/src/github.com/jenkins-x
cd $GOPATH/src/github.com/jenkins-x
git clone [email protected]:<username>/jx.git
cd jx

Build

-- With the prerequisites installed and your fork of jx cloned, you can make changes to local jx source code.

  • Run make to build the jx binaries:
make build

Testing

  • To run the standard test suite:
make test
  • To run the standard test suite including slow running tests:
make test-slow
  • To run all tests including integration tests (NOTE These tests are not encapsulated):
make test-slow-integration
  • To get a nice HTML report on the tests:
make test-report-html

Note: There are few test case failures observed on power for helm, kube and cmd module.

Clone this wiki locally