blob: f26c417a9527156aabf6bc9f2f2199dcadd7af6c [file] [log] [blame]
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -07001// Copyright 2017-present Open Networking Foundation
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
Matteo Scandolo0d0f2902021-07-15 16:16:33 -070015library identifier: 'cord-jenkins-libraries@master',
16 retriever: modernSCM([
17 $class: 'GitSCMSource',
18 remote: 'https://gerrit.opencord.org/ci-management.git'
19])
20
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -070021node {
22 // Need this so that deployment_config has global scope when it's read later
23 deployment_config = null
24}
25
Hardik Windlass7e4e3152021-09-29 06:42:05 +000026def infraNamespace = "infra"
27def volthaNamespace = "voltha"
28
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -070029pipeline {
30 /* no label, executor is determined by JJB */
31 agent {
32 label "${params.buildNode}"
33 }
34 options {
Hardik Windlassd0f01662021-09-03 08:07:15 +000035 timeout(time: "${timeout}", unit: 'MINUTES')
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -070036 }
37
38 environment {
39 KUBECONFIG="$WORKSPACE/${configBaseDir}/${configKubernetesDir}/${configFileName}.conf"
40 VOLTCONFIG="$HOME/.volt/config-minimal"
41 PATH="$WORKSPACE/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
42 }
43
44 stages {
Matteo Scandolo3dce2a12020-09-15 14:21:14 -070045 stage('Clone voltha-system-tests') {
46 steps {
Matteo Scandolo67842812021-07-13 16:52:13 -070047 step([$class: 'WsCleanup'])
Matteo Scandolo3dce2a12020-09-15 14:21:14 -070048 checkout([
49 $class: 'GitSCM',
50 userRemoteConfigs: [[
51 url: "https://gerrit.opencord.org/voltha-system-tests",
Matteo Scandoloa42c6f52020-09-19 01:35:12 +000052 refspec: "${volthaSystemTestsChange}"
Matteo Scandolo3dce2a12020-09-15 14:21:14 -070053 ]],
Suchitra Vemuri1143ae32021-03-26 01:08:37 +000054 branches: [[ name: "${branch}", ]],
Matteo Scandolo3dce2a12020-09-15 14:21:14 -070055 extensions: [
56 [$class: 'WipeWorkspace'],
57 [$class: 'RelativeTargetDirectory', relativeTargetDir: "voltha-system-tests"],
58 [$class: 'CloneOption', depth: 0, noTags: false, reference: '', shallow: false],
59 ],
60 ])
Suchitra Vemuria38e5412021-02-23 15:28:28 -080061 script {
62 sh(script:"""
63 if [ '${volthaSystemTestsChange}' != '' ] ; then
64 cd $WORKSPACE/voltha-system-tests;
65 git fetch https://gerrit.opencord.org/voltha-system-tests ${volthaSystemTestsChange} && git checkout FETCH_HEAD
66 fi
67 """)
68 }
Matteo Scandolo3dce2a12020-09-15 14:21:14 -070069 }
70 }
Matteo Scandolo92a5cb62020-09-15 16:02:08 -070071 // This checkout allows us to show changes in Jenkins
72 // we only do this on master as we don't branch all the repos for all the releases
73 // (we should compute the difference by tracking the container version, not the code)
74 stage('Download All the VOLTHA repos') {
75 when {
76 expression {
77 return "${branch}" == 'master';
78 }
79 }
80 steps {
81 checkout(changelog: true,
82 poll: false,
83 scm: [$class: 'RepoScm',
84 manifestRepositoryUrl: "${params.manifestUrl}",
85 manifestBranch: "${params.branch}",
86 currentBranch: true,
87 destinationDir: 'voltha',
88 forceSync: true,
89 resetFirst: true,
90 quiet: true,
91 jobs: 4,
92 showAllChanges: true]
93 )
94 }
95 }
Matteo Scandolo3dce2a12020-09-15 14:21:14 -070096 stage ('Initialize') {
97 steps {
Hardik Windlass6f854a12021-07-12 13:20:21 +000098 sh returnStdout: false, script: "git clone -b ${branch} ${cordRepoUrl}/${configBaseDir}"
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -070099 script {
100 deployment_config = readYaml file: "${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
101 }
Hardik Windlass9658cd22021-10-25 11:13:25 +0000102 installVoltctl("${branch}")
Andrea Campanella9274f7d2021-11-18 15:42:06 -0800103 sh """
104 ps -ef | grep port-forward
105 """
106
107 sh returnStdout: false, script: '''
108 # remove orphaned port-forward from different namespaces
109 ps aux | grep port-forw | grep -v grep | awk '{print $2}' | xargs --no-run-if-empty kill -9 || true
110 '''
111 sh """
112 JENKINS_NODE_COOKIE="dontKillMe" _TAG="voltha-api" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${volthaNamespace} svc/voltha-voltha-api 55555:55555; done"&
113 JENKINS_NODE_COOKIE="dontKillMe" _TAG="etcd" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${infraNamespace} svc/voltha-infra-etcd ${params.VolthaEtcdPort}:2379; done"&
114 JENKINS_NODE_COOKIE="dontKillMe" _TAG="kafka" bash -c "while true; do kubectl port-forward --address 0.0.0.0 -n ${infraNamespace} svc/voltha-infra-kafka 9092:9092; done"&
115 ps aux | grep port-forward
116 """
117 sh """
118 ps -ef | grep port-forward
119 """
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700120 sh returnStdout: false, script: """
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700121 mkdir -p $WORKSPACE/bin
Hardik Windlass9658cd22021-10-25 11:13:25 +0000122 # download kail
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700123 bash <( curl -sfL https://raw.githubusercontent.com/boz/kail/master/godownloader.sh) -b "$WORKSPACE/bin"
Matteo Scandolo3fbb0652020-07-22 08:50:02 -0700124
Andrea Campanella9b234332020-04-24 12:22:18 +0200125 # Default kind-voltha config doesn't work on ONF demo pod for accessing kvstore.
126 # The issue is that the mgmt node is also one of the k8s nodes and so port forwarding doesn't work.
127 # We should change this. In the meantime here is a workaround.
Suchitra Vemuri13421432020-06-05 17:34:33 -0700128 set +e
Andrea Campanella9b234332020-04-24 12:22:18 +0200129
Andrea Campanella9b234332020-04-24 12:22:18 +0200130
131 # Remove noise from voltha-core logs
Suchitra Vemuria2a7f2c2020-06-08 14:05:06 -0700132 voltctl log level set WARN read-write-core#github.com/opencord/voltha-go/db/model
133 voltctl log level set WARN read-write-core#github.com/opencord/voltha-lib-go/v3/pkg/kafka
Andrea Campanella9b234332020-04-24 12:22:18 +0200134 # Remove noise from openolt logs
Suchitra Vemuria2a7f2c2020-06-08 14:05:06 -0700135 voltctl log level set WARN adapter-open-olt#github.com/opencord/voltha-lib-go/v3/pkg/db
136 voltctl log level set WARN adapter-open-olt#github.com/opencord/voltha-lib-go/v3/pkg/probe
137 voltctl log level set WARN adapter-open-olt#github.com/opencord/voltha-lib-go/v3/pkg/kafka
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700138 """
139 }
140 }
141
142 stage('Functional Tests') {
143 environment {
Suchitra Vemurie4a5bcc2020-03-16 12:43:03 -0700144 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700145 ROBOT_FILE="Voltha_DT_PODTests.robot"
Andrea Campanellad924ce22020-04-20 16:40:41 +0200146 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/dt-workflow/FunctionalTests"
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700147 }
148 steps {
149 sh """
Andrea Campanella9274f7d2021-11-18 15:42:06 -0800150 ps -ef | grep port-forward
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700151 mkdir -p $ROBOT_LOGS_DIR
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530152 if [ ${params.withFttb} = false ]; then
153 if ( ${powerSwitch} ); then
154 export ROBOT_MISC_ARGS="--removekeywords wuks -i PowerSwitch -i sanityDt -i functionalDt -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
155 if ( ${powerCycleOlt} ); then
156 ROBOT_MISC_ARGS+=" -v power_cycle_olt:True"
157 fi
158 else
159 export ROBOT_MISC_ARGS="--removekeywords wuks -e PowerSwitch -i sanityDt -i functionalDt -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
160 fi
161 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace}"
162 make -C $WORKSPACE/voltha-system-tests voltha-dt-test || true
Suchitra Vemuri627786a2020-06-18 16:52:05 -0700163 fi
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530164 """
165 }
166 }
167
168 stage('FTTB Functional Tests') {
169 environment {
170 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
171 ROBOT_FILE="Voltha_DT_FTTB_Tests.robot"
172 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/dt-workflow/FunctionalTests"
173 }
174 steps {
175 sh """
176 mkdir -p $ROBOT_LOGS_DIR
177 if [ ${params.withFttb} = false ]; then
178 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -i sanityDtFttb -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE"
179 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace} -v has_dataplane:False"
180 make -C $WORKSPACE/voltha-system-tests voltha-dt-test || true
181 fi
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700182 """
183 }
184 }
Andrea Campanellad924ce22020-04-20 16:40:41 +0200185
Andrea Campanellaf47a1982020-04-21 11:53:31 +0200186 stage('Failure/Recovery Tests') {
187 environment {
188 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
189 ROBOT_FILE="Voltha_DT_FailureScenarios.robot"
190 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/dt-workflow/FailureScenarios"
191 }
192 steps {
193 sh """
Andrea Campanella9274f7d2021-11-18 15:42:06 -0800194 ps -ef | grep port-forward
Andrea Campanellaf47a1982020-04-21 11:53:31 +0200195 mkdir -p $ROBOT_LOGS_DIR
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530196 if [ ${params.withFttb} = false ]; then
197 if ( ${powerSwitch} ); then
198 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -i functionalDt -i PowerSwitch -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
199 else
200 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -i functionalDt -e PowerSwitch -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
201 fi
202 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace}"
203 make -C $WORKSPACE/voltha-system-tests voltha-dt-test || true
Andrea Campanellaf47a1982020-04-21 11:53:31 +0200204 fi
Andrea Campanellaf47a1982020-04-21 11:53:31 +0200205 """
206 }
207 }
208
Andy Bavier5ad87c92020-05-11 16:31:35 -0700209 stage('Dataplane Tests') {
210 environment {
Andy Bavier1541da82020-05-15 09:41:38 -0700211 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
Andy Bavier5ad87c92020-05-11 16:31:35 -0700212 ROBOT_FILE="Voltha_DT_PODTests.robot"
213 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/dt-workflow/DataplaneTests"
214 }
215 steps {
216 sh """
Andrea Campanella9274f7d2021-11-18 15:42:06 -0800217 ps -ef | grep port-forward
Andy Bavier5ad87c92020-05-11 16:31:35 -0700218 mkdir -p $ROBOT_LOGS_DIR
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530219 if [ ${params.withFttb} = false ]; then
220 export ROBOT_MISC_ARGS="--removekeywords wuks -i dataplaneDt -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
221 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace}"
222 make -C $WORKSPACE/voltha-system-tests voltha-dt-test || true
223 fi
Andy Bavier5ad87c92020-05-11 16:31:35 -0700224 """
225 }
226 }
Suchitra Vemuri5e8e7892020-09-14 16:04:12 -0700227 stage('HA Tests') {
228 environment {
229 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
230 ROBOT_FILE="Voltha_ONOSHATests.robot"
231 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/ONOSHAScenarios"
232 }
233 steps {
Matteo Scandolo67842812021-07-13 16:52:13 -0700234 sh """
Andrea Campanella9274f7d2021-11-18 15:42:06 -0800235 ps -ef | grep port-forward
Matteo Scandolo67842812021-07-13 16:52:13 -0700236 mkdir -p $ROBOT_LOGS_DIR
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530237 if [ ${params.withFttb} = false ]; then
238 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v workflow:${params.workFlow} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
239 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace}"
240 make -C $WORKSPACE/voltha-system-tests voltha-test || true
241 fi
Matteo Scandolo67842812021-07-13 16:52:13 -0700242 """
Suchitra Vemuri5e8e7892020-09-14 16:04:12 -0700243 }
244 }
Andy Bavier5ad87c92020-05-11 16:31:35 -0700245
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800246 stage('Multiple OLT Tests') {
247 environment {
248 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
249 ROBOT_FILE="Voltha_DT_MultiOLT_Tests.robot"
250 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/dt-workflow/MultipleOLTScenarios"
251 }
252 steps {
253 sh """
Andrea Campanella9274f7d2021-11-18 15:42:06 -0800254 ps -ef | grep port-forward
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800255 mkdir -p $ROBOT_LOGS_DIR
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530256 if [ ${params.withFttb} = false ]; then
257 if ( ${powerSwitch} ); then
258 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -i functionalDt -i PowerSwitch -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
259 else
260 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -i functionalDt -e PowerSwitch -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
261 fi
262 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace}"
263 make -C $WORKSPACE/voltha-system-tests voltha-dt-test || true
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800264 fi
Suchitra Vemuri0a9c8c62020-12-07 18:24:31 -0800265 """
266 }
267 }
268
269
Andrea Campanellad924ce22020-04-20 16:40:41 +0200270 stage('Error Scenario Tests') {
271 environment {
272 ROBOT_CONFIG_FILE="$WORKSPACE/${configBaseDir}/${configDeploymentDir}/${configFileName}-DT.yaml"
273 ROBOT_FILE="Voltha_ErrorScenarios.robot"
274 ROBOT_LOGS_DIR="$WORKSPACE/RobotLogs/dt-workflow/ErrorScenarios"
275 }
276 steps {
277 sh """
278 mkdir -p $ROBOT_LOGS_DIR
Hardik Windlassc97ceae2022-05-13 10:12:55 +0530279 if [ ${params.withFttb} = false ]; then
280 export ROBOT_MISC_ARGS="--removekeywords wuks -L TRACE -i functional -e bbsim -e notready -d $ROBOT_LOGS_DIR -v POD_NAME:${configFileName} -v workflow:${params.workFlow} -v KUBERNETES_CONFIGS_DIR:$WORKSPACE/${configBaseDir}/${configKubernetesDir} -v container_log_dir:$WORKSPACE -v OLT_ADAPTER_APP_LABEL:${oltAdapterAppLabel}"
281 ROBOT_MISC_ARGS+=" -v NAMESPACE:${volthaNamespace} -v INFRA_NAMESPACE:${infraNamespace}"
282 make -C $WORKSPACE/voltha-system-tests voltha-test || true
283 fi
Andrea Campanellad924ce22020-04-20 16:40:41 +0200284 """
285 }
Andrea Campanella71666372020-04-21 10:56:17 +0200286 }
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700287 }
288 post {
289 always {
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700290 getPodsInfo("$WORKSPACE/pods")
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700291 sh returnStdout: false, script: '''
292 set +e
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700293
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700294 # collect logs collected in the Robot Framework StartLogging keyword
295 cd $WORKSPACE
296 gzip *-combined.log || true
297 rm *-combined.log || true
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700298 '''
299 script {
300 deployment_config.olts.each { olt ->
Andrea Campanella0d3110c2021-01-20 12:25:45 +0100301 if (olt.type == null || olt.type == "" || olt.type == "openolt") {
302 sh returnStdout: false, script: """
303 sshpass -p ${olt.pass} scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${olt.user}@${olt.sship}:/var/log/openolt.log $WORKSPACE/openolt-${olt.sship}.log || true
304 sed -i 's/\\x1b\\[[0-9;]*[a-zA-Z]//g' $WORKSPACE/openolt-${olt.sship}.log # Remove escape sequences
305 sshpass -p ${olt.pass} scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${olt.user}@${olt.sship}:/var/log/dev_mgmt_daemon.log $WORKSPACE/dev_mgmt_daemon-${olt.sship}.log || true
306 sed -i 's/\\x1b\\[[0-9;]*[a-zA-Z]//g' $WORKSPACE/dev_mgmt_daemon-${olt.sship}.log # Remove escape sequences
307 sshpass -p ${olt.pass} scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${olt.user}@${olt.sship}:/var/log/startup.log $WORKSPACE/startup-${olt.sship}.log || true
308 sed -i 's/\\x1b\\[[0-9;]*[a-zA-Z]//g' $WORKSPACE/startup-${olt.sship}.log || true # Remove escape sequences
309 sshpass -p ${olt.pass} scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ${olt.user}@${olt.sship}:/var/log/openolt_process_watchdog.log $WORKSPACE/openolt_process_watchdog-${olt.sship}.log || true
310 sed -i 's/\\x1b\\[[0-9;]*[a-zA-Z]//g' $WORKSPACE/openolt_process_watchdog-${olt.sship}.log || true # Remove escape sequences
311 """
312 }
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700313 }
314 }
315 step([$class: 'RobotPublisher',
316 disableArchiveOutput: false,
317 logFileName: '**/log*.html',
318 otherFiles: '',
319 outputFileName: '**/output*.xml',
320 outputPath: 'RobotLogs',
321 passThreshold: 100,
322 reportFileName: '**/report*.html',
Andrea Campanellaabc09772021-06-16 12:08:57 +0200323 unstableThreshold: 0,
324 onlyCritical: true
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700325 ]);
Matteo Scandolo5e7bd1d2021-07-16 13:29:42 -0700326 archiveArtifacts artifacts: '**/*.log,**/*.gz,**/*.tgz,*.txt,pods/*.txt'
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700327 }
Suchitra Vemuri8d180ab2020-03-12 17:38:24 -0700328 }
329}