Skip to content

Commit

Permalink
Update group ID in central-repo release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Dec 4, 2018
1 parent 1e0744d commit 8193952
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,15 @@ def uploadToCentral(self, artifactId):
'-DserverId=ossrh',
]
output = subprocess.check_output(mvnArgs)
# idPrefix = 'orgrelaxng' # TODO: Change this when
idPrefix = 'iogithubrelaxng'
idPrefix = 'orgrelaxng'
# The rest of this is a hack that parses the output from the command
# mvn -f <file> org.sonatype.plugins:nexus-staging-maven-plugin:rc-list
# to get the right stagingRepositoryId so that we can fully automate the
# release from the command line rather than manually with the Web UI.
for line in output.decode('utf-8').split('\n'):
if idPrefix not in line:
continue
# stagingRepositoryId = '%s-%s' % (idPrefix, line[18:22])
stagingRepositoryId = '%s-%s' % (idPrefix, line[23:27])
stagingRepositoryId = '%s-%s' % (idPrefix, line[18:22])
mvnArgs = [
mvnCmd,
'-f',
Expand Down

0 comments on commit 8193952

Please sign in to comment.