diff --git a/vars/tamarin.groovy b/vars/tamarin.groovy index 308c876..5889da8 100644 --- a/vars/tamarin.groovy +++ b/vars/tamarin.groovy @@ -33,11 +33,13 @@ def buildPackageWithCPKG( writeFile file: '.tamarinrc', text: tamarinrc stage("Build ${packageEnv} package (version ${packageVersion}) for ${packageDistrib}") { + sh "rm -rf ${destDir}/*" buildPackage(packageProfile, packageArch, baseImage, destDir, forceRebuild) + if (publishPackages) { stage("Publish ${packageEnv} packages (version ${packageVersion}) on Vulcain") { - vulcain.publish(destDir, packageEnv, env.BRANCH_NAME) + vulcain.publish(destDir, packageEnv, packageDistrib.replace('-', '/')) } } }