ci: Add FCOS stream parameter
Most of the time, we want to build the module for the latest version in the *testing* stream, so that it will be ready when that version moves to *stable*. There may be cases, though, where we need to build for a different stream. For example, if the module never built successfully by the time a version moved from *testing* to *stable*, we may need to manually build it for the current *stable*.master
parent
cba7a577e2
commit
57e8097323
|
@ -1,14 +1,21 @@
|
|||
// vim: set sw=4 ts=4 sts=4 et :
|
||||
|
||||
properties([
|
||||
pipelineTriggers([cron('H H * * *')])
|
||||
pipelineTriggers([cron('H H * * *')]),
|
||||
parameters([
|
||||
choice(
|
||||
choices: ['testing', 'stable', 'next'],
|
||||
description: 'Fedora CoreOS Stream',
|
||||
name: 'stream',
|
||||
)
|
||||
]),
|
||||
])
|
||||
|
||||
import groovy.json.JsonSlurper
|
||||
|
||||
def get_fcos_release(arch) {
|
||||
def res = httpRequest(
|
||||
url: 'https://builds.coreos.fedoraproject.org/streams/testing.json',
|
||||
url: "https://builds.coreos.fedoraproject.org/streams/${params.stream}.json",
|
||||
acceptType: 'APPLICATION_JSON',
|
||||
)
|
||||
def json = new JsonSlurper()
|
||||
|
@ -18,7 +25,7 @@ def get_fcos_release(arch) {
|
|||
|
||||
def get_kernel_version(arch, fcos_release) {
|
||||
def res = httpRequest(
|
||||
url: "https://builds.coreos.fedoraproject.org/prod/streams/testing/builds/${fcos_release}/${arch}/commitmeta.json",
|
||||
url: "https://builds.coreos.fedoraproject.org/prod/streams/${params.stream}/builds/${fcos_release}/${arch}/commitmeta.json",
|
||||
acceptType: 'APPLICATION_JSON',
|
||||
)
|
||||
def json = new JsonSlurper()
|
||||
|
|
Loading…
Reference in New Issue