Skip to content

Instantly share code, notes, and snippets.

@samvarankashyap
Created August 16, 2018 14:05
Show Gist options
  • Save samvarankashyap/ffe5de7d7bcfe3567ce2ab693009739f to your computer and use it in GitHub Desktop.
Save samvarankashyap/ffe5de7d7bcfe3567ce2ab693009739f to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: BuildConfig
metadata:
name: myfirstpipeline
labels:
name: myfirstpipeline
spec:
source:
type: None
strategy:
type: JenkinsPipeline
jenkinsPipelineStrategy:
jenkinsfile: |-
node() {
stage 'build'
openshiftBuild(buildConfig: 'pythontest', showBuildLogs: 'true')
stage 'deploy'
openshiftDeploy(deploymentConfig: 'pythontest')
openshiftScale(deploymentConfig: 'pythontest',replicaCount: '1')
}
output: {}
resources: {}
postCommit: {}
nodeSelector: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment