Skip to content
Snippets Groups Projects
Commit 7b4a7589 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

chore(ci): removing the RAN temporary image when done

parent bda3f266
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,7 @@ boolean testStart0 = true ...@@ -69,6 +69,7 @@ boolean testStart0 = true
boolean testStart1 = true boolean testStart1 = true
boolean testStop0 = true boolean testStop0 = true
boolean testStop1 = true boolean testStop1 = true
boolean pulledImage = false
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------
// Pipeline start // Pipeline start
...@@ -268,6 +269,9 @@ pipeline { ...@@ -268,6 +269,9 @@ pipeline {
testStart1 = false testStart1 = false
testStop0 = false testStop0 = false
testStop1 = false testStop1 = false
if (pulledImage) {
sh "docker rmi ${ranFullImage} || true"
}
} }
} }
} }
...@@ -341,6 +345,9 @@ pipeline { ...@@ -341,6 +345,9 @@ pipeline {
sh "docker-compose down -t 3 || true" sh "docker-compose down -t 3 || true"
} }
deployedGNB = false deployedGNB = false
if (pulledImage) {
sh "docker rmi ${ranFullImage} || true"
}
} }
} }
} }
...@@ -599,6 +606,7 @@ def checkAndPullRanImage (ranFullImage) { ...@@ -599,6 +606,7 @@ def checkAndPullRanImage (ranFullImage) {
if (ranFullImage.contains('porcepix')) { if (ranFullImage.contains('porcepix')) {
sh 'docker logout porcepix.sboai.cs.eurecom.fr' sh 'docker logout porcepix.sboai.cs.eurecom.fr'
} }
pulledImage = true
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment