Commit 4ae0e91d authored by Guido Gunther's avatar Guido Gunther
Browse files

Make repo to use configurable

This would allow the plamo debs to go into a separate repo by
merely changing the YAML.
parent 60c8520d
......@@ -22,6 +22,9 @@ def default_archs = ['aarch64', 'armhf', 'amd64']
// Options to pass to git-buildpackage
def common_args = '--git-pbuilder --git-ignore-new --git-ignore-branch -nc'
// aptly repo to use
def default_repo = "scratch"
// All jobs will be generated in this folder
def folder = 'debs'
// The build nodes architecture
......@@ -45,6 +48,7 @@ pkgs.each { pkg ->
params.get('dists', default_dists).each { dist ->
name = folder + '/' + 'deb-' + pkg.key + '-' + dist + '-' + arch
branch = params.get('branch', os + '/' + dist)
aptly_repo = params.get('repo', default_repo)
if (native_archs.contains(arch)) {
arch_arg = ''
......@@ -71,8 +75,8 @@ pkgs.each { pkg ->
gbp buildpackage ${[arch_arg, dist_arg, common_args, dpkg_args].join(' ')}
""".stripIndent()
upload_cmd = """aptly repo add scratch ${uploads}
aptly publish update scratch
upload_cmd = """aptly repo add ${aptly_repo} ${uploads}
aptly publish update ${aptly_repo}
""".stripIndent()
build_node_label = "${os}-${arch}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment