|
| 1 | +library changelog: false, identifier: "lib@master", retriever: modernSCM([ |
| 2 | + $class: 'GitSCMSource', |
| 3 | + remote: 'https://github.com/Percona-Lab/jenkins-pipelines.git' |
| 4 | +]) |
| 5 | + |
| 6 | +pipeline { |
| 7 | + agent { |
| 8 | + label 'launcher-x64' |
| 9 | + } |
| 10 | + environment { |
| 11 | + PATH = '/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/ec2-user/.local/bin' |
| 12 | + } |
| 13 | + parameters { |
| 14 | + string(name: 'PSMDB_BRANCH', defaultValue: 'master', description: 'PSMDB branch') |
| 15 | + string(name: 'PSMDB_VERSION', defaultValue: '8.2.0', description: 'PSMDB version') |
| 16 | + } |
| 17 | + options { |
| 18 | + disableConcurrentBuilds() |
| 19 | + } |
| 20 | + stages { |
| 21 | + stage ('Run regression tests on ubuntu 24.04') { |
| 22 | + steps { |
| 23 | + script { |
| 24 | + build job: 'hetzner-psmdb-regression', propagate: false, wait: false, parameters: [ |
| 25 | + string(name: 'branch', value: params.PSMDB_BRANCH), |
| 26 | + string(name: 'version', value: params.PSMDB_VERSION), |
| 27 | + string(name: 'tag', value: params.PSMDB_BRANCH), |
| 28 | + string(name: 'parallelexecutors', value: '2'), |
| 29 | + string(name: 'testsuites', value: 'core,unittests,dbtest,audit,oidc,telemetry --jobs=1,ldapauthz||/etc/init.d/slapd start && /etc/init.d/saslauthd start,replica_sets_fcbis_jscore_passthrough') |
| 30 | + ] |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + stage ('Run regression tests on oraclelinux9') { |
| 35 | + steps { |
| 36 | + script { |
| 37 | + def tag = params.PSMDB_BRANCH + '-ol9' |
| 38 | + build job: 'hetzner-psmdb-regression', propagate: true, wait: true, parameters: [ |
| 39 | + string(name: 'branch', value: params.PSMDB_BRANCH), |
| 40 | + string(name: 'version', value: params.PSMDB_VERSION), |
| 41 | + string(name: 'tag', value: tag), |
| 42 | + string(name: 'testsuites', value: 'core'), |
| 43 | + booleanParam(name: 'unittests', value: false), |
| 44 | + string(name: 'OS', value: 'oraclelinux:9') |
| 45 | + ] |
| 46 | + } |
| 47 | + } |
| 48 | + } |
| 49 | + stage ('Run PBM tests') { |
| 50 | + steps { |
| 51 | + script { |
| 52 | + def image = 'public.ecr.aws/e7j3v3n0/psmdb-build:' + params.PSMDB_BRANCH + '-ol9' |
| 53 | + build job: 'hetzner-pbm-functional-tests', propagate: false, wait: false, parameters: [ string(name: 'PSMDB', value: image) ] |
| 54 | + } |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | +} |
0 commit comments