Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Maven plugin to create gitlab release tags

License

Notifications You must be signed in to change notification settings

avides/gitlab-release-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-release-maven-plugin

Maven Central Codacy Badge Codacy Badge Build Status

The gitlab-release-maven-plugin creates tags on your GitLab Repository by your project version in your maven build.

Plugin

With required configuration options

<plugin>
    <groupId>com.avides.gitlab</groupId>
    <artifactId>gitlab-release-maven-plugin</artifactId>
    <version>2.2.0-RELEASE</version>
</plugin>

With all options

<plugin>
    <groupId>com.avides.gitlab</groupId>
    <artifactId>gitlab-release-maven-plugin</artifactId>
    <version>2.2.0-RELEASE</version>
    <configuration>
        <gitlabHost>http://your-custom-gitlab-domain/</gitlabHost>
        <gitlabAccessToken>GITLAB_ACCESS_TOKEN</gitlabAccessToken>
        <gitlabRepositoryNamespace>repository-namespace</gitlabRepositoryNamespace>
        <gitlabRepositoryName>project-name</gitlabRepositoryName>
        <projectVersion>0.1.0-RELEASE</projectVersion>
        <gitlabPreReleaseDesired>true</gitlabPreReleaseDesired>
        <gitlabBranchName>YOUR_DEPLOYMENT_BRANCH</gitlabBranchName>        
    </configuration>
</plugin>

Configuration options

Property Description Required
gitlabHost Your custom GitLab URL (default: https://gitlab.com) No
gitlabAccessToken Your User GitLab Access Token (Pass this token directly in the execute command, -DgitlabAccessToken=ACCESS_TOKEN) Yes
gitlabRepositoryNamespace Repository namespace (If project.scm.url is set in your pom, it will be resolved automatically.) No
gitlabRepositoryName Repository name (default: ${project.name}) No
projectVersion Project version and finally the Release-Tag name (default: ${project.version}) No
gitlabPreReleaseDesired If true, PRE-Releases will be create a Release-Tag, otherwise not (default: false) No
gitlabBranchName Your deployment branch (default: master) No

Usage

mvn gitlab-release:release -DgitlabAccessToken=ACCESS_TOKEN