Skip to content

Commit

Permalink
RPM packaging: separate RPM and Docker architecture, fix creating Pas…
Browse files Browse the repository at this point in the history
…senger source tarball
  • Loading branch information
FooBarWidget committed Oct 13, 2024
1 parent 79670c4 commit c0ee4a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
17 changes: 9 additions & 8 deletions dev/ci/tests/rpm/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
def setupTest(enablerFlag, distribution, architecture, block) {
def setupTest(enablerFlag, distribution, rpmArch, dockerArch, block) {
if (enablerFlag) {
node("linux && ${architecture}") {
node("linux && ${rpmArch}") {
withEnv([
"CACHE_DIR=${env.JENKINS_HOME}/cache/${env.JOB_NAME}/${distribution}-${architecture}",
"CACHE_DIR=${env.JENKINS_HOME}/cache/${env.JOB_NAME}/${distribution}-${rpmArch}",
"DISTRIBUTION=${distribution}",
"ARCHITECTURE=${architecture}"
"RPM_ARCH=${rpmArch}",
"DOCKER_ARCH=${dockerArch}"
], block)
}
} else {
Expand Down Expand Up @@ -48,25 +49,25 @@ pipeline {
script {
parallel(
'el8 x86_64': {
setupTest(params.EL8, 'el8', 'x86_64') {
setupTest(params.EL8, 'el8', 'x86_64', 'amd64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el9 x86_64': {
setupTest(params.EL9, 'el9', 'x86_64') {
setupTest(params.EL9, 'el9', 'x86_64', 'amd64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el8 aarch64': {
setupTest(params.EL8, 'el8', 'aarch64') {
setupTest(params.EL8, 'el8', 'aarch64', 'arm64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
},
'el9 aarch64': {
setupTest(params.EL9, 'el9', 'aarch64') {
setupTest(params.EL9, 'el9', 'aarch64', 'arm64') {
checkout scm
sh './dev/ci/tests/rpm/run'
}
Expand Down
9 changes: 6 additions & 3 deletions dev/ci/tests/rpm/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ source "./internal/lib/distro_info.sh"

require_envvar WORKSPACE "$WORKSPACE"
require_envvar DISTRIBUTION "$DISTRIBUTION"
require_envvar ARCHITECTURE "$ARCHITECTURE"
require_envvar RPM_ARCH "$RPM_ARCH"
require_envvar DOCKER_ARCH "$DOCKER_ARCH"

PASSENGER_ROOT="${PASSENGER_ROOT:-$WORKSPACE}"
CACHE_DIR="${CACHE_DIR:-$WORKSPACE/cache}"
Expand All @@ -51,14 +52,16 @@ run ./build \
-o "$WORKSPACE/output" \
-p "$PASSENGER_ROOT" \
-d "$DISTRIBUTION" \
-a "$ARCHITECTURE" \
-a "$RPM_ARCH" \
-A "$DOCKER_ARCH" \
-R \
rpm:all
run ./test \
-p "$PASSENGER_ROOT" \
-d "$WORKSPACE/output/$DISTRIBUTION" \
-c "$CACHE_DIR" \
-x "$TEST_DISTRO_NAME" \
-a "$ARCHITECTURE" \
-a "$RPM_ARCH" \
-A "$DOCKER_ARCH" \
-j \
$EXTRA_TEST_PARAMS

0 comments on commit c0ee4a4

Please sign in to comment.