No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
17 additions and
0 deletions
-
support/openshift/README.md
|
|
@ -35,3 +35,20 @@ Wait for the build to complete: |
|
|
```sh |
|
|
```sh |
|
|
oc logs -f bc/deploy-3scale-api-echo-api |
|
|
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"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
``` |
|
|
|