From f95a509538f45cf2f0a2c22fcfa303210e053122 Mon Sep 17 00:00:00 2001 From: Alexander Reelsen Date: Mon, 17 Aug 2015 16:32:45 +0200 Subject: [PATCH] Release script: Set versions for non inherited projects rest-api-spec and dev-tools dont have the elasticsearch-parent set as a parent and thus need a separate mvn run to change the plugin version. --- dev-tools/prepare_release_create_release_version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev-tools/prepare_release_create_release_version.py b/dev-tools/prepare_release_create_release_version.py index 8442c35defd..53da1ae39c6 100644 --- a/dev-tools/prepare_release_create_release_version.py +++ b/dev-tools/prepare_release_create_release_version.py @@ -117,6 +117,8 @@ if __name__ == "__main__": ensure_checkout_is_clean() + run('cd dev-tools && mvn versions:set -DnewVersion=%s -DgenerateBackupPoms=false' % (release_version)) + run('cd rest-api-spec && mvn versions:set -DnewVersion=%s -DgenerateBackupPoms=false' % (release_version)) run('mvn versions:set -DnewVersion=%s -DgenerateBackupPoms=false' % (release_version)) remove_version_snapshot(VERSION_FILE, release_version) @@ -132,10 +134,11 @@ if __name__ == "__main__": print(' 1. Remove all _remote.repositories: find %s -name _remote.repositories -exec rm {} \;' % (localRepoElasticsearch)) print(' 2. Rename all maven metadata files: for i in $(find %s -name "maven-metadata-local.xml*") ; do mv "$i" "${i/-local/}" ; done' % (localRepoElasticsearch)) print(' 3. Sync %s into S3 bucket' % (localRepoElasticsearch)) - print (' s3cmd sync %s s3://download.elasticsearch.org/elasticsearch/staging/elasticsearch-%s-%s/maven/org/elasticsearch' % (localRepoElasticsearch, release_version, shortHash)) + print (' s3cmd sync %s s3://download.elasticsearch.org/elasticsearch/staging/elasticsearch-%s-%s/maven/org/' % (localRepoElasticsearch, release_version, shortHash)) print(' 4. Create repositories: ') print (' export S3_BUCKET_SYNC_TO="download.elasticsearch.org/elasticsearch/staging/elasticsearch-%s-%s/repos"' % (release_version, shortHash)) print (' export S3_BUCKET_SYNC_FROM="$S3_BUCKET_SYNC_TO"') print(' dev-tools/build_repositories.sh %s' % (release_version)) print('') print('NOTE: the above mvn command will promt you several times for the GPG passphrase of the key you specified you can alternatively pass it via -Dgpg.passphrase=yourPassPhrase') + print('NOTE: Running s3cmd might require you to create a config file with your credentials, if the s3cmd does not support suppliying them via the command line!')