Skip to content

Commit 1461866

Browse files
committed
travis-build: disable TLSv1.3
Hopefully this will avoid intermittent errors of the form: javax.net.ssl.SSLException: No PSK available. Unable to resume. Credit for the workaround: https://stackoverflow.com/a/54280095/1207769
1 parent cd736c7 commit 1461866

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

travis-build.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,22 +136,23 @@ EOL
136136
fi
137137

138138
# Run the build.
139+
BUILD_ARGS='-B -Djdk.tls.client.protocols="TLSv1,TLSv1.1,TLSv1.2"'
139140
if [ "$deployOK" -a "$TRAVIS_BRANCH" = master ]
140141
then
141142
echo
142143
echo "== Building and deploying master SNAPSHOT =="
143-
mvn -B -Pdeploy-to-scijava deploy
144+
mvn -Pdeploy-to-scijava $BUILD_ARGS deploy
144145
checkSuccess $?
145146
elif [ "$deployOK" -a -f release.properties ]
146147
then
147148
echo
148149
echo "== Cutting and deploying release version =="
149-
mvn -B release:perform
150+
mvn -B $BUILD_ARGS release:perform
150151
checkSuccess $?
151152
else
152153
echo
153154
echo "== Building the artifact locally only =="
154-
mvn -B install javadoc:javadoc
155+
mvn $BUILD_ARGS install javadoc:javadoc
155156
checkSuccess $?
156157
fi
157158
echo travis_fold:end:scijava-maven

0 commit comments

Comments
 (0)