Adding logging around repo 22/12722/1 v10.1.3 v10.1.4 v10.1.5
authorMark Beierl <mark.beierl@canonical.com>
Thu, 24 Nov 2022 19:25:25 +0000 (14:25 -0500)
committerMark Beierl <mark.beierl@canonical.com>
Thu, 24 Nov 2022 19:25:25 +0000 (14:25 -0500)
Adding some tree commands and lsof to check on the repo directory
as it does not always get removed properly

Change-Id: I961169a52c4d357c29fe6206e9314410ff5b0f6d
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index c428e08..05d795d 100644 (file)
@@ -200,7 +200,9 @@ node("${params.NODE}") {
 ///////////////////////////////////////////////////////////////////////////////////////
         stage("Copy Artifacts") {
             // cleanup any previous repo
-            sh 'rm -rf repo'
+            sh "tree -fD repo || exit 0"
+            sh 'rm -rvf repo'
+            sh "tree -fD repo && lsof repo || exit 0"
             dir("repo") {
                 packageList = []
                 dir("${RELEASE}") {
@@ -303,6 +305,8 @@ node("${params.NODE}") {
                 ci_helper.check_status_http_server(NODE_IP_ADDRESS, repo_port)
             }
 
+            sh "tree -fD repo"
+
             // Unpack devops package into temporary location so that we use it from upstream if it was part of a patch
             osm_devops_dpkg = sh(returnStdout: true, script: "find ./repo/release/pool/ -name osm-devops*.deb").trim()
             devopstempdir = sh(returnStdout: true, script: "mktemp -d").trim()