ci: Fetch Fedora release list from Bodhi
RPMs/wal-g/pipeline/pr-master There was a failure building this commit Details

Fedora PDC has been retired:
https://fedora-arc.readthedocs.io/en/latest/pdc/split.html
Dustin 2024-08-12 10:48:34 -05:00
parent 5f4b741939
commit 8cfc7022be
1 changed files with 3 additions and 3 deletions

6
ci/Jenkinsfile vendored
View File

@ -1,11 +1,11 @@
def getFedoraVersions() {
def response = httpRequest(
url: 'https://pdc.fedoraproject.org/rest_api/v1/product-versions?short=fedora&active=true',
url: 'https://bodhi.fedoraporject.org/freleases?state=current',
acceptType: 'APPLICATION_JSON',
)
def content = readJSON(text: response.content)
return content.results.
findAll { it.version != "rawhide" }.
return content.releases.
findAll { it.id_prefix == "FEDORA" }.
collect { it.version }
}