diff --git a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy index e550d02e..d36e22fe 100644 --- a/first-class-pipeline/vars/executeFreeleapsPipeline.groovy +++ b/first-class-pipeline/vars/executeFreeleapsPipeline.groovy @@ -320,7 +320,7 @@ def generateComponentStages(component, configurations) { } component.buildArtifacts.each { artifact -> log.info("Pipeline", "Stashing artifact ${artifact} for ${component.name}...") - def artifactList = sh(script: "ls -al", returnStdout: true) + def artifactList = sh(script: "ls ${artifact} -al", returnStdout: true) log.info("Pipeline", "Artifacts list: ${artifactList}") def targetPathType = sh( script: """ @@ -335,7 +335,7 @@ def generateComponentStages(component, configurations) { returnStdout: true ) if (artifact == '.' || artifact == './') { - stash includes: "./**", name: "${component.name}-root" + stash includes: "", name: "${component.name}-root" } else if (targetPathType.trim() == "dir") { stash includes: "${artifact}/**", name: "${component.name}-${artifact}" } else {