Skip to content

Commit 818b971

Browse files
committed
travis-javadoc: try to mitigate concurrency issues
It seems that Travis CI likes to run multiple cron jobs simultaneously, so we are getting occasional build failures like this: == Updating javadoc.scijava.org repository == [gh-pages c3cd451] Update Java3D javadocs (Travis build 100) 3 files changed, 13 insertions(+), 13 deletions(-) To github.com:scijava/javadoc.scijava.org ! [rejected] gh-pages -> gh-pages (fetch first) error: failed to push some refs to 'git@github.com:scijava/javadoc.scijava.org' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. Doing another "pull --rebase" first may help avoid some of them.
1 parent c4fa099 commit 818b971

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

travis-javadoc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ EOL
129129
test "$success" || exit 1
130130

131131
git commit -m "Update $project javadocs (Travis build $TRAVIS_BUILD_NUMBER)"
132+
git pull --rebase &&
132133
git push -q origin gh-pages > /dev/null || exit 2
133134

134135
echo "Update complete."

0 commit comments

Comments
 (0)