summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2020-03-24 14:18:36 +0100
committerMichael Scherer <misc@redhat.com>2020-03-24 18:13:00 +0100
commit58c4fedc966c6a8ebc9593471807cd7bcce32caa (patch)
tree99db1fe5bb8ab0b68952eefe747d9ced32994a89
parent9ababd6c71eef8e4f954be9b5cae3e8b7fcb0bc6 (diff)
Do deploy only the master branch, not PRs
Change-Id: I4ce3267fb007d8fc4c00075518fef85a970359dd
-rw-r--r--build-gluster-org/scripts/planet.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-gluster-org/scripts/planet.sh b/build-gluster-org/scripts/planet.sh
index ab2158d..aae702f 100644
--- a/build-gluster-org/scripts/planet.sh
+++ b/build-gluster-org/scripts/planet.sh
@@ -13,4 +13,6 @@ $MOCK --copyout /src/build/ $WORKSPACE/build
$MOCK --clean
sudo chown -R jenkins:jenkins build
-scp -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i "$LOG_KEY" -r build/. _bits-gluster@http.int.rht.gluster.org:/var/www/glusterfs-planet
+if [ "$GIT_BRANCH" == 'origin/master' ]; then
+ scp -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -i "$LOG_KEY" -r build/. _bits-gluster@http.int.rht.gluster.org:/var/www/glusterfs-planet
+fi