Permalink
Switch branches/tags
Nothing to show
Find file Copy path
3bb90a3 Dec 12, 2017
3 contributors

Users who have contributed to this file

@aweiteka @codificat @jcpowermac
91 lines (90 sloc) 2.38 KB
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: jenkins-custom
app: jenkins-custom
objects:
- apiVersion: v1
kind: ImageStream
metadata:
name: jenkins
spec:
lookupPolicy:
local: false
tags:
- annotations: null
from:
kind: DockerImage
name: registry.access.redhat.com/openshift3/jenkins-2-rhel7:v3.7
name: v3.7
referencePolicy:
type: Source
- apiVersion: v1
kind: ImageStream
metadata:
name: jenkins-custom
app: jenkins-custom
spec: {}
- apiVersion: v1
kind: BuildConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewBuild
creationTimestamp: null
labels:
build: jenkins-custom
app: jenkins-custom
name: jenkins-custom
spec:
failedBuildsHistoryLimit: 5
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: jenkins-custom:latest
postCommit: {}
resources: {}
runPolicy: Serial
source:
git:
uri: ${SOURCE_REPOSITORY_URL}
ref: ${SOURCE_REPOSITORY_REF}
type: Git
contextDir: ${CONTEXT_DIR}
strategy:
sourceStrategy:
from:
kind: ImageStreamTag
name: jenkins:v3.7
type: Source
successfulBuildsHistoryLimit: 5
triggers: {}
parameters:
- description: The URL of the repository with your application source code.
displayName: Git Repository URL
name: SOURCE_REPOSITORY_URL
required: true
value: https://github.com/RHsyseng/jenkins-on-openshift.git
- description: Set this to a branch name, tag or other ref of your repository if you
are not using the default branch.
displayName: Git Reference
name: SOURCE_REPOSITORY_REF
value: master
- description: Set this to the relative path to your project if it is not in the root
of your repository.
displayName: Context Directory
name: CONTEXT_DIR
value: jenkins
- description: Github trigger secret. A difficult to guess string encoded as part
of the webhook URL. Not encrypted.
displayName: GitHub Webhook Secret
from: '[a-zA-Z0-9]{40}'
generate: expression
name: GITHUB_WEBHOOK_SECRET
- description: Generic trigger secret for general automation. A difficult to guess string encoded as part
of the webhook URL. Not encrypted.
displayName: Generic Webhook Secret
from: '[a-zA-Z0-9]{40}'
generate: expression
name: GENERIC_WEBHOOK_SECRET