azure-spring-boot/.release-automation
weiping fb77bedf75
rename package and artifact ids from documentdb to cosmosdb (fix #326)
2018-09-05 10:01:30 +08:00
..
config.json rename package and artifact ids from documentdb to cosmosdb (fix #326) 2018-09-05 10:01:30 +08:00
readme.md add telemetry in application insights (#322) 2018-05-03 19:54:10 -07:00
run.py python scripts for sign and uploading jars to staging repo (#183) 2017-09-21 16:29:33 +08:00
utilities.py remove hard-coded local repository (#185) 2017-09-22 13:57:20 +08:00

readme.md

How to do release automation

  1. setup gpg key Following this instruction to setup gpg key and publish it. save your passphrase.

  2. python version >=3.5.

  3. install necessary python packages: requests, xmltodict, jenkinsapi

  4. run maven install locally. Important when do build please use profile release which will contains ai PROD instrument key. Please refer code here for detail.

  5. setup configuration in config.json

    "targetFolder": "//path-to-your-local-to-copy-signed-jars",
    ...
    "passwords": {
    "jenkins": "your jenkins key to jenkins server http://azuresdkci.cloudapp.net/",
    "gpg": "your gpg key passphrase",
    "nexus": "your nexus key"
    }
    
  6. run run.py.

  7. verify your packages with staging repository id in output, specify repo id in pom.xml.

    	<repositories>
    		<repository>
    			<id>repo-id</id>
    			<name>repo-id</name>
    			<url>https://oss.sonatype.org/content/repositories/repo-id</url>
    		</repository>
    	</repositories>
    
  8. after verification, login to https://oss.sonatype.org, release your repository.