Added missing logic for apt pool, missing from commit 41165ed
Change-Id: I7ef809809c115f4af22f9435dd28ac0ec0669505
Signed-off-by: beierlm <mark.beierl@canonical.com>
///////////////////////////////////////////////////////////////////////////////////////
// Create APT repository
///////////////////////////////////////////////////////////////////////////////////////
- for ( component in [ "devops" ] ) {
- sh "mv ${component}/pool/${component} pool"
+ sh "mkdir -p pool"
+ for (component in [ "devops", "IM", "osmclient" ]) {
+ sh "ls -al ${component}/pool/"
+ sh "cp -r ${component}/pool/* pool/"
sh "dpkg-sig --sign builder -k ${GPG_KEY_NAME} pool/${component}/*"
sh "mkdir -p dists/${params.REPO_DISTRO}/${component}/binary-amd64/"
sh "apt-ftparchive packages pool/${component} > dists/${params.REPO_DISTRO}/${component}/binary-amd64/Packages"