Add option to suppress printing the changelog during publishing

Review Request #2140 - Created April 29, 2015 and submitted

Information
Andy Reitz
pants
d5eabd5...
Reviewers
pants-reviews
benjyw, nhoward_tw, stuhood, zundel

When publishing (particularily when publishing named snapshots from a CI job) the changelog output can be quite verbose, and not actually read by a human. With this option, we can have more concise output.

Before:

[prometheus pants (areitz/add_changelog_suppress_option)]$ PANTS_DEV=1 ./pants publish examples/src/scala/org/pantsbuild/example:jvm-run-example-lib --no-publish-dryrun --publish-named-snapshot=areitz_test --publish-local=~/Desktop 
*** Running pants in dev mode from /Users/areitz/workspace/pants/src/python/pants/bin/pants_exe.py ***
INFO] Detected git repository at /Users/areitz/workspace/pants on branch areitz/add_changelog_suppress_option

14:51:34 00:00 [main]
...
14:51:35 00:01   [publish]
14:51:35 00:01     [publish]
                   Skipping check for a clean areitz/add_changelog_suppress_option branch in test mode.
Changes for org.pantsbuild.example#hello-greet since Semver(0.0.0) @ None:

commit 4d766958e9b9d5ff96b5626508ea8ca0226d1f41
Author: Eric Ayers <zundel@squareup.com>
Date:   Mon Apr 6 21:48:31 2015 -0400

    Refactor com.pants package to org.pantsbuild in examples and testprojects

    As discussed in previous PRs and pants-devel, we want to update our naming to refer to
    the project's official domain name 'org.pantsbuild' This involves moving the example code
    and testproject code to different directories and updating some publishing org/groupIds as well.

    All of this refactoring was done mechanically with a script posted to the
    group at https://groups.google.com/forum/#!topic/pants-devel/6K4Ee4wtJmk

    Testing Done:
    CI green at: https://travis-ci.org/pantsbuild/pants/builds/57378224

    Bugs closed: 1371

    Reviewed at https://rbcommons.com/s/twitter/r/2037/

 .../pantsbuild/example/hello/greet/Greeting.java   | 41 ++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Publish org.pantsbuild.example#hello-greet with revision Namedver(areitz_test) ? [y|N] y



14:51:38 00:04       [jar-tool]
14:51:38 00:04       [jar-tool]
14:51:38 00:04       [jar-publish]WARN] Scrubbing JAVA_TOOL_OPTIONS=-Dfile.encoding=utf8

Changes for org.pantsbuild.example.hello#welcome since Semver(0.0.0) @ None:

commit 4d766958e9b9d5ff96b5626508ea8ca0226d1f41
Author: Eric Ayers <zundel@squareup.com>
Date:   Mon Apr 6 21:48:31 2015 -0400

    Refactor com.pants package to org.pantsbuild in examples and testprojects
...

After:

[prometheus pants (areitz/add_changelog_suppress_option)]$ PANTS_DEV=1 ./pants publish examples/src/scala/org/pantsbuild/example:jvm-run-example-lib --no-publish-dryrun --publish-named-snapshot=areitz_test --publish-local=~/Desktop --no-publish-print-changelog
*** Running pants in dev mode from /Users/areitz/workspace/pants/src/python/pants/bin/pants_exe.py ***
INFO] Detected git repository at /Users/areitz/workspace/pants on branch areitz/add_changelog_suppress_option

14:51:48 00:00 [main]
...
14:51:48 00:00   [publish]
14:51:48 00:00     [publish]
                   Skipping check for a clean areitz/add_changelog_suppress_option branch in test mode.
Publish org.pantsbuild.example#hello-greet with revision Namedver(areitz_test) ? [y|N] y



14:51:58 00:10       [jar-tool]
14:51:58 00:10       [jar-tool]
14:51:58 00:10       [jar-publish]WARN] Scrubbing JAVA_TOOL_OPTIONS=-Dfile.encoding=utf8

Publish org.pantsbuild.example.hello#welcome with revision Namedver(areitz_test) ? [y|N] y
...

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Stu Hood
Eric Ayers
Andy Reitz
Nick Howard (Twitter)
Andy Reitz
Nick Howard (Twitter)
Andy Reitz
Review request changed

Status: Closed (submitted)

Loading...