Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel2

...

Add a link to the Releasing a Module from Bamboo page in the plan config. For example, 'More details of the release in https://wikiopenmrs.openmrsatlassian.orgnet/wiki/x/i4DTAwMi9YAQ'

2.2) Repositories tab, 'Git' repository

...

If your module doesn't have any test cases, then Goto Configuration → Tasks → Maven 3 X. Then clear the selection of the "The build will produce test results". Otherwise you might get the build failures. 

Image Modified

2.7) Refapp distro release tasks

...

Expand

1) Add a link to the Releasing a Module from Bamboo page in the plan config

For example, 'More details of the release in https://wikiopenmrs.openmrsatlassian.orgnet/wiki/x/i4DTAwMi9YAQ'

2) Create the plan variables:

  • maven.development.version - leave it empty. It could be used to override the default value
  • maven.release.version: add the next release version of this module. Check the pom file in doubt. 
  • refapp.distro.property: only necessary if this module is part of the refapp distro. The maven property in the refapp distro pom file for this module.

(warning) If you are using Release test module as a guide, ignore the refapp.distro.dev.branch variable. It's there only for testing purposes.



3) In the plan configuration, add 'Release scripts' as the second repository:

This repository contains some scripts to execute the release.


4) Remove the polling trigger of the 'Release scripts' repository


5) Create a manual stage for the release:


6) Create the job for that stage

You can use Release module - Release to maven job as a reference.

6.1) Checkout task:

6.2) Release prepare/perform

Execute the release bash script from https://github.com/openmrs/openmrs-contrib-bamboo

If your build requires JDK 8, make sure to add JAVA_HOME=${bamboo.capability.system.jdk.openjdk-8-jdk} to the environment variables. 

6.3) Retrieve from the pom file what will be the next release

Save next version in the plan.


6.4) Retrieve the snapshot version to use in the next task

Only if this module is part of the refapp distro



6.5) Update version in the distro

Only if this module is part of the refapp distro

Execute the distro update bash script from https://github.com/openmrs/openmrs-contrib-bamboo

 

...

If you do not have access to bamboo, ask OpenMRS Help Desk.

Resources

Module Release