Skip to content

Commit

Permalink
Updating the UCD deploy sample for DBB 2.0 (#153)
Browse files Browse the repository at this point in the history
Updating the UCD deploy sample for DBB 2.0
  • Loading branch information
dennis-behm authored Dec 7, 2022
1 parent 10ba19d commit 112cc77
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 148 deletions.
29 changes: 27 additions & 2 deletions Pipeline/DeployUCDComponentVersion/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# IBM UCD application process deployment utility script

This groovy script can be use to deploy an application component version into a specific environment
This groovy script can be used to request an UCD application deployment of a previously created UCD component version into a specific environment.

**Please note:** This script leverages `java.net.http.HttpClient` which got added in JAVA 11. Therefore this script requires JAVA 11 and DBB 2.0.

Example invocation:
```
Expand All @@ -24,4 +26,27 @@ required options:
-s,--sslProtocols The SSL protocols to handle in the format "TLSv1.2,TLSv1.3". Default is TLSv1.2
-k,--disableSSLVerify Disable SSL verification
-v,--verbose Flag to turn on script trace
```
```

## Console output

```
/usr/lpp/dbb/v2r0/bin/groovyz ucd-deploy.groovy -a "CatalogManager" -e "Integration-Test" -U XXXX -P XXXX -u https://ucd.server.com:8443 -d "CatalogManager:rel-2.10.1-7076" -p appDeployment -k
** Request UCD Deployment start at 20221130.112746.027
** Properties at startup:
application -> CatalogManager
environment -> Integration-Test
user -> admin
password -> xxxxxx
url -> https://ucd.server.com:8443
deployVersions -> CatalogManager:rel-2.10.1-7076
applicationProcess -> appDeployment
disableSSLVerify -> true
** Deploying component versions: CatalogManager:rel-2.10.1-7076
*** Starting deployment process 'appDeployment' of application 'CatalogManager' in environment 'Integration-Test'
*** SSL Verification disabled
*** Follow Process Request: https://ucd.server.com:8443/#applicationProcessRequest/184c812f-605f-5040-ad31-d3a31f87bb3c
Executing ......
*** The deployment result is SUCCEEDED. See the UrbanCode Deploy deployment logs for details.
** Build finished
```
Loading

0 comments on commit 112cc77

Please sign in to comment.