Skip to content

Commit

Permalink
Add debug steps
Browse files Browse the repository at this point in the history
Signed-off-by: Rakshitha Kamath <[email protected]>
  • Loading branch information
rakshithakamath94 committed Aug 1, 2023
1 parent 1cff6f8 commit 5225574
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build_scripts/common/basic-gluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


# abort if anything fails
set -e
#set -e

[ -n "${GLUSTER_VOLUME}" ]

Expand Down Expand Up @@ -68,7 +68,7 @@ else
GIT_REPO=$(basename "${GERRIT_PROJECT}")
GIT_URL="https://${GERRIT_HOST}/${GERRIT_PROJECT}"

BASE_PACKAGES="git bison flex cmake gcc-c++ libacl-devel krb5-devel dbus-devel rpm-build redhat-rpm-config"
BASE_PACKAGES="git bison flex cmake gcc-c++ libacl-devel krb5-devel dbus-devel rpm-build redhat-rpm-config gdb"
BUILDREQUIRES_EXTRA="libnsl2-devel libnfsidmap-devel libwbclient-devel libcephfs-devel userspace-rcu-devel"
if [ "${CENTOS_VERSION}" = "7" ]; then
yum -y install libgfapi-devel
Expand All @@ -80,7 +80,7 @@ else
elif [ "${CENTOS_VERSION}" = "9s" ]; then
yum install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel
yum install --enablerepo=crb -y ${BUILDREQUIRES_EXTRA}
yum -y install selinux-policy-devel sqlite
yum -y install selinux-policy-devel sqlite samba-winbind
fi

git init "${GIT_REPO}"
Expand All @@ -103,7 +103,7 @@ else
mkdir build
pushd build

cmake -DCMAKE_BUILD_TYPE=Maintainer -DUSE_FSAL_GLUSTER=ON ../src
cmake -DCMAKE_BUILD_TYPE=Maintainer -DUSE_FSAL_GLUSTER=ON -DUSE_DBUS=ON ../src
make dist
rpmbuild -ta --define "_srcrpmdir $PWD" --define "_rpmdir $PWD" *.tar.gz
rpm_arch=$(rpm -E '%{_arch}')
Expand Down
2 changes: 2 additions & 0 deletions build_scripts/common/basic-server-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ elif [ "${SERVER_TEST_SCRIPT}" ] && [ "${CLIENT_TEST_SCRIPT}" ]; then
client_run ${CLIENT_IP} ${CLIENT_TEST_SCRIPT} ${SERVER_IP}
FINAL_RESULT=$?
else
scp root@${SERVER_IP}:/root/rpmbuild/BUILD/nfs-ganesha-5.4/CMakeFiles/CMakeOutput.log .
scp root@${SERVER_IP}:/root/rpmbuild/BUILD/nfs-ganesha-5.4/CMakeFiles/CMakeError.log .
FINAL_RESULT=${SERVER_SCRIPT_RESULT}
fi
fi
Expand Down
5 changes: 5 additions & 0 deletions build_scripts/common/return-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

set +x

SERVER_IP=$(cat $WORKSPACE/hosts | sed -n '1p')

scp root@${SERVER_IP}:/root/rpmbuild/BUILD/nfs-ganesha-5.4/CMakeFiles/CMakeOutput.log .
scp root@${SERVER_IP}:/root/rpmbuild/BUILD/nfs-ganesha-5.4/CMakeFiles/CMakeError.log .

SESSION_ID=$(cat "${WORKSPACE}"/session_id)

duffy client retire-session "${SESSION_ID}" > /dev/null
1 change: 1 addition & 0 deletions jobs/code_compilation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@
- cleanup-ws

publishers:
- archive_artifacts
- post_build_task_return-node
10 changes: 10 additions & 0 deletions jobs/macros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,13 @@
operator: OR
script:
!include-raw: ../build_scripts/common/return-node.sh

- publisher:
name: archive_artifacts
publishers:
- archive:
artifacts: 'CMakeError.log CMakeOutput.log'
allow-empty: true
only-if-success: false
fingerprint: true
excludes: path

0 comments on commit 5225574

Please sign in to comment.