Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 1 | // Copyright 2021-present Open Networking Foundation |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 15 | // voltha-2.x e2e tests for openonu-go |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 16 | // uses bbsim to simulate OLT/ONUs |
| 17 | |
Matteo Scandolo | a156b57 | 2021-02-04 11:52:18 -0800 | [diff] [blame] | 18 | library identifier: 'cord-jenkins-libraries@master', |
| 19 | retriever: modernSCM([ |
| 20 | $class: 'GitSCMSource', |
| 21 | remote: 'https://gerrit.opencord.org/ci-management.git' |
| 22 | ]) |
| 23 | |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 24 | def clusterName = "kind-ci" |
| 25 | |
Hardik Windlass | 60fc0da | 2021-10-14 07:02:40 +0000 | [diff] [blame] | 26 | def execute_test(testTarget, workflow, testLogging, teardown, testSpecificHelmFlags = "") { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 27 | def infraNamespace = "default" |
| 28 | def volthaNamespace = "voltha" |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 29 | def logsDir = "$WORKSPACE/${testTarget}" |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 30 | stage('Cleanup') { |
| 31 | if (teardown) { |
| 32 | timeout(15) { |
| 33 | script { |
| 34 | helmTeardown(["default", infraNamespace, volthaNamespace]) |
| 35 | } |
| 36 | timeout(1) { |
| 37 | sh returnStdout: false, script: ''' |
| 38 | # remove orphaned port-forward from different namespaces |
| 39 | ps aux | grep port-forw | grep -v grep | awk '{print $2}' | xargs --no-run-if-empty kill -9 || true |
| 40 | ''' |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | } |
Hardik Windlass | e166049 | 2022-03-14 15:12:46 +0000 | [diff] [blame] | 45 | stage('Deploy common infrastructure') { |
| 46 | sh ''' |
| 47 | helm repo add onf https://charts.opencord.org |
| 48 | helm repo update |
| 49 | if [ ${withMonitoring} = true ] ; then |
| 50 | helm install nem-monitoring onf/nem-monitoring \ |
| 51 | --set prometheus.alertmanager.enabled=false,prometheus.pushgateway.enabled=false \ |
| 52 | --set kpi_exporter.enabled=false,dashboards.xos=false,dashboards.onos=false,dashboards.aaa=false,dashboards.voltha=false |
| 53 | fi |
| 54 | ''' |
| 55 | } |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 56 | stage('Deploy Voltha') { |
| 57 | if (teardown) { |
Matteo Scandolo | ea6348e | 2021-06-10 18:44:58 +0200 | [diff] [blame] | 58 | timeout(10) { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 59 | script { |
| 60 | |
| 61 | sh """ |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 62 | mkdir -p ${logsDir} |
| 63 | _TAG=kail-startup kail -n ${infraNamespace} -n ${volthaNamespace} > ${logsDir}/onos-voltha-startup-combined.log & |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 64 | """ |
| 65 | |
| 66 | // if we're downloading a voltha-helm-charts patch, then install from a local copy of the charts |
| 67 | def localCharts = false |
Matteo Scandolo | ea6348e | 2021-06-10 18:44:58 +0200 | [diff] [blame] | 68 | if (volthaHelmChartsChange != "" || gerritProject == "voltha-helm-charts") { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 69 | localCharts = true |
| 70 | } |
| 71 | |
| 72 | // NOTE temporary workaround expose ONOS node ports |
Andrea Campanella | 9e41a60 | 2021-09-14 14:45:11 +0200 | [diff] [blame] | 73 | def localHelmFlags = extraHelmFlags.trim() + " --set global.log_level=${logLevel.toUpperCase()} " + |
Matteo Scandolo | 9114c89 | 2021-05-20 11:41:55 -0700 | [diff] [blame] | 74 | " --set onos-classic.onosSshPort=30115 " + |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 75 | " --set onos-classic.onosApiPort=30120 " + |
| 76 | " --set onos-classic.onosOfPort=31653 " + |
| 77 | " --set onos-classic.individualOpenFlowNodePorts=true " + testSpecificHelmFlags |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 78 | |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 79 | if (gerritProject != "") { |
| 80 | localHelmFlags = "${localHelmFlags} " + getVolthaImageFlags("${gerritProject}") |
| 81 | } |
| 82 | |
| 83 | volthaDeploy([ |
| 84 | infraNamespace: infraNamespace, |
| 85 | volthaNamespace: volthaNamespace, |
| 86 | workflow: workflow.toLowerCase(), |
Hardik Windlass | 2b16434 | 2022-02-28 03:50:48 +0000 | [diff] [blame] | 87 | withMacLearning: enableMacLearning.toBoolean(), |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 88 | extraHelmFlags: localHelmFlags, |
| 89 | localCharts: localCharts, |
| 90 | bbsimReplica: olts.toInteger(), |
| 91 | dockerRegistry: registry, |
| 92 | ]) |
Matteo Scandolo | d17de3a | 2021-04-09 15:47:52 -0700 | [diff] [blame] | 93 | } |
Matteo Scandolo | fcfc60d | 2021-02-24 09:06:48 -0800 | [diff] [blame] | 94 | |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 95 | // stop logging |
Matteo Scandolo | d17de3a | 2021-04-09 15:47:52 -0700 | [diff] [blame] | 96 | sh """ |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 97 | P_IDS="\$(ps e -ww -A | grep "_TAG=kail-startup" | grep -v grep | awk '{print \$1}')" |
| 98 | if [ -n "\$P_IDS" ]; then |
| 99 | echo \$P_IDS |
| 100 | for P_ID in \$P_IDS; do |
| 101 | kill -9 \$P_ID |
| 102 | done |
| 103 | fi |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 104 | cd ${logsDir} |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 105 | gzip -k onos-voltha-startup-combined.log |
| 106 | rm onos-voltha-startup-combined.log |
Matteo Scandolo | d17de3a | 2021-04-09 15:47:52 -0700 | [diff] [blame] | 107 | """ |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 108 | } |
| 109 | sh """ |
| 110 | JENKINS_NODE_COOKIE="dontKillMe" _TAG="voltha-voltha-api" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${volthaNamespace} svc/voltha-voltha-api 55555:55555; done"& |
| 111 | JENKINS_NODE_COOKIE="dontKillMe" _TAG="voltha-infra-etcd" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${infraNamespace} svc/voltha-infra-etcd 2379:2379; done"& |
| 112 | JENKINS_NODE_COOKIE="dontKillMe" _TAG="voltha-infra-kafka" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${infraNamespace} svc/voltha-infra-kafka 9092:9092; done"& |
| 113 | bbsimDmiPortFwd=50075 |
| 114 | for i in {0..${olts.toInteger() - 1}}; do |
| 115 | JENKINS_NODE_COOKIE="dontKillMe" _TAG="bbsim\${i}" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${volthaNamespace} svc/bbsim\${i} \${bbsimDmiPortFwd}:50075; done"& |
| 116 | ((bbsimDmiPortFwd++)) |
| 117 | done |
Hardik Windlass | 3bb089a | 2022-03-22 17:56:03 +0000 | [diff] [blame] | 118 | if [ ${withMonitoring} = true ] ; then |
| 119 | JENKINS_NODE_COOKIE="dontKillMe" _TAG="nem-monitoring-prometheus-server" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n default svc/nem-monitoring-prometheus-server 31301:80; done"& |
| 120 | fi |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 121 | ps aux | grep port-forward |
| 122 | """ |
Matteo Scandolo | 35ac782 | 2021-10-28 18:08:54 -0700 | [diff] [blame] | 123 | // setting ONOS log level |
Matteo Scandolo | 9e8ba50 | 2021-11-17 13:56:56 -0800 | [diff] [blame] | 124 | script { |
| 125 | setOnosLogLevels([ |
| 126 | onosNamespace: infraNamespace, |
| 127 | apps: [ |
| 128 | 'org.opencord.dhcpl2relay', |
| 129 | 'org.opencord.olt', |
| 130 | 'org.opencord.aaa', |
Andrea Campanella | c076239 | 2022-03-11 15:01:13 +0100 | [diff] [blame] | 131 | 'org.opencord.maclearner', |
Matteo Scandolo | 9e8ba50 | 2021-11-17 13:56:56 -0800 | [diff] [blame] | 132 | 'org.onosproject.net.flowobjective.impl.FlowObjectiveManager', |
| 133 | 'org.onosproject.net.flowobjective.impl.InOrderFlowObjectiveManager' |
| 134 | ], |
| 135 | logLevel: logLevel |
| 136 | ]) |
| 137 | } |
Matteo Scandolo | d17de3a | 2021-04-09 15:47:52 -0700 | [diff] [blame] | 138 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 139 | } |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 140 | stage('Run test ' + testTarget + ' on ' + workflow + ' workFlow') { |
Hardik Windlass | 7294730 | 2021-06-14 10:36:57 +0000 | [diff] [blame] | 141 | sh """ |
Hardik Windlass | 8cd517c | 2022-03-22 04:01:40 +0000 | [diff] [blame] | 142 | if [ ${withMonitoring} = true ] ; then |
| 143 | mkdir -p $WORKSPACE/voltha-pods-mem-consumption-${workflow} |
| 144 | cd $WORKSPACE/voltha-system-tests |
| 145 | make vst_venv |
| 146 | source ./vst_venv/bin/activate || true |
| 147 | # Collect initial memory consumption |
| 148 | python scripts/mem_consumption.py -o $WORKSPACE/voltha-pods-mem-consumption-${workflow} -a 0.0.0.0:31301 -n ${volthaNamespace} || true |
| 149 | fi |
Hardik Windlass | e166049 | 2022-03-14 15:12:46 +0000 | [diff] [blame] | 150 | """ |
| 151 | sh """ |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 152 | mkdir -p ${logsDir} |
Hardik Windlass | d62442d | 2021-11-30 10:51:20 +0000 | [diff] [blame] | 153 | export ROBOT_MISC_ARGS="-d ${logsDir} ${params.extraRobotArgs} " |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 154 | ROBOT_MISC_ARGS+="-v ONOS_SSH_PORT:30115 -v ONOS_REST_PORT:30120 -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace} -v container_log_dir:${logsDir} -v logging:${testLogging}" |
Hardik Windlass | 7294730 | 2021-06-14 10:36:57 +0000 | [diff] [blame] | 155 | export KVSTOREPREFIX=voltha/voltha_voltha |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 156 | |
Hardik Windlass | 7294730 | 2021-06-14 10:36:57 +0000 | [diff] [blame] | 157 | make -C $WORKSPACE/voltha-system-tests ${testTarget} || true |
| 158 | """ |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 159 | getPodsInfo("${logsDir}") |
Hardik Windlass | dad8e5c | 2021-11-11 05:19:47 +0000 | [diff] [blame] | 160 | sh """ |
| 161 | set +e |
| 162 | # collect logs collected in the Robot Framework StartLogging keyword |
| 163 | cd ${logsDir} |
| 164 | gzip *-combined.log || true |
| 165 | rm *-combined.log || true |
| 166 | """ |
Hardik Windlass | 8cd517c | 2022-03-22 04:01:40 +0000 | [diff] [blame] | 167 | sh """ |
| 168 | if [ ${withMonitoring} = true ] ; then |
| 169 | cd $WORKSPACE/voltha-system-tests |
| 170 | source ./vst_venv/bin/activate || true |
| 171 | # Collect memory consumption of voltha pods once all the tests are complete |
| 172 | python scripts/mem_consumption.py -o $WORKSPACE/voltha-pods-mem-consumption-${workflow} -a 0.0.0.0:31301 -n ${volthaNamespace} || true |
| 173 | fi |
| 174 | """ |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 175 | } |
| 176 | } |
| 177 | |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 178 | def collectArtifacts(exitStatus) { |
| 179 | getPodsInfo("$WORKSPACE/${exitStatus}") |
| 180 | sh """ |
| 181 | kubectl logs -n voltha -l app.kubernetes.io/part-of=voltha > $WORKSPACE/${exitStatus}/voltha.log || true |
| 182 | """ |
Hardik Windlass | 8cd517c | 2022-03-22 04:01:40 +0000 | [diff] [blame] | 183 | archiveArtifacts artifacts: '**/*.log,**/*.gz,**/*.txt,**/*.html,**/voltha-pods-mem-consumption-att/*,**/voltha-pods-mem-consumption-dt/*,**/voltha-pods-mem-consumption-tt/*' |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 184 | sh ''' |
| 185 | sync |
| 186 | pkill kail || true |
| 187 | which voltctl |
| 188 | md5sum $(which voltctl) |
| 189 | ''' |
| 190 | step([$class: 'RobotPublisher', |
| 191 | disableArchiveOutput: false, |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 192 | logFileName: "**/*/log*.html", |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 193 | otherFiles: '', |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 194 | outputFileName: "**/*/output*.xml", |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 195 | outputPath: '.', |
| 196 | passThreshold: 100, |
Matteo Scandolo | 9c230bb | 2021-10-22 12:48:39 -0700 | [diff] [blame] | 197 | reportFileName: "**/*/report*.html", |
Andrea Campanella | abc0977 | 2021-06-16 12:08:57 +0200 | [diff] [blame] | 198 | unstableThreshold: 0, |
| 199 | onlyCritical: true]); |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 200 | } |
| 201 | |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 202 | pipeline { |
| 203 | |
| 204 | /* no label, executor is determined by JJB */ |
| 205 | agent { |
| 206 | label "${params.buildNode}" |
| 207 | } |
| 208 | options { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 209 | timeout(time: "${timeout}", unit: 'MINUTES') |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 210 | } |
| 211 | environment { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 212 | KUBECONFIG="$HOME/.kube/kind-${clusterName}" |
| 213 | VOLTCONFIG="$HOME/.volt/config" |
| 214 | PATH="$PATH:$WORKSPACE/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 215 | DIAGS_PROFILE="VOLTHA_PROFILE" |
Matteo Scandolo | 35ac782 | 2021-10-28 18:08:54 -0700 | [diff] [blame] | 216 | SSHPASS="karaf" |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 217 | } |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 218 | stages { |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 219 | stage('Download Code') { |
| 220 | steps { |
| 221 | getVolthaCode([ |
| 222 | branch: "${branch}", |
| 223 | gerritProject: "${gerritProject}", |
| 224 | gerritRefspec: "${gerritRefspec}", |
| 225 | volthaSystemTestsChange: "${volthaSystemTestsChange}", |
| 226 | volthaHelmChartsChange: "${volthaHelmChartsChange}", |
| 227 | ]) |
| 228 | } |
| 229 | } |
| 230 | stage('Build patch') { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 231 | // build the patch only if gerritProject is specified |
| 232 | when { |
| 233 | expression { |
| 234 | return !gerritProject.isEmpty() |
| 235 | } |
| 236 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 237 | steps { |
| 238 | // NOTE that the correct patch has already been checked out |
| 239 | // during the getVolthaCode step |
| 240 | buildVolthaComponent("${gerritProject}") |
| 241 | } |
| 242 | } |
| 243 | stage('Create K8s Cluster') { |
| 244 | steps { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 245 | script { |
| 246 | def clusterExists = sh returnStdout: true, script: """ |
| 247 | kind get clusters | grep ${clusterName} | wc -l |
| 248 | """ |
| 249 | if (clusterExists.trim() == "0") { |
| 250 | createKubernetesCluster([nodes: 3, name: clusterName]) |
| 251 | } |
| 252 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 253 | } |
| 254 | } |
Hardik Windlass | c6ba23e | 2021-06-08 08:19:52 +0000 | [diff] [blame] | 255 | stage('Replace voltctl') { |
| 256 | // if the project is voltctl override the downloaded one with the built one |
| 257 | when { |
| 258 | expression { |
| 259 | return gerritProject == "voltctl" |
| 260 | } |
| 261 | } |
| 262 | steps{ |
| 263 | sh """ |
| 264 | mv `ls $WORKSPACE/voltctl/release/voltctl-*-linux-amd*` $WORKSPACE/bin/voltctl |
| 265 | chmod +x $WORKSPACE/bin/voltctl |
| 266 | """ |
| 267 | } |
| 268 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 269 | stage('Load image in kind nodes') { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 270 | when { |
| 271 | expression { |
| 272 | return !gerritProject.isEmpty() |
| 273 | } |
| 274 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 275 | steps { |
| 276 | loadToKind() |
| 277 | } |
| 278 | } |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 279 | stage('Parse and execute tests') { |
| 280 | steps { |
| 281 | script { |
| 282 | def tests = readYaml text: testTargets |
| 283 | |
| 284 | for(int i = 0;i<tests.size();i++) { |
| 285 | def test = tests[i] |
| 286 | def target = test["target"] |
| 287 | def workflow = test["workflow"] |
| 288 | def flags = test["flags"] |
| 289 | def teardown = test["teardown"].toBoolean() |
Hardik Windlass | 24e275f | 2021-10-19 08:19:06 +0000 | [diff] [blame] | 290 | def logging = test["logging"].toBoolean() |
| 291 | def testLogging = 'False' |
| 292 | if (logging) { |
| 293 | testLogging = 'True' |
| 294 | } |
| 295 | println "Executing test ${target} on workflow ${workflow} with logging ${testLogging} and extra flags ${flags}" |
| 296 | execute_test(target, workflow, testLogging, teardown, flags) |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 297 | } |
| 298 | } |
Matteo Scandolo | 29597f0 | 2021-02-12 10:53:57 -0800 | [diff] [blame] | 299 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 300 | } |
| 301 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 302 | post { |
Matteo Scandolo | e543c4c | 2021-03-09 07:34:29 -0800 | [diff] [blame] | 303 | aborted { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 304 | collectArtifacts("aborted") |
Matteo Scandolo | e543c4c | 2021-03-09 07:34:29 -0800 | [diff] [blame] | 305 | } |
| 306 | failure { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 307 | collectArtifacts("failed") |
Matteo Scandolo | e543c4c | 2021-03-09 07:34:29 -0800 | [diff] [blame] | 308 | } |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 309 | always { |
Hardik Windlass | ec9341b | 2021-06-07 11:58:29 +0000 | [diff] [blame] | 310 | collectArtifacts("always") |
Matteo Scandolo | 42f6e57 | 2021-01-25 15:11:34 -0800 | [diff] [blame] | 311 | } |
| 312 | } |
| 313 | } |