Skip to content

Commit 10ae116

Browse files
authored
Merge pull request #7751 from vvbandeira/bazel-keep_going
ci: add try/catch to consider keep_going
2 parents 5e07cc7 + ec2fc68 commit 10ae116

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,13 @@ def bazelTest = {
264264
if (env.BRANCH_NAME != 'master') {
265265
cmd += ' --remote_upload_local_results=false';
266266
}
267-
sh label: 'Bazel Build', script: cmd + ' --google_credentials=$GCS_SA_KEY ...';
267+
cmd += ' --google_credentials=$GCS_SA_KEY';
268+
try {
269+
sh label: 'Bazel Build', script: cmd + ' ...';
270+
} catch (e) {
271+
currentBuild.result = 'FAILURE';
272+
sh label: 'Bazel Build (keep_going)', script: cmd + ' --keep_going ...';
273+
}
268274
}
269275
}
270276
}

0 commit comments

Comments
 (0)