Browse Source

[skip travis] update doc

master
Nicolas Massé 7 years ago
committed by GitHub
parent
commit
f65d229f90
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      support/openshift/README.md

17
support/openshift/README.md

@ -35,3 +35,20 @@ Wait for the build to complete:
```sh
oc logs -f bc/deploy-3scale-api-echo-api
```
To start this build from a Jenkins pipeline, you will need first to give the `system:build-strategy-custom` role to the `jenkins` Service Account:
```sh
oc adm policy add-role-to-user system:build-strategy-custom -z jenkins
```
Then, from your Jenkins pipeline, you can use:
```sh
openshift.withCluster() {
openshift.withProject() {
def bc = openshift.selector('bc', "deploy-3scale-api-echo-api");
bc.startBuild("--wait=true");
}
}
```

Loading…
Cancel
Save