Skip to content

Commit

Permalink
Jenkinsfile: add step for building release metadata
Browse files Browse the repository at this point in the history
Adds a step which downloads the `fedora-coreos-releng-automation` repo
and runs the `coreos-meta-translator` against the current build to
produce `release.json` files.
  • Loading branch information
arithx committed Jul 10, 2019
1 parent dc9545c commit 63e0e68
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,16 @@ podTemplate(cloud: 'openshift', label: 'coreos-assembler', yaml: pod, defaultCon
}
}

stage('Build Release Metadata') {
// Run the coreos-meta-translator against the most recent build,
// which will generate a release.json from the meta.json files
utils.shwrap("""
git clone https://github.com/coreos/fedora-coreos-releng-automation
cd fedora-coreos-releng-automation
coreos-meta-translator/trans.py --workdir .
""")
}

stage('Prune Cache') {
// If the cache img is larger than e.g. 8G, then nuke it. Otherwise
// it'll just keep growing and we'll hit ENOSPC. Use realpath since
Expand Down

0 comments on commit 63e0e68

Please sign in to comment.