Commit ab03f76d authored by Guido Gunther's avatar Guido Gunther

blessed-byzantium: Bring up to par with ci_build.groovy

parent 04f9b525
......@@ -14,26 +14,17 @@
@Grab('org.yaml:snakeyaml:1.17')
import org.yaml.snakeyaml.Yaml
// The Operating system we build for. This is the first part
// of the git branch: ${os}/${dist}
def os = 'pureos'
// Default distribution to build for
def default_dists = ['landing']
// Default architectures to build for
def default_archs = ['aarch64']
// Our repo
def default_url_prefix = 'https://source.puri.sm/Librem5/'
// Options to pass to git-buildpackage
def default_build_args = '--git-no-create-orig --git-pbuilder --git-ignore-new --git-ignore-branch --jobs=auto -nc --build=full -sa'
def default_repo = "scratch"
def default_build_args = '--git-no-create-orig --git-pbuilder --git-ignore-new --git-ignore-branch -nc --build=full -sa'
// All jobs will be generated in this folder
def folder = 'debs-byzantium'
// Artifacts
def artifacts = '*.deb,*.changes,*.dsc,*.xz,*.gz'
def artifacts = '*.deb,*.changes,*.dsc,*.xz,*.gz,*.buildinfo'
// Signature (keyid) for signing the packages before upload
def pkg_gpg_keyid = '1CBB2345A7F02749' //jenkins@arm02.puri.sm
......@@ -44,7 +35,13 @@ def email_from = 'guido.gunther@puri.sm'
// Load jobs from YAML file
Yaml yaml = new Yaml()
def jobsfile = (new File(__FILE__)).parent + '/jobs.yml'
def basename = 'landing'
def jobsfile = (new File(__FILE__)).parent + '/' + basename + '.yml'
def defaults_file = (new File(__FILE__)).parent + '/dists.yml'
println("Using defaults from : ${defaults_file}")
println("Using jobsfile : ${jobsfile}")
println("Using jobsfile : ${jobsfile}")
def pkgs = yaml.load(new File(jobsfile).text)
def uploads = '*.deb *.tar.* *.diff.* *.dsc *.changes *.buildinfo'
......@@ -56,8 +53,7 @@ pkgs.each { pkg ->
default_archs.each { arch ->
default_dists.each { dist ->
name = folder + '/' + 'deb-' + pkg.key + '-' + dist + '-' + arch
branch = params.get('branch', os + '/' + dist)
aptly_repo = params.get('repo', default_repo)
branch = params.get('branch', default_branch)
submodule_update = params.get('submodule_update', true)
dist_arg = '--git-dist=' + dist
......
......@@ -11,3 +11,8 @@ buster:
dists: ['buster']
branch: 'debian/buster'
archs: ['aarch64', 'amd64']
landing:
os: pureos
dists: ['landing']
branch: master
archs: ['aarch64']
bullseye.yml
\ No newline at end of file
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