Skip to content

Commit

Permalink
Fix-up runlocal
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh committed Jun 28, 2023
1 parent a6f5a48 commit 34fa284
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jenkins/runlocal
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#!/bin/bash -e

#
# Build the Pbench Server RPM and container, and run functional tests locally.
# Requires a Fedora, CentOS, or RHEL environment to run.

#
# NOTE WELL: By default, when the functional tests are run, the infrastructure
# pod and Pbench Server container are left running by default. Add the switch,
# `--cleanup` to direct `jenkins/run-server-func-tests` to cleanup when
# finished (success or failure).

# Build the pbench-server RPM locally, then build the containers locally, and
# then run the functional tests against the locally built CI container image.
export PB_SERVER_IMAGE_NAME=pbench-server

# We use the current user name as the tag to avoid any conflict with what the CI
# environment does.
export PB_CONTAINER_REG=images.paas.redhat.com
export PB_SERVER_IMAGE_TAG=${USER}

# We use the image pull policy of `never` here to ensure our locally built image
# is used by the pod.
export PB_SERVER_IMAGE_PULL_POLICY=never

# Create an RPM from the current source tree and double check it exists.
make -C server/rpm clean rpm
export RPM_PATH=${HOME}/rpmbuild/RPMS/noarch/pbench-server-*.rpm
ls -ld ${RPM_PATH}
# Set the workspace to the home directory so that the RPM built inside the
# container will be available after it exits.
WORKSPACE_TMP=${WORKSPACE_TMP:-${HOME}} jenkins/run make -C server/rpm distclean ci
export RPM_PATH=${HOME}/rpmbuild/RPMS/noarch/'pbench-server-*.rpm'
ls -ld "${RPM_PATH}"

# Create a Pbench Dashboard deployment
WORKSPACE_TMP=${WORKSPACE_TMP:-${HOME}} jenkins/run make -C dashboard clean build
Expand Down

0 comments on commit 34fa284

Please sign in to comment.