11<% # vim: ft=eruby et ts=4 sw=4 sts=4
2- patch = 'cb6 '
2+ patch = 'cb4 '
33supported_interpreters = [
4- '8.1.0',
5- '8.0.13',
6- '7.4.26',
4+ '8.2.29',
5+ # '8.1.0',
6+ # '8.0.13',
7+ # '7.4.26',
78]
89openssl_ver = '1.1.1g-sdk2'
910php_versions = supported_interpreters.map do |php_ver|
@@ -19,7 +20,7 @@ pipeline {
1920 agent none
2021 stages {
2122 stage('prepare') {
22- agent { label 'centos7 ' }
23+ agent { label 'rockylinux9 ' }
2324 steps {
2425 cleanWs()
2526 sh('sudo yum remove -y libcouchbase*')
@@ -39,7 +40,7 @@ pipeline {
3940<% php_root = "/tmp/php/php-#{ts}-#{php_ver}-#{patch}" %>
4041<% php = "#{php_root}/bin/php" %>
4142<% php_config = "#{php_root}/bin/php-config" %>
42- agent { label 'centos7 ' }
43+ agent { label 'rockylinux9 ' }
4344 stages {
4445 stage('php') {
4546 steps {
@@ -53,7 +54,7 @@ pipeline {
5354 stage('lcb') {
5455 steps {
5556 dir('<%= php_ver %> -<%= ts %> -<%= arch %> ') {
56- <% lcb3_root = "install/libcouchbase-#{lcb_ver}/libcouchbase-centos7 -x86_64-#{lcb_ver}" %>
57+ <% lcb3_root = "install/libcouchbase-#{lcb_ver}/libcouchbase-rockylinux9 -x86_64-#{lcb_ver}" %>
5758 sh('<%= cbdep_install %> --base-url http://sdk-snapshots.couchbase.com/cbdeps libcouchbase <%= lcb_ver %> ')
5859 sh('mv <%= lcb3_root %> <%= lcb_root %> ')
5960 sh('rm -rf <%= lcb_root %> /lib; ln -sf \$(realpath <%= lcb_root %> /lib64) <%= lcb_root %> /lib')
@@ -94,7 +95,7 @@ pipeline {
9495<%
9596def msvc_ver(php)
9697 case php
97- when /8.0/, /8.1/
98+ when /8.0/, /8.1/, /8.2/
9899 'msvc2019'
99100 when /7.4/, /7.3/
100101 'msvc2017'
103104
104105def msvs_ver(php)
105106 case php
106- when /8.0/, /8.1/
107+ when /8.0/, /8.1/, /8.2/
107108 '16.0'
108109 when /7.4/, /7.3/
109110 '15.0'
112113
113114def cbdep_platform(php)
114115 case php
115- when /8.0/, /8.1/
116+ when /8.0/, /8.1/, /8.2/
116117 'windows_msvc2019'
117118 when /7.4/, /7.3/
118119 'windows_msvc2017'
121122
122123def agent_label(php)
123124 case php
124- when /8.0/, /8.1/
125+ when /8.0/, /8.1/, /8.2/
125126 'msvc-2019'
126127 when /7.4/, /7.3/
127128 'msvc-2017'
@@ -222,12 +223,12 @@ vc_vars = "%PROGRAMFILES(X86)%\\\\Microsoft Visual Studio\\\\#{msvc_ver(php_ver)
222223 }
223224 }
224225<% if ENV['WINDOWS_ONLY'] %>
225- <% php_ver = php_versions.map(&:first).find {|v| v =~ /7.4 /} %>
226+ <% php_ver = php_versions.map(&:first).find {|v| v =~ /8.2 /} %>
226227<% ts = 'zts' %>
227228 stage('package') {
228229 stages {
229230 stage('src') {
230- agent { label 'centos7 ' }
231+ agent { label 'rockylinux9 ' }
231232 steps {
232233 cleanWs()
233234 sh('<%= cbdep_install %> --dir /tmp/php php-<%= ts %> <%= php_ver %> -<%= patch %> ')
@@ -256,7 +257,7 @@ vc_vars = "%PROGRAMFILES(X86)%\\\\Microsoft Visual Studio\\\\#{msvc_ver(php_ver)
256257<% [ 'zts' , 'nts' ] . each do |ts | %>
257258<% release_dir = "php_couchbase-#{ php_ver } -#{ ts } -#{ arch } #{ '-openssl' if has_ssl } " %>
258259 stage('w<%= ts [ 0 ] %> <%= php_ver . to_f %> <%= 's' if has_ssl %> ') {
259- agent { label 'centos7 ' }
260+ agent { label 'rockylinux9 ' }
260261 steps {
261262 cleanWs()
262263 unstash 'tarball'
0 commit comments