You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2017/09/08 23:19:39 UTC
mesos git commit: Updated the websitebot to not fail if there are no
changes to commit.
Repository: mesos
Updated Branches:
refs/heads/master afb175de7 -> 297b7042a
Updated the websitebot to not fail if there are no changes to commit.
The script now runs git commit and push commands only when necessary.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/297b7042
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/297b7042
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/297b7042
Branch: refs/heads/master
Commit: 297b7042a7ef65aafca40832b5f8736e27e26ed2
Parents: afb175d
Author: Vinod Kone <vi...@gmail.com>
Authored: Fri Sep 8 14:40:03 2017 -0700
Committer: Vinod Kone <vi...@gmail.com>
Committed: Fri Sep 8 16:19:31 2017 -0700
----------------------------------------------------------------------
support/jenkins/websitebot.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/297b7042/support/jenkins/websitebot.sh
----------------------------------------------------------------------
diff --git a/support/jenkins/websitebot.sh b/support/jenkins/websitebot.sh
index dccbbc3..ac398cc 100755
--- a/support/jenkins/websitebot.sh
+++ b/support/jenkins/websitebot.sh
@@ -45,7 +45,12 @@ popd # $MESOS_DIR
pushd "$MESOS_SITE_DIR"
git add .
-git commit -m "Updated the website built from mesos SHA: $MESOS_HEAD_SHA."
-git push origin HEAD:refs/heads/asf-site
+
+if ! git diff --cached --quiet; then
+ git commit -m "Updated the website built from mesos SHA: $MESOS_HEAD_SHA."
+ git push origin HEAD:refs/heads/asf-site
+else
+ echo "No changes to website detected"
+fi
popd # $MESOS_SITE_DIR