Skip to content

Commit

Permalink
Update README auto documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
debovema committed Feb 13, 2018
1 parent 63c5a23 commit baf9cad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions release-trigger-branch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ This branch is a release trigger. It means that **whenever a commit is pushed on

## How to trigger a release ?

There is two different methods to trigger a release.
They will both commit & push a change on this *release trigger branch* which will trigger a build on Gitlab CI.
There are several methods to trigger a release.
They will all commit & push a change on this *release trigger branch* which will trigger a build on Gitlab CI.

### automatically from Gitlab

To trigger a new release with *$INCREMENT_POLICY* increment policy, simply [run a new pipeline]($GIT_REPOSITORY_URL_NO_EXT/pipelines/new) after selecting *$RELEASE_TRIGGER_BRANCH* in the list.
That's it !

### automatically
### automatically from this repository

* clone this repository:
```shell
Expand All @@ -37,7 +37,7 @@ chmod u+x ./release.sh

This script will update the [*release.properties*](./release.properties) file with next versions (based on ```INCREMENT_POLICY``` set in [*release.properties*](./release.properties) and current version set in POM of branch $SOURCE_BRANCH) then commit and push this file on this *release trigger branch*, hence triggering a release.

### setting manually the versions
### manually

* clone this repository:
```shell
Expand Down Expand Up @@ -70,6 +70,8 @@ git add release.properties && git commit -m "Triggering release $RELEASE_VERSION
git push origin $RELEASE_TRIGGER_BRANCH
```

These versions numbers can also be [edited directly in Gitlab]($GIT_REPOSITORY_URL_NO_EXT/edit/$RELEASE_TRIGGER_BRANCH/release.properties).

## Full documentation

The full documentation for the Maven auto releaser v$MAVEN_AUTO_RELEASER_VERSION can be found at https://github.com/debovema/maven-auto-releaser/blob/$MAVEN_AUTO_RELEASER_VERSION_TAG/README.md.
3 changes: 2 additions & 1 deletion release-trigger-branch/release.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# $PROJECT_NAME release properties

DEV_VERSION=0.0.1-SNAPSHOT
# set manually the version or leave 0.0.0 for automatic guessing
RELEASE_VERSION=0.0.0
DEV_VERSION=0.0.1-SNAPSHOT

# Git user info
GIT_USER_NAME="$GIT_USER_NAME"
Expand Down

0 comments on commit baf9cad

Please sign in to comment.