REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 3.19 KB
Close
/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/dev/ci/tests/binaries/Jenkinsfile
Text
Base64
JOB_NAME_AS_ID = null def setupLinuxTest(enablerFlag, architecture, dockerArch, block) { if (enablerFlag) { node("linux && ${architecture}") { withEnv([ "OUTPUT_DIR=${env.WORKSPACE}/output-linux-${architecture}", "CACHE_DIR=${env.JENKINS_HOME}/cache/${env.JOB_NAME_AS_ID}/linux-${architecture}/executor-${env.EXECUTOR_NUMBER}", "ARCHITECTURE=${architecture}", "DOCKER_ARCH=${dockerArch}" ], block) } } else { echo 'Test skipped.' } } def setupMacosTest(enablerFlag, block) { if (enablerFlag) { node('macos') { withEnv([ "OUTPUT_DIR=${env.WORKSPACE}/output-macos", "CACHE_DIR=${env.WORKSPACE}/cache/${env.JOB_NAME_AS_ID}/macos/executor-${env.EXECUTOR_NUMBER}", "RUNTIME_DIR=${env.WORKSPACE}/cache/${env.JOB_NAME_AS_ID}/macos/executor-${env.EXECUTOR_NUMBER}/runtime" ], block) } } else { echo 'Test skipped.' } } pipeline { agent { node { label 'master-pipeline' } } options { buildDiscarder(logRotator(numToKeepStr: '10')) timeout(time: 45, unit: 'MINUTES') disableConcurrentBuilds() timestamps() ansiColor('xterm') } parameters { booleanParam(name: 'LINUX_X86_64', defaultValue: true, description: 'Linux x86_64 binaries') booleanParam(name: 'LINUX_AARCH64', defaultValue: true, description: 'Linux aarch64 binaries') booleanParam(name: 'MACOS', defaultValue: true, description: 'macOS binaries') } stages { stage('Initialize') { steps { script { // The syntaxes 'env.FOO = FOO = ...' and 'FOO = env.FOO = ...' // do not work for some reason; one of them will become null. // So we split the assignments in two separate statements. env.JOB_NAME_AS_ID = env.JOB_NAME.replace(' ', '-') JOB_NAME_AS_ID = env.JOB_NAME_AS_ID if (env.JOB_NAME.indexOf('Enterprise') != -1) { env.ENTERPRISE = '1' } else { env.ENTERPRISE = '0' } // For debugging purposes sh 'env | sort' } } } stage('Build') { steps { script { parallel( 'Linux x86_64': { setupLinuxTest(params.LINUX_X86_64, 'x86_64', 'amd64') { checkout scm sh './dev/ci/tests/binaries/build-linux' archiveArtifacts artifacts: 'output-linux-x86_64/**/*' sh './dev/ci/tests/binaries/test-linux' } }, 'Linux aarch64': { setupLinuxTest(params.LINUX_AARCH64, 'aarch64', 'arm64') { checkout scm sh './dev/ci/tests/binaries/build-linux' archiveArtifacts artifacts: 'output-linux-aarch64/**/*' sh './dev/ci/tests/binaries/test-linux' } }, 'macOS': { setupMacosTest(params.MACOS) { checkout scm sh './dev/ci/tests/binaries/prepare-macos' sh './dev/ci/tests/binaries/build-macos' archiveArtifacts artifacts: 'output-macos/**/*' sh './dev/ci/tests/binaries/test-macos' } } ) } } } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
build-linux
1.01 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
build-macos
1.04 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Jenkinsfile
3.19 KB
lrw-r--r--
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
prepare-macos
1.06 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test-linux
1.15 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test-macos
1.02 KB
lrwxr-xr-x
2026-01-27 23:50:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).