commit
fb4415ce65
2 changed files with 20 additions and 0 deletions
6
openshift/pipeline/Jenkinsfile
vendored
Normal file
6
openshift/pipeline/Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
node('nodejs') {
|
||||
stage 'build'
|
||||
openshiftBuild(buildConfig: 'nodejs-ex', showBuildLogs: 'true')
|
||||
stage 'deploy'
|
||||
openshiftDeploy(deploymentConfig: 'nodejs-ex')
|
||||
}
|
14
openshift/pipeline/README.md
Normal file
14
openshift/pipeline/README.md
Normal 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
|
||||
```
|
Loading…
Reference in a new issue