Joey Armstrong | 96158a9 | 2022-11-25 10:36:06 -0500 | [diff] [blame] | 1 | #!/usr/bin/env groovy |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 2 | // ----------------------------------------------------------------------- |
Joey Armstrong | af679da | 2023-01-31 14:22:41 -0500 | [diff] [blame] | 3 | // Copyright 2021-2023 Open Networking Foundation (ONF) and the ONF Contributors |
| 4 | // |
| 5 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | // you may not use this file except in compliance with the License. |
| 7 | // You may obtain a copy of the License at |
| 8 | // |
| 9 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | // |
| 11 | // Unless required by applicable law or agreed to in writing, software |
| 12 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | // See the License for the specific language governing permissions and |
| 15 | // limitations under the License. |
| 16 | // ----------------------------------------------------------------------- |
| 17 | |
| 18 | // ----------------------------------------------------------------------- |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 19 | // ----------------------------------------------------------------------- |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 20 | String getIam(String func) { |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 21 | // Cannot rely on a stack trace due to jenkins manipulation |
| 22 | String src = 'vars/volthaStackDeploy.groovy' |
| 23 | String iam = [src, func].join('::') |
| 24 | return iam |
| 25 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 26 | |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 27 | // ----------------------------------------------------------------------- |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 28 | // Intent: Log progress message |
| 29 | // ----------------------------------------------------------------------- |
| 30 | void enter(String name) { |
| 31 | // Announce ourselves for log usability |
| 32 | String iam = getIam(name) |
| 33 | println("${iam}: ENTER") |
| 34 | return |
| 35 | } |
| 36 | |
| 37 | // ----------------------------------------------------------------------- |
| 38 | // Intent: Log progress message |
| 39 | // ----------------------------------------------------------------------- |
| 40 | void leave(String name) { |
| 41 | // Announce ourselves for log usability |
| 42 | String iam = getIam(name) |
| 43 | println("${iam}: LEAVE") |
| 44 | return |
| 45 | } |
| 46 | |
| 47 | // ----------------------------------------------------------------------- |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 48 | // Intent: |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 49 | // ----------------------------------------------------------------------- |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 50 | void deployVolthaStack(Map cfg) { |
| 51 | enter('deployVolthaStack') |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 52 | |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 53 | sh(label : "Create VOLTHA Stack ${cfg.stackName}, (namespace=${cfg.volthaNamespace})", |
| 54 | script : """ |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 55 | |
| 56 | helm upgrade --install --create-namespace \ |
| 57 | -n ${cfg.volthaNamespace} ${cfg.stackName} ${cfg.volthaStackChart} \ |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 58 | --set global.stack_name=${cfg.stackName} \ |
| 59 | --set global.voltha_infra_name=voltha-infra \ |
Matteo Scandolo | 529e882 | 2021-07-21 10:20:18 -0700 | [diff] [blame] | 60 | --set voltha.onos_classic.replicas=${cfg.onosReplica} \ |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 61 | --set global.voltha_infra_namespace=${cfg.infraNamespace} \ |
Matteo Scandolo | ed1afdd | 2021-04-02 16:25:45 -0700 | [diff] [blame] | 62 | ${cfg.extraHelmFlags} |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 63 | """) |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 64 | |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 65 | for (int i = 0; i < cfg.bbsimReplica; i++) { |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 66 | // NOTE we don't need to update the tag for DT |
| 67 | script { |
| 68 | sh(label : "Create config[$i]: bbsimCfg${cfg.stackId}${i}.yaml", |
| 69 | script : "rm -f $WORKSPACE/bbsimCfg${cfg.stackId}${i}.yaml", |
| 70 | ) |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 71 | |
Joey Armstrong | 8d12f65 | 2023-09-13 18:25:33 -0400 | [diff] [blame] | 72 | if (cfg.workflow == 'att' || cfg.workflow == 'tt') { |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 73 | int startingStag = 900 |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 74 | def serviceConfigFile = cfg.workflow |
| 75 | if (cfg.withMacLearning && cfg.workflow == 'tt') { |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 76 | serviceConfigFile = 'tt-maclearner' |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 77 | } |
| 78 | def bbsimCfg = readYaml file: "$WORKSPACE/voltha-helm-charts/examples/${serviceConfigFile}-values.yaml" |
| 79 | // NOTE we assume that the only service that needs a different s_tag is the first one in the list |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 80 | bbsimCfg['servicesConfig']['services'][0]['s_tag'] = startingStag + i |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 81 | println "Using BBSim Service config ${bbsimCfg['servicesConfig']}" |
| 82 | writeYaml file: "$WORKSPACE/bbsimCfg${cfg.stackId}${i}.yaml", data: bbsimCfg |
| 83 | } else { |
| 84 | // NOTE if it's DT just copy the file over |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 85 | sh(label : 'DT install', |
| 86 | script : """ |
| 87 | cp $WORKSPACE/voltha-helm-charts/examples/${cfg.workflow}-values.yaml \ |
| 88 | $WORKSPACE/bbsimCfg${cfg.stackId}${i}.yaml |
| 89 | """) |
| 90 | } // if (cfg) |
| 91 | } // script |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 92 | |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 93 | sh(label : "HELM: Create namespace=${cfg.volthaNamespace} bbsim${i}", |
| 94 | script : """ |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 95 | helm upgrade --install --create-namespace -n ${cfg.volthaNamespace} bbsim${i} ${cfg.bbsimChart} \ |
Matteo Scandolo | 0ce69f1 | 2021-05-04 08:44:53 -0700 | [diff] [blame] | 96 | --set olt_id="${cfg.stackId}${i}" \ |
| 97 | -f $WORKSPACE/bbsimCfg${cfg.stackId}${i}.yaml \ |
| 98 | ${cfg.extraHelmFlags} |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 99 | """) |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 100 | } // for |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 101 | |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 102 | leave('deployVolthaStack') |
| 103 | return |
| 104 | } |
Matteo Scandolo | 937f479 | 2021-09-24 11:05:52 -0700 | [diff] [blame] | 105 | |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 106 | // ----------------------------------------------------------------------- |
| 107 | // Intent: Wait until the pod completed, meaning ONOS fully deployed |
| 108 | // ----------------------------------------------------------------------- |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 109 | // Todo: Move logic like this into a standalone script. |
| 110 | // Use jenkins stash or native JJB logic to publish out to nodes. |
| 111 | // ----------------------------------------------------------------------- |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 112 | void launchVolthaStack(Map cfg) { |
| 113 | enter('launchVolthaStack') |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 114 | |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 115 | /* ----------------------------------------------------------------------- |
| 116 | * % kubectl get pods |
| 117 | 17:40:15 bbsim0-868479698c-z66mk 0/1 ContainerCreating 0 6s |
| 118 | 17:40:15 voltha-voltha-adapter-openolt-68c84bf786-z98rh 0/1 Running 0 8s |
| 119 | |
| 120 | * % kubectl port-forward --address 0.0.0.0 |
| 121 | 17:40:15 error: unable to forward port because pod is not running. Current status=Pending |
| 122 | * ----------------------------------------------------------------------- |
| 123 | */ |
| 124 | sh(label : "Wait for VOLTHA Stack (stack=${cfg.stackName}, namespace=${cfg.volthaNamespace}) to start", |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 125 | script : """ |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 126 | |
| 127 | cat <<EOM |
| 128 | |
| 129 | ** ----------------------------------------------------------------------- |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 130 | ** Wait for VOLTHA Stack (stack=${cfg.stackName}, namespace=${cfg.volthaNamespace}) to start |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 131 | ** ----------------------------------------------------------------------- |
| 132 | EOM |
| 133 | |
| 134 | # set -euo pipefail |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 135 | set +x # # Logs are noisy when commented |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 136 | |
| 137 | declare -i count=0 |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 138 | declare -i debug=1 # uncomment to enable debugging |
| 139 | # declare -i verbose=1 # uncomment to enable debugging |
Joey Armstrong | 8da0894 | 2023-09-14 13:52:49 -0400 | [diff] [blame] | 140 | vsd_log='volthaStackDeploy.tmp' |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 141 | touch \$vsd_log |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 142 | |
Joey Armstrong | cfb8594 | 2023-09-15 11:47:02 -0400 | [diff] [blame] | 143 | declare -i rc=0 # exit status |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 144 | while true; do |
| 145 | |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 146 | # Gather |
| 147 | kubectl get pods -n ${cfg.volthaNamespace} \ |
| 148 | -l app.kubernetes.io/part-of=voltha --no-headers \ |
| 149 | > \$vsd_log |
| 150 | |
| 151 | count=\$((\$count - 1)) |
| 152 | |
| 153 | # Display activity every iteration ? |
| 154 | [[ -v verbose ]] && { count=0; } |
| 155 | |
| 156 | # Display activity every minute or so {sleep(5) x count=10} |
| 157 | if [[ \$count -lt 1 ]]; then |
| 158 | count=10 |
| 159 | cat \$vsd_log |
| 160 | fi |
| 161 | |
| 162 | ## ----------------------- |
| 163 | ## Probe for cluster state |
| 164 | ## ----------------------- |
| 165 | if grep -q -e 'ContainerCreating' \$vsd_log; then |
| 166 | echo -e '\nvolthaStackDeploy.groovy: ContainerCrating active' |
| 167 | [[ -v debug ]] && grep -e 'ContainerCreating' \$vsd_log |
Joey Armstrong | cfb8594 | 2023-09-15 11:47:02 -0400 | [diff] [blame] | 168 | |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 169 | elif grep -q -e '0/' \$vsd_log; then |
| 170 | echo -e '\nvolthaStackDeploy.groovy: Waiting for status=Running' |
| 171 | [[ -v debug ]] && grep -e '0/' \$vsd_log |
Joey Armstrong | cfb8594 | 2023-09-15 11:47:02 -0400 | [diff] [blame] | 172 | |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 173 | elif ! grep -q '/' \$vsd_log; then |
| 174 | echo -e '\nvolthaStackDeploy.groovy: Waiting for initial pod activity' |
| 175 | [[ ! -v verbose ]] && { cat \$vsd_log; } |
Joey Armstrong | cfb8594 | 2023-09-15 11:47:02 -0400 | [diff] [blame] | 176 | |
| 177 | # ----------------------------------------------------------------------- |
| 178 | # voltha-adapter-openolt-68c84bf786-8xsfc 0/1 CrashLoopBackOff 2 69s |
| 179 | # voltha-adapter-openolt-68c84bf786-8xsfc 0/1 Error 3 85s |
| 180 | # ----------------------------------------------------------------------- |
| 181 | elif grep -q 'Error' \$vsd_log; then |
| 182 | echo -e '\nvolthaStackDeploy.groovy: Detected cluster state=Error' |
| 183 | cat \$vsd_log |
| 184 | rc=1 # fatal |
| 185 | break |
| 186 | |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 187 | # ----------------------------------------------------------------------- |
| 188 | # An extra conditon needed here but shell coding is tricky: |
| 189 | # "svc x/y Running 0 6s |
| 190 | # Verify (x == y) && (x > 0) |
| 191 | # Wait until job failure/we have an actual need for it. |
| 192 | # ----------------------------------------------------------------------- |
| 193 | else |
| 194 | echo -e '\nvolthaStackDeploy.groovy: Voltha stack has launched' |
| 195 | [[ ! -v verbose ]] && { cat \$vsd_log; } |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 196 | break |
| 197 | fi |
| 198 | |
Joey Armstrong | 358f224 | 2023-09-15 09:49:21 -0400 | [diff] [blame] | 199 | ## Support argument --timeout (?) |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 200 | sleep 5 |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 201 | |
| 202 | done |
| 203 | rm -f \$vsd_log |
Joey Armstrong | cfb8594 | 2023-09-15 11:47:02 -0400 | [diff] [blame] | 204 | exit \$rc |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 205 | """) |
Joey Armstrong | 96158a9 | 2022-11-25 10:36:06 -0500 | [diff] [blame] | 206 | |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 207 | leave('launchVolthaStack') |
| 208 | return |
| 209 | } |
| 210 | |
| 211 | // ----------------------------------------------------------------------- |
Joey Armstrong | 8d12f65 | 2023-09-13 18:25:33 -0400 | [diff] [blame] | 212 | // Intent: Wait until the pod completed, meaning ONOS fully deployed |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 213 | // ----------------------------------------------------------------------- |
Joey Armstrong | 8d12f65 | 2023-09-13 18:25:33 -0400 | [diff] [blame] | 214 | void waitForOnosDeploy(Map cfg) { |
| 215 | enter('waitForOnosDeploy') |
| 216 | |
| 217 | sh(label : 'Wait for ONOS full deployment', |
| 218 | Scriptx : """ |
| 219 | |
| 220 | cat <<EOM |
| 221 | |
| 222 | ** ----------------------------------------------------------------------- |
| 223 | ** Wait for ONOS full deployment |
| 224 | ** ----------------------------------------------------------------------- |
| 225 | EOM |
| 226 | |
| 227 | # set -euo pipefail |
| 228 | set +x # # Noisy when commented (default: uncommented) |
| 229 | |
| 230 | declare -i count=0 |
Joey Armstrong | 8da0894 | 2023-09-14 13:52:49 -0400 | [diff] [blame] | 231 | vsd_log='volthaStackDeploy.tmp' |
Joey Armstrong | 8d12f65 | 2023-09-13 18:25:33 -0400 | [diff] [blame] | 232 | touch \$vsd_log |
| 233 | while true; do |
| 234 | |
| 235 | ## Exit when the server begins showing signs of life |
| 236 | if grep -q '0/' \$vsd_log; then |
| 237 | echo 'volthaStackDeploy.groovy: Detected kubectl pods =~ 0/' |
| 238 | grep '0/' \$vsd_log |
| 239 | break |
| 240 | fi |
| 241 | |
| 242 | sleep 5 |
| 243 | count=\$((\$count - 1)) |
| 244 | |
| 245 | if [[ \$count -lt 1 ]]; then # [DEBUG] Display activity every minute or so |
| 246 | count=10 |
| 247 | kubectl get pods -l app=onos-config-loader \ |
| 248 | -n ${cfg.infraNamespace} --no-headers \ |
| 249 | --field-selector=status.phase=Running \ |
| 250 | | tee \$vsd_log |
| 251 | else |
| 252 | kubectl get pods -l app=onos-config-loader \ |
| 253 | -n ${cfg.infraNamespace} --no-headers \ |
| 254 | --field-selector=status.phase=Running \ |
| 255 | > \$vsd_log |
| 256 | fi |
| 257 | |
| 258 | done |
| 259 | rm -f \$vsd_log |
| 260 | """) |
| 261 | |
| 262 | leave('waitForOnosDeploy') |
| 263 | return |
| 264 | } |
| 265 | |
| 266 | // ----------------------------------------------------------------------- |
| 267 | // ----------------------------------------------------------------------- |
| 268 | void process(Map config) { |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 269 | enter('process') |
| 270 | |
| 271 | // note that I can't define this outside the function as there's no global scope in Groovy |
| 272 | Map defaultConfig = [ |
| 273 | bbsimReplica: 1, |
| 274 | infraNamespace: 'infra', |
| 275 | volthaNamespace: 'voltha', |
| 276 | stackName: 'voltha', |
| 277 | stackId: 1, // NOTE this is used to differentiate between BBSims across multiple stacks |
| 278 | workflow: 'att', |
| 279 | withMacLearning: false, |
| 280 | withFttb: false, |
| 281 | extraHelmFlags: '', |
| 282 | localCharts: false, |
| 283 | onosReplica: 1, |
| 284 | adaptersToWait: 2, |
| 285 | ] |
| 286 | |
| 287 | Map cfg = defaultConfig + config |
| 288 | |
| 289 | // Augment config map |
| 290 | cfg.volthaStackChart = 'onf/voltha-stack' |
| 291 | cfg.bbsimChart = 'onf/bbsim' |
| 292 | |
| 293 | if (cfg.localCharts) { |
| 294 | cfg.volthaStackChart = "$WORKSPACE/voltha-helm-charts/voltha-stack" |
| 295 | cfg.bbsimChart = "$WORKSPACE/voltha-helm-charts/bbsim" |
| 296 | |
| 297 | sh(label : 'HELM: Update voltha-stack deps', |
| 298 | script : """ |
| 299 | pushd $WORKSPACE/voltha-helm-charts/voltha-stack |
| 300 | helm dep update |
| 301 | popd |
| 302 | """) |
| 303 | } |
| 304 | |
| 305 | println "Deploying VOLTHA Stack with the following parameters: ${cfg}." |
| 306 | deployVolthaStack(cfg) |
| 307 | launchVolthaStack(cfg) |
| 308 | waitForAdapters(cfg) |
Joey Armstrong | 8d12f65 | 2023-09-13 18:25:33 -0400 | [diff] [blame] | 309 | waitForOnosDeploy(cfg) |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 310 | leave('process') |
Joey Armstrong | e93c3fa | 2023-09-11 09:34:24 -0400 | [diff] [blame] | 311 | |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 312 | return |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 313 | } |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 314 | |
| 315 | // ----------------------------------------------------------------------- |
| 316 | // ----------------------------------------------------------------------- |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 317 | def call(Map config=[:]) { |
| 318 | try { |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 319 | enter('main') |
| 320 | process(config) |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 321 | } |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 322 | catch (Exception err) { // groovylint-disable-line CatchException |
| 323 | ans = false |
| 324 | println("** volthaStackDeploy.groovy: EXCEPTION ${err}") |
| 325 | throw err |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 326 | } |
Joey Armstrong | cd3f075 | 2023-09-11 18:10:12 -0400 | [diff] [blame] | 327 | finally { |
Joey Armstrong | 74ec08c | 2023-08-31 11:25:57 -0400 | [diff] [blame] | 328 | leave('main') |
Joey Armstrong | 7987c11 | 2022-12-05 12:42:43 -0500 | [diff] [blame] | 329 | } |
| 330 | return |
| 331 | } |
| 332 | |
| 333 | // [EOF] |