From a07a5abab74746876e0a2fd30838814cad6dc267 Mon Sep 17 00:00:00 2001 From: beierlm Date: Tue, 19 Jan 2021 10:02:22 -0500 Subject: [PATCH] Ensure clean snap Issues a snapcraft clean to make sure there is nothing left from any prior runs of the build. Change-Id: I42109d8b4a750c0a4732afcf127cc407e6956ec9 Signed-off-by: beierlm --- jenkins/ci-pipelines/ci_stage_2.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/jenkins/ci-pipelines/ci_stage_2.groovy b/jenkins/ci-pipelines/ci_stage_2.groovy index aa9c906a..5cad17b0 100644 --- a/jenkins/ci-pipelines/ci_stage_2.groovy +++ b/jenkins/ci-pipelines/ci_stage_2.groovy @@ -83,6 +83,7 @@ def ci_pipeline(mdg,url_prefix,project,branch,refspec,revision,do_stage_3,artifa stage('Snap build') { sh "docker pull snapcore/snapcraft:stable" sh "sudo rm -rf ${WORKSPACE}/stage/ ${WORKSPACE}/parts/ ${WORKSPACE}/prime/ ${WORKSPACE}/*.snap" + sh "sudo snapcraft clean --use-lxd" sh "snapcraft --use-lxd" sh "mv ${WORKSPACE}/${mdg}_*.snap ${WORKSPACE}/${mdg}.snap" sh "sudo rm -rf ${WORKSPACE}/stage/ ${WORKSPACE}/parts/ ${WORKSPACE}/prime/" -- 2.17.1