Migrate jar_publish config scope.

Review Request #2175 - Created May 7, 2015 and submitted

Information
John Sirois
pants
jsirois/publishing/fix_config
1505
ff28ecd...
Reviewers
pants-reviews
benjyw, zundel
pants.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Before:

$ pants.dev publish src/java/::
...
14:51:22 00:00   [publish]
14:51:22 00:00     [jar]
FAILURE: This repo is not configured to publish externally! Please configure per
http://pantsbuild.github.io/publish.html#authenticating-to-the-artifact-repository,
or re-run with the '--publish-local' flag.

And in fact:

$ pants.dev binary src/python/pants/option:migrate_config &>/dev/null && ./dist/migrate_config.pex
Checking config file at ./pants.ini for unmigrated keys.
Found repos in section [publish]. Should be repos in section [publish.jar].
Found restrict_push_branches in section [publish]. Should be restrict_push_branches in section [publish.jar].

After:

$ pants.dev publish src/java/::
...
14:51:22 00:00   [complete]
               FAILURE

$ pants.dev publish src/java/::
14:51:46 00:01   [publish]
14:51:46 00:01     [jar]
                   Skipping check for a clean jsirois/publishing/fix_config branch in test mode.No changes for org.pantsbuild#junit-runner-annotations;0.0.1

14:51:46 00:01       [jar-tool]
14:51:46 00:01       [jar-tool]
14:51:46 00:01       [jar-tool]
14:51:46 00:01       [jar-tool]Skipping publish of org.pantsbuild#args4j;0.0.2 in test mode.

14:51:46 00:01       [jar-tool]
14:51:46 00:01       [jar-tool]Skipping publish of org.pantsbuild#jar-tool;0.0.1 in test mode.

14:51:46 00:01       [jar-tool]
14:51:46 00:01       [jar-tool]Skipping publish of org.pantsbuild#junit-runner-withretry;0.0.2 in test mode.

14:51:46 00:01       [jar-tool]
14:51:46 00:01       [jar-tool]Skipping publish of org.pantsbuild#junit-runner;0.0.2 in test mode.

14:51:46 00:01   [complete]
               SUCCESS

CI went green here:
https://travis-ci.org/pantsbuild/pants/builds/61687720

Benjy Weinberger
Eric Ayers
John Sirois
Eric Ayers
Stu Hood
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Loading...