X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fci-pipelines%2Fci_helper.groovy;h=4f1d32daf9c14499e48aa421dd1e3159aa9dd78a;hb=11a8a1e472867d2246228217f6736675e905c5d1;hp=0b41169daf213fe01eae66a7768f09b38c33f9f3;hpb=968966bb572960e23df77d6a3c93a52bc7ef85a3;p=osm%2Fdevops.git diff --git a/jenkins/ci-pipelines/ci_helper.groovy b/jenkins/ci-pipelines/ci_helper.groovy index 0b41169d..4f1d32da 100644 --- a/jenkins/ci-pipelines/ci_helper.groovy +++ b/jenkins/ci-pipelines/ci_helper.groovy @@ -39,15 +39,15 @@ def get_archive(artifactory_server, mdg, branch, build_name, build_number, patte def results = server.download(downloadSpec) // Save the list of URLs that we need to pass to the dockerfiles for build def debian_packages = [] - for ( result in results.getDependencies()) { + for ( result in results.getDependencies() ) { if (result.remotePath.contains(".deb")) { debian_packages.add(result.remotePath) } } // workaround. flatten repo to remove specific build num from the directory - sh "cp -R ${branch}/${build_number}/* ." - sh "rm -rf ${branch}/${build_number}" + sh "cp -Rv ${branch}/${build_number}/* ." + sh "rm -rfv ${branch}/${build_number}" return debian_packages }