项目作者: RHsyseng

项目描述 :
OpenShift Jenkins Pipeline Library
高级语言: Groovy
项目地址: git://github.com/RHsyseng/openshift-pipeline-library.git
创建时间: 2017-04-28T17:40:03Z
项目社区:https://github.com/RHsyseng/openshift-pipeline-library

开源协议:

下载


OpenShift Pipeline Library

Current Goal: Build and test container images on OpenShift with Jenkins and supporting
multibranches (pull requests).

  1. Uses ephermeral Jenkins and the configuration is stored in OpenShift project
  2. S2I to include jobs and additional plugins

Quickstart

  1. Add Jenkinsfile to your GitHub project (use the example in this project).
  2. Create a new project oc new-project <project-name>
  3. Add the template to OpenShift oc create -f https://raw.githubusercontent.com/RHsyseng/openshift-pipeline-library/master/jenkins/openshift/template.yaml
  4. Process template
    1. oc new-app --template docker-image-testing \
    2. -p JENKINS_ORG_FOLDER_NAME=RHsyseng \
    3. -p JENKINS_GITHUB_OWNER=RHsyseng-user \
    4. -p JENKINS_GITHUB_REPO=openshift-client-library \
    5. -p JENKINS_GITHUB_CRED_ID=github \
    6. -p GITHUB_USERNAME=RHsyseng-user \
    7. -p GITHUB_TOKEN=token
  5. Add Jenkins to the project oc new-app --template jenkins-ephemeral -p NAMESPACE=$(oc project -q) -p MEMORY_LIMIT=2Gi
  6. Add the pipeline oc create -f https://raw.githubusercontent.com/RHsyseng/openshift-pipeline-library/master/jenkins/openshift/pipeline.yaml
  7. And finally start the pipeline oc start-build createcred-pipeline