fix(ci): fix typo in main pipeline

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
This commit is contained in:
Raphael Defosseux
2021-11-15 15:36:14 +01:00
parent 300af2c5ab
commit c29da837bd
2 changed files with 8 additions and 11 deletions
+6 -11
View File
@@ -246,17 +246,12 @@ pipeline {
script { script {
triggerSlaveJob ('RAN-DockerHub-Push', 'Push-to-Docker-Hub') triggerSlaveJob ('RAN-DockerHub-Push', 'Push-to-Docker-Hub')
} }
post { }
always { post {
script { failure {
echo "Push to Docker-Hub OK" script {
} echo "Push to Docker-Hub KO"
} currentBuild.result = 'FAILURE'
failure {
script {
echo "Push to Docker-Hub KO"
currentBuild.result = 'FAILURE'
}
} }
} }
} }
+2
View File
@@ -227,6 +227,8 @@ class Containerize():
if result is not None: if result is not None:
forceSharedImageBuild = True forceSharedImageBuild = True
sharedTag = 'ci-temp' sharedTag = 'ci-temp'
else:
forceSharedImageBuild = True
# Let's remove any previous run artifacts if still there # Let's remove any previous run artifacts if still there
mySSH.command(self.cli + ' image prune --force', '\$', 30) mySSH.command(self.cli + ' image prune --force', '\$', 30)