Versions Compared

Key

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

...

Configuring a plan to have a release step:

1) Change the SCM tag of your pom file to SSH. Example:

Code Block
<scm>
    <connection>scm:git:git@github.com:openmrs/openmrs-module-allergyapi.git</connection>
    <developerConnection>scm:git:git@github.com:openmrs/openmrs-module-allergyapi.git</developerConnection>
    <url>https://github.com/openmrs/openmrs-module-allergyapi.git</url>
</scm>

 

2) Create the two 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.

 

Image Added

 

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

Image Added

 

4) Remove the polling trigger of the Distribution repository5) Add a distribution.property variable to your build'Release scripts' repository

 

 

6) Copy the release job from Allergy API, into a manual stage

...