Fix logs before removing repo 03/12703/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 18 Nov 2022 08:54:00 +0000 (09:54 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 18 Nov 2022 12:38:53 +0000 (13:38 +0100)
Change-Id: I2ab85cbb8ee7de1f761ed357dd0ec388009c5852
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
jenkins/ci-pipelines/ci_stage_3.groovy

index 3f1190f..4e08254 100644 (file)
@@ -215,10 +215,11 @@ node("${params.NODE}") {
 ///////////////////////////////////////////////////////////////////////////////////////
         stage('Copy Artifacts') {
             // cleanup any previous repo
-            sh "pwd"
-            sh "tree -fD repo"
-            sh "lsof repo"
-            sh "rm -rfv repo"
+            println("Logging system info before deleting repo.")
+            sh("pwd")
+            sh("tree -fD repo")
+            println("Trying to delete previous repo...")
+            sh("rm -rfv repo")
             dir('repo') {
                 packageList = []
                 dir("${RELEASE}") {