sudo pbuilder --clean
-mkdir -p dist/deb
+mkdir -p $WORKSPACE/dist/deb
REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$DIST/repo"
echo "EXTRAPACKAGES=\"libcephfs-dev\"" >> ~/.pbuilderrc
sudo pbuilder build \
--distribution $DIST \
--basetgz $PBUILDDIR/$DIST.tgz \
- --buildresult dist/deb/ \
+ --buildresult $WORKSPACE/dist/deb/ \
--debbuildopts "-j`grep -c processor /proc/cpuinfo`" \
- dist/nfs-ganesha_$VERSION.dsc
+ $WORKSPACE/dist/nfs-ganesha_$VERSION.dsc
## Upload the created RPMs to chacra
## Create the source rpm
echo "Building SRPM"
rpmbuild \
- --define "_sourcedir ./dist" \
+ --define "_sourcedir $WORKSPACE/dist" \
--define "_specdir ." \
--define "_builddir ." \
--define "_srcrpmdir ." \
--define "_rpmdir ." \
- --nodeps -bs ../src/nfs-ganesha.spec
+ --nodeps -bs $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec
SRPM=$(readlink -f *.src.rpm)
# add repo file to mock config
## Build the binaries with mock
echo "Building RPMs"
-sudo mock -r nfs-ganesha.cfg --resultdir=./dist/rpm/ ${SRPM}
+sudo mock -r nfs-ganesha.cfg --resultdir=$WORKSPACE/dist/rpm/ ${SRPM}
## Upload the created RPMs to chacra
[ "$FORCE" = true ] && chacra_flags="--force" || chacra_flags=""
# push binaries to chacra
-find ./dist/rpm/ | egrep '\.rpm$' | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/$ARCH/
+find $WORKSPACE/dist/rpm/ | egrep '\.rpm$' | $VENV/chacractl binary ${chacra_flags} create ${chacra_endpoint}/$ARCH/
# start repo creation
$VENV/chacractl repo update ${chacra_endpoint}
get_distro_and_target
# Perform a clean-up
+cd $WORKSPACE/nfs-ganesha
+git clean -fxd
+
+cd $WORKSPACE/nfs-ganesha-debian
git clean -fxd
# Make sure the dist directory is clean
+cd $WORKSPACE
rm -rf dist
mkdir -p dist
+- scm:
+ name: nfs-ganesha
+ scm:
+ - git:
+ url: https://github.com/nfs-ganesha/nfs-ganesha.git
+ # Use the SSH key attached to the ceph-jenkins GitHub account.
+ credentials-id: '39fa150b-b2a1-416e-b334-29a9a2c0b32d'
+ branches:
+ - $NFS_GANESHA_BRANCH
+ skip-tag: true
+ wipe-workspace: true
+ basedir: "nfs-ganesha"
+
+- scm:
+ name: nfs-ganesha-debian
+ scm:
+ - git:
+ url: https://github.com/nfs-ganesha/nfs-ganesha-debian.git
+ # Use the SSH key attached to the ceph-jenkins GitHub account.
+ credentials-id: '39fa150b-b2a1-416e-b334-29a9a2c0b32d'
+ branches:
+ - xenial-nfs-ganesha-ceph-fsals
+ skip-tag: true
+ wipe-workspace: true
+ basedir: "nfs-ganesha-debian"
- job:
name: nfs-ganesha
project-type: matrix
type: label-expression
name: AVAILABLE_DIST
values:
- - centos6
- centos7
- trusty
- xenial
- - jessie
- - precise
- - wheezy
- axis:
type: dynamic
name: DIST
- ARCHS
scm:
- - git:
- url: https://github.com/nfs-ganesha/nfs-ganesha.git
- # Use the SSH key attached to the ceph-jenkins GitHub account.
- credentials-id: '39fa150b-b2a1-416e-b334-29a9a2c0b32d'
- branches:
- - $NFS_GANESHA_BRANCH
- skip-tag: true
- wipe-workspace: true
- basedir: "nfs-ganesha"
-
- scm:
- - git:
- url: https://github.com/nfs-ganesha/nfs-ganesha-debian.git
- # Use the SSH key attached to the ceph-jenkins GitHub account.
- credentials-id: '39fa150b-b2a1-416e-b334-29a9a2c0b32d'
- branches:
- - xenial-nfs-ganesha-ceph-fsals
- skip-tag: true
- wipe-workspace: true
- basedir: "nfs-ganesha-debian"
+ - nfs-ganesha
+ - nfs-ganesha-debian
builders:
- shell: |