pipeline { environment { ORBIT = credentials('ced8ecd0-dbe4-4bf6-bdde-101a661565f5') ORBIT_URL = credentials('c0c95c56-b4e9-45c2-85c5-bf292aef7301') RBD = credentials('9bfb46f5-65eb-40c3-bfda-7ac5fe469ff4') CEPH_MON = credentials('ceph-mon') ORBIT_USER = "${ORBIT_USR}" ORBIT_KEY = "${ORBIT_PSW}" } options { disableConcurrentBuilds() buildDiscarder(logRotator(numToKeepStr: '5')) } triggers { cron('@weekly') } agent none stages { stage("AlmaLinux 8") { agent { dockerfile { dir 'almalinux8' label "docker" additionalBuildArgs '--build-arg CEPH_MON --build-arg RBD_USR --build-arg RBD_PSW' } } steps { sh 'rbd --id "${RBD_USR}" ls servers' sh 'bundle install --deployment' sh 'bundle exec rake features:new_qemu' } post { always { sh 'bundle exec rake features:clean' } failure { mail to: 'sysadmin@brightbox.co.uk', subject: "Uricp Tests Failed: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL}" } } } stage("CentOS 7") { agent { dockerfile { dir 'centos7' label "docker" additionalBuildArgs '--build-arg CEPH_MON --build-arg RBD_USR --build-arg RBD_PSW' } } steps { sh 'rbd --id "${RBD_USR}" ls servers' sh 'bundle install --deployment' sh 'bundle exec rake features:new_qemu' } post { always { sh 'bundle exec rake features:clean' } failure { mail to: 'sysadmin@brightbox.co.uk', subject: "Uricp Tests Failed: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL}" } } } stage("Focal, Ruby 2.7.0") { agent { dockerfile { dir 'focal' label "docker" additionalBuildArgs '--build-arg CEPH_MON --build-arg RBD_USR --build-arg RBD_PSW' } } steps { sh 'rbd --id "${RBD_USR}" ls servers' sh 'bundle install --deployment' sh 'bundle exec rake features:new_qemu' } post { always { sh 'bundle exec rake features:clean' } failure { mail to: 'sysadmin@brightbox.co.uk', subject: "Uricp Tests Failed: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL}" } } } stage("Xenial, Ruby 2.3.1") { agent { dockerfile { dir 'xenial' label "docker" } } steps { sh 'bundle install --deployment' sh 'bundle exec rake features:new_qemu' } post { always { sh 'bundle exec rake features:clean' } failure { mail to: 'sysadmin@brightbox.co.uk', subject: "Uricp Tests Failed: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL}" } } } stage("Bionic, Ruby 2.5.1") { agent { dockerfile { dir 'bionic' label "docker" } } steps { sh 'bundle install --deployment' sh 'bundle exec rake features:new_qemu' } post { always { sh 'bundle exec rake features:clean' } failure { mail to: 'sysadmin@brightbox.co.uk', subject: "Uricp Tests Failed: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL}" } } } } post { failure { mail to: 'sysadmin@brightbox.co.uk', subject: "Uricp Tests Failed: ${currentBuild.fullDisplayName}", body: "${env.BUILD_URL}" } } }