Maven release plugin configuration on Jenkins

Maven configuration file settings.xml on the Jenkins server

Insert the following profile in the settings.xml that is on your Jenkins server:


<profile>
  <id>gitlab</id>
  <properties>
      <project.scm.id>gitlab</project.scm.id>
  </properties>
</profile>  

And insert the following server configuration in the same file


<server>
   <id>gitlab</id>
   <username>your-gitlab-username<username>
   <password>your-gitlab-password<password>
</server>

Job configuration on the Jenkins server

  1. Install the Maven Release Plug-in Plug-in
  2. Configure the build job to add the profile to the maven command line
    -Pgitlab

You can now enjoy performing releases from your Jenkins server.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s