| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/src/passenger-release-6.0.20/dev/ci/tests/rpm/ |
Upload File : |
def setupTest(enablerFlag, distribution, architecture, block) {
if (enablerFlag) {
node("linux && ${architecture}") {
withEnv([
"CACHE_DIR=${env.JENKINS_HOME}/cache/${env.JOB_NAME}/${distribution}-${architecture}",
"DISTRIBUTION=${distribution}",
"ARCHITECTURE=${architecture}"
], block)
}
} else {
echo 'Test skipped.'
}
}
pipeline {
agent { node { label 'master-pipeline' } }
options {
buildDiscarder(logRotator(numToKeepStr: '10'))
timeout(time: 45, unit: 'MINUTES')
disableConcurrentBuilds()
timestamps()
}
parameters {
booleanParam(name: 'EL7', defaultValue: true, description: 'RHEL 7 tests')
booleanParam(name: 'EL8', defaultValue: true, description: 'RHEL 8 tests')
booleanParam(name: 'EL9', defaultValue: true, description: 'RHEL 9 tests')
}
stages {
stage('Initialize') {
steps {
script {
if (env.JOB_NAME.indexOf('Enterprise') != -1) {
env.ENTERPRISE = '1'
} else {
env.ENTERPRISE = '0'
}
// For debugging purposes
sh 'env | sort'
}
}
}
stage('Test') {
steps {
script {
parallel(
'el7 x86_64': {
setupTest(params.EL7, 'el7', 'x86_64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el8 x86_64': {
setupTest(params.EL8, 'el8', 'x86_64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el9 x86_64': {
setupTest(params.EL9, 'el9', 'x86_64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el7 aarch64': {
setupTest(false, 'el7', 'aarch64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el8 aarch64': {
setupTest(params.EL8, 'el8', 'aarch64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el9 aarch64': {
setupTest(params.EL9, 'el9', 'aarch64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
}
)
}
}
}
}
}