Release a Service
You have implemented changes in your Service and want to release them so that the new version could be used in an Application.
Descriptionโ
This How-To will cover how you can increase the version number of your project and trigger a release of the latest state. The instructions are working for both Domain service and Basic service projects.
Preconditionsโ
- You have finished off your changes in the Solution Designer or in the implementation and pushed them successfully
Stepsโ
Increase version numberโ
Increasing the version number is a manual step that needs to be done within your IDE.
-
Open the cloned project with your IDE.
-
-
for JavaScript / TypeScript projects
Open the filepackage.jsonand find the version number in the fieldversion -
for Java projects
Open the filepom.xmland find the version number in the fieldversion
-
-
Adjust the version number an set it to a higher value (e. g. adjust it from
1.0.0to1.0.1)โน๏ธnoteIt is recommended to use the Semantic Versioning approach when deciding for a new version number depending on the changes that are included in the release.
๐กtipDuring development, it is common practice to use a pre-release version number like
1.0.0-alpha. If you use this syntax, there is no need of updating the version number by hand to create a new release. However, for the production case a dedicated version number is recommended. -
Commit and push the changes to the GIT repository.
Release new versionโ
After updating the version number, the new release can be created.
-
Open the CI/CD area of your project in the Solution Designer.
-
Create the release with the help of a Release Pipeline.
- Please create one by using the "Create" button in the pipeline configurations overview:
If the pipeline fails, it might be that you have already created a release with the set version number beforehand. Please ensure that the version number has not been used so far.
After the pipeline run finished successfully, a new release of the Service has been created and is ready to be used in the Application.