Skip to content

Commit

Permalink
[DEVOPS-3234] yb_release: Change clean step error to warning
Browse files Browse the repository at this point in the history
Summary:
In some environments, the "sbt clean" step resolves dependency and successfully downloads the
scala-sbt module, but still returns error and causes the entire build to fail.
This changes an error on the clean step to a warning.

Should not affect official builds that always happen in a clean source tree. A real fatal error
would be detected a bit later when checking for build results.

Test Plan: Jenkins: compile only, build type: release

Reviewers: jmak, kkannan

Reviewed By: jmak

Subscribers: devops, yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D38023
  • Loading branch information
svarnau committed Sep 13, 2024
1 parent 2ac2e98 commit ea51592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed/yb_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
common_sbt_options = ['-batch', '-no-colors']
_, err = Popen(["sbt", "clean"] + common_sbt_options, stderr=PIPE).communicate()
if err:
raise RuntimeError(err)
log_message(logging.WARNING, "sbt clean error: " + str(err))

log_message(logging.INFO, "Kick off SBT universal packaging")

Expand Down

0 comments on commit ea51592

Please sign in to comment.