PHP 8.2.30
Preview: Jenkinsfile Size: 10.26 KB
/proc/thread-self/root/proc/self/root/opt/cpanel/ea-ruby27/src/passenger-release-6.1.2/Jenkinsfile

def DEFAULT_RUBY_VERSION = '3.1.6'
def LINUX_COMPILE_CONCURRENCY = 4
def LINUX_ENV = ["TEST_RUBY_VERSION=${DEFAULT_RUBY_VERSION}", "COMPILE_CONCURRENCY=${LINUX_COMPILE_CONCURRENCY}"]
def MACOS_COMPILE_CONCURRENCY = 4
def MACOS_ENV = ["TEST_RUBY_VERSION=${DEFAULT_RUBY_VERSION}", "COMPILE_CONCURRENCY=${MACOS_COMPILE_CONCURRENCY}"]

def setupTest(enablerFlag, nodeLabel, environment, block) {
  if (enablerFlag) {
    node(nodeLabel) {
      withEnv(environment) {
        block()
      }
    }
  } else {
    echo 'Test skipped.'
  }
}

pipeline {
  agent { node { label 'master-pipeline' } }

  options {
    buildDiscarder(logRotator(numToKeepStr: '15'))
    timeout(time: 50, unit: 'MINUTES')
    timestamps()
  }

  parameters {
    // In alphabetical order so that the order matches
    // how it is displayed in Blue Ocean.
    booleanParam(name: 'APACHE2_LINUX', defaultValue: true, description: 'Apache 2 integration tests on Linux')
    booleanParam(name: 'APACHE2_MACOS', defaultValue: true, description: 'Apache 2 integration tests on macOS')
    booleanParam(name: 'CXX_LINUX_ROOT', defaultValue: true, description: 'C++ unit tests on Linux, as root')
    booleanParam(name: 'CXX_LINUX', defaultValue: true, description: 'C++ unit tests on Linux, normal user')
    booleanParam(name: 'CXX_MACOS', defaultValue: true, description: 'C++ unit tests on macOS')
    booleanParam(name: 'NGINX_DYNAMIC_LINUX', defaultValue: true, description: 'Nginx dynamic module tests on Linux')
    booleanParam(name: 'NGINX_DYNAMIC_MACOS', defaultValue: true, description: 'Nginx dynamic module tests on macOS')
    booleanParam(name: 'NGINX_LINUX', defaultValue: true, description: 'Nginx integration tests on Linux')
    booleanParam(name: 'NGINX_MACOS', defaultValue: true, description: 'Nginx integration tests on macOS')
    booleanParam(name: 'NODEJS_LINUX', defaultValue: true, description: 'Node.js unit tests on Linux')
    booleanParam(name: 'NODEJS_MACOS', defaultValue: true, description: 'Node.js unit tests on macOS')
    booleanParam(name: 'STANDALONE_LINUX', defaultValue: true, description: 'Passenger Standalone integration tests on Linux')
    booleanParam(name: 'STANDALONE_MACOS', defaultValue: true, description: 'Passenger Standalone integration tests on macOS')
    booleanParam(name: 'RUBY_LINUX', defaultValue: true, description: 'Ruby unit tests on Linux')
    booleanParam(name: 'RUBY_MACOS', defaultValue: true, description: 'Ruby unit tests on macOS')
    booleanParam(name: 'HOMEBREW_PACKAGING', defaultValue: true, description: 'Homebrew packaging unit tests')
    booleanParam(name: 'SOURCE_PACKAGING', defaultValue: true, description: 'Source packaging unit tests')
  }

  stages {
    stage('Test') {
      steps {
        script {
          parallel(
            'Ruby unit tests on Linux': {
              setupTest(params.RUBY_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker ruby'
                } finally {
                  sh 'mv buildout/testlogs buildout/RUBY_LINUX'
                  archiveArtifacts artifacts: 'buildout/RUBY_LINUX/**'
                }
              }
            },
            'Ruby unit tests on macOS': {
              setupTest(params.RUBY_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host ruby'
                try {
                  sh './dev/ci/run-tests-natively ruby'
                } finally {
                  sh 'mv buildout/testlogs buildout/RUBY_MACOS'
                  archiveArtifacts artifacts: 'buildout/RUBY_MACOS/**'
                }
              }
            },

            'Node.js unit tests on Linux': {
              setupTest(params.NODEJS_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                sh './dev/ci/run-tests-with-docker nodejs'
              }
            },
            'Node.js unit tests on macOS': {
              setupTest(params.NODEJS_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host nodejs'
                sh './dev/ci/run-tests-natively nodejs'
              }
            },

            'C++ unit tests on Linux, normal user': {
              setupTest(params.CXX_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker cxx'
                } finally {
                  sh 'mv buildout/testlogs buildout/CXX_LINUX'
                  archiveArtifacts artifacts: 'buildout/CXX_LINUX/**'
                }
              }
            },
            'C++ unit tests on Linux, as root': {
              setupTest(params.CXX_LINUX_ROOT, 'linux && amd64', LINUX_ENV + ['SUDO=1']) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker cxx'
                } finally {
                  sh 'mv buildout/testlogs buildout/CXX_LINUX_ROOT'
                  archiveArtifacts artifacts: 'buildout/CXX_LINUX_ROOT/**'
                }
              }
            },
            'C++ unit tests on macOS': {
              setupTest(params.CXX_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host cxx'
                try {
                  sh './dev/ci/run-tests-natively cxx'
                } finally {
                  sh 'mv buildout/testlogs buildout/CXX_MACOS'
                  archiveArtifacts artifacts: 'buildout/CXX_MACOS/**'
                }
              }
            },

            'Apache integration tests on Linux': {
              setupTest(params.APACHE2_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker apache2'
                } finally {
                  sh 'mv buildout/testlogs buildout/APACHE2_LINUX'
                  archiveArtifacts artifacts: 'buildout/APACHE2_LINUX/**'
                }
              }
            },
            'Apache integration tests on macOS': {
              setupTest(params.APACHE2_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host apache2'
                try {
                  sh './dev/ci/run-tests-natively apache2'
                } finally {
                  sh 'mv buildout/testlogs buildout/APACHE2_MACOS'
                  archiveArtifacts artifacts: 'buildout/APACHE2_MACOS/**'
                }
              }
            },

            'Nginx integration tests on Linux': {
              setupTest(params.NGINX_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker nginx'
                } finally {
                  sh 'mv buildout/testlogs buildout/NGINX_LINUX'
                  archiveArtifacts artifacts: 'buildout/NGINX_LINUX/**'
                }
              }
            },
            'Nginx integration tests on macOS': {
              setupTest(params.NGINX_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host nginx'
                try {
                  sh './dev/ci/run-tests-natively nginx'
                } finally {
                  sh 'mv buildout/testlogs buildout/NGINX_MACOS'
                  archiveArtifacts artifacts: 'buildout/NGINX_MACOS/**'
                }
              }
            },

            'Nginx dynamic module compatibility test on Linux': {
              setupTest(params.NGINX_DYNAMIC_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker nginx-dynamic'
                } finally {
                  sh 'mv buildout/testlogs buildout/NGINX_DYNAMIC_LINUX'
                  archiveArtifacts artifacts: 'buildout/NGINX_DYNAMIC_LINUX/**'
                }
              }
            },
            'Nginx dynamic module compatibility test on macOS': {
              setupTest(params.NGINX_DYNAMIC_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host nginx-dynamic'
                try {
                  sh './dev/ci/run-tests-natively nginx-dynamic'
                } finally {
                  sh 'mv buildout/testlogs buildout/NGINX_DYNAMIC_MACOS'
                  archiveArtifacts artifacts: 'buildout/NGINX_DYNAMIC_MACOS/**'
                }
              }
            },

            'Passenger Standalone integration tests on Linux': {
              setupTest(params.STANDALONE_LINUX, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                try {
                  sh './dev/ci/run-tests-with-docker standalone'
                } finally {
                  sh 'mv buildout/testlogs buildout/STANDALONE_LINUX'
                  archiveArtifacts artifacts: 'buildout/STANDALONE_LINUX/**'
                }
              }
            },
            'Passenger Standalone integration tests on macOS': {
              setupTest(params.STANDALONE_MACOS, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host standalone'
                try {
                  sh './dev/ci/run-tests-natively standalone'
                } finally {
                  sh 'mv buildout/testlogs buildout/STANDALONE_MACOS'
                  archiveArtifacts artifacts: 'buildout/STANDALONE_MACOS/**'
                }
              }
            },

            'Homebrew packaging unit tests': {
              setupTest(params.HOMEBREW_PACKAGING, 'macos', MACOS_ENV) {
                checkout scm
                sh './dev/ci/setup-host homebrew-packaging'
                sh './dev/ci/run-tests-natively homebrew-packaging'
              }
            },
            'Source packaging unit tests': {
              setupTest(params.SOURCE_PACKAGING, 'linux && amd64', LINUX_ENV) {
                checkout scm
                sh './dev/ci/setup-host'
                sh './dev/ci/run-tests-with-docker source-packaging'
              }
            }
          )
        }
      }
    }
  }
}

Directory Contents

Dirs: 13 × Files: 24

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
.github DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
.settings DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
.vscode DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
bin DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
build DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
dev DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
doc DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
images DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
man DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
packaging DIR
- drwxr-xr-x 2026-02-13 08:03:51
Edit Download
resources DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
src DIR
- drwxr-xr-x 2026-02-13 08:03:52
Edit Download
102 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
7.89 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.38 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
120 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
742 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
795 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.10 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
190.59 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
3.31 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
287 B lrwxr-xr-x 2026-01-27 23:50:52
Edit Download
16.47 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.92 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
405 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.21 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
329 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
10.26 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.04 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
264.88 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
1.08 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.02 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
205 B lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.88 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
3.17 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download
2.49 KB lrw-r--r-- 2026-01-27 23:50:52
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).