]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
nfs-ganesha-stable: fixes to get build scripts working
authorAli Maredia <amaredia@redhat.com>
Tue, 22 Aug 2017 18:05:25 +0000 (14:05 -0400)
committerAli Maredia <amaredia@redhat.com>
Wed, 23 Aug 2017 16:00:17 +0000 (12:00 -0400)
-ntirpc scm wasn't applying properly
-clean up ntirpc directory
-various pbuilder related fixes
-directory ownership fix for creating local ntirpc repo

Signed-off-by: Ali Maredia <amaredia@redhat.com>
nfs-ganesha-stable/build/build_deb
nfs-ganesha-stable/build/setup
nfs-ganesha-stable/config/definitions/nfs-ganesha-stable.yml

index 32c57130073e4c9b14cf88b20476b1c010ecd281..edbba33d327898ac435f229e8a3bc262ca97fe3b 100644 (file)
@@ -34,23 +34,30 @@ sudo dpkg-buildpackage -S -us -uc -d
 
 ## Setup the pbuilder
 setup_pbuilder
+PBUILDDIR="/srv/debian-base"
 
 ## Build with pbuilder
 echo "Building ntirpc debs"
 
-sudo pbuilder --clean
+sudo pbuilder --clean \
+    --distribution $DIST \
+    --basetgz $PBUILDDIR/$DIST.tgz
 
 # add missing packages and components to pbuilder
 sudo pbuilder update \
+    --distribution $DIST \
+    --basetgz $PBUILDDIR/$DIST.tgz \
     --extrapackages "cmake libkrb5-dev libjemalloc-dev debhelper apt-transport-https apt-utils ca-certificates" \
     --components "main restricted universe multiverse" \
     --override-config
 
-echo "Building debs for $DIST"
 sudo pbuilder build \
+    --distribution $DIST \
+    --basetgz $PBUILDDIR/$DIST.tgz \
     --buildresult $WORKSPACE/dist/ntirpc/deb/ \
     $WORKSPACE/libntirpc_${NTIRPC_VERSION}-1${DIST}.dsc
 
+sudo chown -R jenkins-build:jenkins-build $WORKSPACE/dist/ntirpc/deb
 cd $WORKSPACE/dist/ntirpc/deb
 apt-ftparchive packages . > Packages
 
@@ -134,16 +141,19 @@ dch -v "$VERSION-1${DIST}" "$VERSION for Shaman"
 sudo dpkg-buildpackage -S -us -uc -d
 
 ## Build with pbuilder
-echo "Building debs"
+echo "Building nfs-ganesha debs"
 
-PBUILDDIR="/srv/debian-base"
+sudo pbuilder --clean \
+    --distribution $DIST \
+    --basetgz $PBUILDDIR/$DIST.tgz
 
-sudo pbuilder --clean
 
 mkdir -p $WORKSPACE/dist/deb
 
 # add missing packages and components to pbuilder
 sudo pbuilder update \
+    --distribution $DIST \
+    --basetgz $PBUILDDIR/$DIST.tgz \
     --extrapackages "apt-transport-https apt-utils ca-certificates librados-dev libcephfs-dev librgw-dev libntirpc-dev debhelper python-all" \
     --components "main restricted universe multiverse" \
     --othermirror "${SHAMAN_MIRROR}" \
index a0ef6cf498cbd65efa1602c1de7d71bdd0661d35..cf78e57061ab808a1726904c9b98554eb4afbe17 100644 (file)
@@ -27,6 +27,9 @@ git clean -fxd
 cd $WORKSPACE/nfs-ganesha-debian
 git clean -fxd
 
+cd $WORKSPACE/ntirpc
+git clean -fxd
+
 # Make sure the dist directory is clean
 cd $WORKSPACE
 rm -rf dist
index 6966859e972940f6193ad0644774b28f31fb89b2..2b2d7a5740699f8190674ea8a4735da16228d64d 100644 (file)
@@ -19,6 +19,7 @@
           skip-tag: true
           wipe-workspace: true
           basedir: "nfs-ganesha-debian"
+
 - scm:
     name: ntirpc
     scm:
@@ -29,6 +30,7 @@
           skip-tag: true
           wipe-workspace: true
           basedir: "ntirpc"
+
 - job:
     name: nfs-ganesha-stable
     project-type: matrix
@@ -135,6 +137,7 @@ If this is checked, then the binaries will be built and pushed to chacra even if
     scm:
       - nfs-ganesha
       - nfs-ganesha-debian
+      - ntirpc
 
     builders:
       - shell: |