Skip to content

Commit

Permalink
Update the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshithakamath94 committed Jul 12, 2023
1 parent ee34888 commit 3b29697
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jobs/scripts/nightly-builds/nightly-builds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
artifact()
{
#Copy the RPMS using scp
rm -rf ${RESULTDIR}/*.log
[ -e ~/gluster-ssh-privatekey ] || return 0
scp -q -o StrictHostKeyChecking=no -i ~/gluster-ssh-privatekey -r "${@}" [email protected]:/srv/artifacts/gluster/nightly/
}
Expand Down Expand Up @@ -118,7 +119,8 @@ esac

# do the actual RPM build in mock
# TODO: use a CentOS Storage SIG buildroot
RESULTDIR=/srv/gluster/nightly/${GITHUB_BRANCH}/${CENTOS_VERSION}/${CENTOS_ARCH}
VERSION_STRING=$(echo $CENTOS_VERSION | cut -d '-' -f1)
RESULTDIR=/srv/gluster/nightly/${GITHUB_BRANCH}/${VERSION_STRING}/${CENTOS_ARCH}
/usr/bin/mock \
--root ${MOCK_CHROOT} \
${MOCK_RPM_OPTS} \
Expand All @@ -140,7 +142,7 @@ fi

cat > /srv/gluster/nightly/${REPO_NAME}.repo <<< "[gluster-nightly-${REPO_VERSION}]
name=Gluster Nightly builds (${GITHUB_BRANCH} branch)
baseurl=http://artifacts.ci.centos.org/gluster/nightly/${GITHUB_BRANCH}/\$stream/\$basearch
baseurl=http://artifacts.ci.centos.org/gluster/nightly/${GITHUB_BRANCH}/$releasever/$basearch
enabled=1
gpgcheck=0"

Expand Down
1 change: 1 addition & 0 deletions tests/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM quay.io/centos/centos:stream
RUN true \
&& dnf -y install python3-pip \
&& pip3 install jenkins-job-builder \
&& pip3 install dataclasses \
&& dnf -y clean all \
&& true

Expand Down

0 comments on commit 3b29697

Please sign in to comment.