Skip to content
Rupali Behera edited this page Dec 4, 2017 · 6 revisions

Welcome to the fabric8-pipeline-library wiki!

1. How are the pipelines for any Job/PR configured https://jenkins.cd.test.fabric8.io ?

This is a manual step once basically we import github orgs; then the jenkins github org folder plugin https://wiki.jenkins.io/display/JENKINS/GitHub+Organization+Folder+Plugin automatically imports any repository, branch and PR's that has a Jenkinsfile and creates a Job correspondingly.

In the below image you can see an example for adding https://github.com/fabric8-ui github organization.

2. How do you test the pipeline code ?

For eg. you modified getBranch() method in Utils.grrovy

from Jenkins console UI create a pipeline Job and add this below snippet pointing to your fork and branch where you pushed your code.

@Library('github.com/rupalibehera/fabric8-pipeline-library@test-branch')
def dummy
  ws{
      git 'https://github.com/rupalibehera/t3d.git'
      def flow = new io.fabric8.Utils()
      def rs = flow.getBranch()
      echo "${rs}"
    }

3. Where do you test your pipeline code ?

Pipelines can be tested on the local installation of fabric8 jenkins or OSIO jenkins, as this library is meant for deploying inside fabric8(OSIO). As the fabric8 jenkins comes with all the plugins required by the pipeline library to run.

4. If you want to rebuild your PR pipeline Job ?

  • You can start the build again by doing an empty commit with the following command git commit -m 'fix(ci): dummy commit' --allow-empty and push it and later you can squash this commit
  • Ping folks on the fabric8-cd channel for help.
Clone this wiki locally