+++ /dev/null
-#!/bin/bash
-
-# the following two methods exist in scripts/build_utils.sh
-pkgs=( "tox" )
-TEMPVENV=$(create_venv_dir)
-VENV=${TEMPVENV}/bin
-set_centos_python3_version "python3.9"
-install_python_packages $TEMPVENV "pkgs[@]" "pip==22.0.4"
-
-# XXX this might not be needed
-source $VENV/activate
-
-WORKDIR=$(mktemp -td tox.XXXXXXXXXX)
-page_size=100
-
-#############
-# FUNCTIONS #
-#############
-function find_latest_tag {
- release="$1"
- el="7"
- if [[ "${release}" =~ octopus|pacific ]]; then
- el="8"
- fi
- page=1
- while response=$(curl -s "https://quay.ceph.io/api/v1/repository/ceph-ci/daemon/tag/?page=${page}&limit=${page_size}"); do
- tag=$(echo "${response}" | jq -r ".tags[] | select((.name | contains(\"stable\")) and (.name | contains(\"${release}-centos-${el}-x86_64\"))) | .name")
- local code=$?
- if [ $code != 0 ]; then
- echo "Error listing tags!" >&2
- exit $code
- fi
- if [ -n "${tag}" ]; then
- echo "${tag}" | head -n 1 | cut -d '"' -f 2
- return
- fi
- if [ $(echo "${response}" | jq -r .has_additional) == "false" ]; then
- break
- else
- let page++
- fi
- done
-}
-
-function run_tox {
- case "$CEPH_ANSIBLE_BRANCH" in
- stable-*)
- CEPH_DOCKER_IMAGE_TAG=$(find_latest_tag "$RELEASE")
- ;;
- main)
- CEPH_DOCKER_IMAGE_TAG="latest-main"
- ;;
- esac
-
- [ -n "$CEPH_DOCKER_IMAGE_TAG" ] && start_tox $TEMPVENV CEPH_DOCKER_IMAGE_TAG="$CEPH_DOCKER_IMAGE_TAG"
-}
-
-########
-# MAIN #
-########
-prune_stale_vagrant_running_vms
-delete_libvirt_vms
-clear_libvirt_networks
-restart_libvirt_services
-update_vagrant_boxes
-run_tox
+++ /dev/null
-- project:
- name: ceph-ansible-nightly-stable6.0
- release:
- - pacific
- distribution:
- - centos
- deployment:
- - container
- - non_container
- scenario:
- - all_daemons
- - collocation
- - update
- - lvm_osds
- - shrink_mon
- - shrink_osd_multiple
- - shrink_osd_single
- - lvm_batch
- - rgw_multisite
- - purge
- - lvm_auto_discovery
- - switch_to_containers
- - filestore_to_bluestore
- ceph_ansible_branch:
- - stable-6.0
- jobs:
- - 'ceph-ansible-nightly-{release}-{distribution}-{deployment}-{ceph_ansible_branch}-{scenario}'
- exclude:
- - deployment: container
- scenario: switch_to_containers
-
-- job-template:
- name: 'ceph-ansible-nightly-{release}-{distribution}-{deployment}-{ceph_ansible_branch}-{scenario}'
- node: vagrant&&libvirt&¢os8
- concurrent: true
- defaults: global
- display-name: 'ceph-ansible: Nightly [{release}-{distribution}-{deployment}-{ceph_ansible_branch}-{scenario}]'
- quiet-period: 5
- block-downstream: false
- block-upstream: false
- retry-count: 3
- properties:
- - github:
- url: https://github.com/ceph/ceph-ansible
- - build-discarder:
- days-to-keep: 90
- num-to-keep: -1
- artifact-days-to-keep: -1
- artifact-num-to-keep: -1
-
- parameters:
- - string:
- name: CEPH_ANSIBLE_BRANCH
- description: "The ceph-ansible branch (or tag) to test"
- default: "{ceph_ansible_branch}"
- - string:
- name: CEPH_DOCKER_IMAGE_TAG
- description: "The ceph-container image tag to use"
- default: ""
-
- triggers:
- - timed: '@daily'
-
- scm:
- - git:
- url: https://github.com/ceph/ceph-ansible.git
- branches:
- - $CEPH_ANSIBLE_BRANCH
- browser: auto
- timeout: 20
- skip-tag: true
- wipe-workspace: true
-
- builders:
- - inject:
- properties-content: |
- RELEASE={release}
- DISTRIBUTION={distribution}
- DEPLOYMENT={deployment}
- CEPH_ANSIBLE_BRANCH={ceph_ansible_branch}
- SCENARIO={scenario}
- - shell:
- !include-raw-escape:
- - ../../../scripts/build_utils.sh
- - ../../build/build
-
- publishers:
- - postbuildscript:
- builders:
- - role: SLAVE
- build-on:
- - FAILURE
- - ABORTED
- build-steps:
- - shell:
- !include-raw-escape:
- - ../../../scripts/build_utils.sh
- - ../../build/teardown
-
- - archive:
- artifacts: 'logs/**'
- allow-empty: true
- latest-only: false
-
- wrappers:
- - inject-passwords:
- global: true
- mask-password-params: true
- - credentials-binding:
- - username-password-separated:
- credential-id: ceph-ansible-upstream-ci
- username: DOCKER_HUB_USERNAME
- password: DOCKER_HUB_PASSWORD