Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions ceph-dev-pipeline/build/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//
// vim: ts=2 sw=2 expandtab
//
ceph_build_repo = "https://github.com/ceph/ceph-build"
ceph_build_branch = "main"
base_node_label = "gigantic"
Expand All @@ -6,6 +9,7 @@ ubuntu_releases = [
"jammy": "22.04",
"focal": "20.04",
]

debian_releases = [
"bookworm": "12",
"bullseye": "11",
Expand Down Expand Up @@ -333,18 +337,13 @@ pipeline {
}
steps {
script {
sh './scripts/setup_chacractl.sh'
def chacra_url = sh(
script: '''grep url ~/.chacractl | cut -d'"' -f2''',
returnStdout: true,
).trim()
def os = get_os_info(env.DIST)
def chacra_endpoint = "ceph/${env.BRANCH}/${env.SHA1}/${os.name}/${os.version_name}/${env.ARCH}/flavors/${env.FLAVOR}/"
def chacractl_rc = sh(
script: "$HOME/.local/bin/chacractl exists binaries/${chacra_endpoint}",
returnStatus: true,
)
if ( chacractl_rc == 0 && env.FORCE != "true" ) {
def shaman_endpoint = "https://shaman.ceph.com/api/repos/ceph/${env.BRANCH}/${env.SHA1}/${os.name}/${os.version_name}"
def chacra_repo_url = sh(
script: '''curl ${shaman_endpoint} | jq -r 'first(.[] | select(.flavor == "env.FLAVOR" and (.archs | any(. == "env.ARCH")) and .status=="ready")) | .chacra_url'''',
returnStdout: true
).trim()
if ( chacra_repo_url != "" && env.FORCE != "true" ) {
println("Skipping compilation since chacra already has artifacts. To override, use THROWAWAY=true (to skip this check) or FORCE=true (to re-upload artifacts).")
build_matrix["${DIST}_${ARCH}"] = false
}
Expand Down