Skip to content
Rupali Behera edited this page Jan 25, 2018 · 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.

5. Want to know how the github org configuration is setup for OSIO ?

https://github.com/fabric8io/fabric8-generator/blob/master/src/main/resources/io/fabric8/forge/generator/kubernetes/github-org-job-config.xml

6. If you want to know the list of plugins and which version is installed in Fabric8/OSIO Jenkins ?

https://github.com/fabric8io/openshift-jenkins-s2i-config/blob/master/plugins.txt

7. Which base image is used by fabric8 and OSIO Jenkins ?

https://github.com/fabric8-jenkins/jenkins-openshift-base

8. Link to the jenkins configuration which includes 'script approval', 'global configuration' etc

https://github.com/fabric8-services/fabric8-tenant-jenkins/blob/master/apps/jenkins/src/main/fabric8/openshift-cm.yml

9. Where are the slave images for our pipeline ?

https://github.com/fabric8io-images