Skip to content

Instantly share code, notes, and snippets.

@xcoulon
Created June 9, 2016 10:07
Show Gist options
  • Save xcoulon/18eba13898faa432d39153141683c3bd to your computer and use it in GitHub Desktop.
Save xcoulon/18eba13898faa432d39153141683c3bd to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: BuildConfig
metadata:
name: pipeline
namespace: pipelineproject
selfLink: /oapi/v1/namespaces/pipelineproject/buildconfigs/pipeline
uid: a5b191c1-2db9-11e6-897a-52540039ecd4
resourceVersion: '47305'
creationTimestamp: '2016-06-08T20:43:25Z'
labels:
name: pipeline
spec:
triggers:
-
type: GitHub
github:
secret: secret101
-
type: Generic
generic:
secret: secret101
runPolicy: Serial
source:
type: Git
git:
uri: 'https://github.com/xcoulon/pipelineproject.git'
secrets: []
strategy:
type: JenkinsPipeline
jenkinsPipelineStrategy:
jenkinsfile: "node('agent') {\nstage 'build'\ndef builder = new com.openshift.jenkins.plugins.pipeline.OpenShiftBuilder(\"\", \"kitchensink\", \"pipelineproject\", \"\", \"\", \"\", \"\", \"true\", \"\", \"\")\nstep builder\nstage 'deploy'\ndef deployer = new com.openshift.jenkins.plugins.pipeline.OpenShiftDeployer(\"\",\"kitchensink\",\"pipelineproject\",\"\",\"\")\nstep deployer\n}"
output:
resources:
postCommit:
status:
lastVersion: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment