From 2a24b23f370f967e14612f89bcaa3344ddd0521e Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 18 Aug 2016 16:45:45 +0200 Subject: [PATCH] Continuing the script when failing to check out... it happens for Jenkins for some reason --- docs/src/main/asciidoc/ghpages.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/ghpages.sh b/docs/src/main/asciidoc/ghpages.sh index 0959a305..cae64556 100755 --- a/docs/src/main/asciidoc/ghpages.sh +++ b/docs/src/main/asciidoc/ghpages.sh @@ -208,7 +208,7 @@ function commit_changes_if_applicable() { function checkout_previous_branch() { # If -version was provided we need to come back to root project cd ${ROOT_FOLDER} - git checkout ${CURRENT_BRANCH} + git checkout ${CURRENT_BRANCH} || echo "Failed to check the branch... continuing with the script" if [ "$dirty" != "0" ]; then git stash pop; fi exit 0 }