Skip to content

Instantly share code, notes, and snippets.

@sjenning
Created May 12, 2017 14:54
Show Gist options
  • Save sjenning/fd7494623c714f17c5db243991c3ce9a to your computer and use it in GitHub Desktop.
Save sjenning/fd7494623c714f17c5db243991c3ce9a to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: BuildConfig
metadata:
name: nodejs-ex-pipeline
labels:
app: nodejs-ex
annotations:
pipeline.alpha.openshift.io/uses: '[{"name": "nodejs-ex", "namespace": "", "kind": "DeploymentConfig"}]'
spec:
triggers:
- type: GitHub
github:
secret: a04aabf8d0002f77
runPolicy: Serial
strategy:
type: JenkinsPipeline
jenkinsPipelineStrategy:
jenkinsfile: |-
node {
stage('buildImage'){
openshiftBuild(buildConfig: 'nodejs-ex', showBuildLogs: 'true')
}
stage('deployApplication'){
openshiftDeploy(deploymentConfig: 'nodejs-ex')
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment