Skip to content

Commit 1ce7a04

Browse files
committed
Add retries to the PR CI runs as well
1 parent d4d3b81 commit 1ce7a04

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build-aux/Jenkinsfile.pr

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1313
// License for the specific language governing permissions and limitations under
1414
// the License.
15-
build_and_test = '''
15+
16+
build = '''
1617
mkdir -p ${ERLANG_VERSION}
1718
cd ${ERLANG_VERSION}
1819
rm -rf build
@@ -21,7 +22,6 @@ cd build
2122
tar -xf ${WORKSPACE}/apache-couchdb-*.tar.gz
2223
cd apache-couchdb-*
2324
./configure --with-nouveau --with-clouseau --js-engine=${JS_ENGINE}
24-
make check || (make build-report && false)
2525
'''
2626

2727
docs_changed = "git diff --name-only origin/${env.CHANGE_TARGET} | grep -q '^src/docs/'"
@@ -274,7 +274,8 @@ pipeline {
274274
}
275275
steps {
276276
unstash 'tarball'
277-
sh( script: build_and_test )
277+
sh( script: build )
278+
retry(3) {sh 'cd ${ERLANG_VERSION}/build/apache-couchdb-* && make check || (make build-report && false)'}
278279
}
279280
post {
280281
always {

0 commit comments

Comments
 (0)