- server.download(downloadSpec)
- // workaround. flatten and repo the specific build num from the directory
- sh "cp -R ${build_num}/* ."
- sh "rm -rf ${build_num}"
+ 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()) {
+ 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}"
+
+ return debian_packages