Add support for restricting push remotes.

Review Request #2383 - Created June 16, 2015 and submitted

Information
John Sirois
pants
jsirois/jar_publish/restrict_origin
1680, 1702
80bae10...
Reviewers
pants-reviews
areitz, dturner-tw, zundel
This adds a new advanced `--restrict-push-urls` option that can be used
to restrict the set of valid remote scm urls that can be published to.

Pants immediately dogfoods this to restrict jar publishing from master
to pantsbuild/pants.

Test coverage is added for the ScmPublishMixin clean master check.

 pants.ini                                                      |  4 +++
 src/python/pants/backend/core/tasks/scm_publish.py             | 42 ++++++++++++++++++++----
 src/python/pants/scm/scm.py                                    |  3 +-
 tests/python/pants_test/backend/core/tasks/BUILD               | 19 +++++++++++
 tests/python/pants_test/backend/core/tasks/__init__.py         |  0
 tests/python/pants_test/backend/core/tasks/test_scm_publish.py | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 147 insertions(+), 9 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/67122873

Issues

  • 0
  • 0
  • 1
  • 1
Description From Last Updated
Andy Reitz
John Sirois
Andy Reitz
Eric Ayers
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...