Merge pull request #73 from jim-minter/pipeline

add Jenkinsfile
This commit is contained in:
Ben Parees 2016-11-10 11:47:06 -05:00 committed by GitHub
commit fb4415ce65
2 changed files with 20 additions and 0 deletions

6
openshift/pipeline/Jenkinsfile vendored Normal file
View file

@ -0,0 +1,6 @@
node('nodejs') {
stage 'build'
openshiftBuild(buildConfig: 'nodejs-ex', showBuildLogs: 'true')
stage 'deploy'
openshiftDeploy(deploymentConfig: 'nodejs-ex')
}

View file

@ -0,0 +1,14 @@
This directory contains a Jenkinsfile which can be used to build
nodejs-ex using an OpenShift build pipeline.
To do this, run:
```bash
# create the nodejs example as usual
oc new-app https://github.com/openshift/nodejs-ex
# now create the pipeline build controller from the openshift/pipeline
# subdirectory
oc new-app https://github.com/openshift/nodejs-ex \
--context-dir=openshift/pipeline --name nodejs-ex-pipeline
```