Skip to end of metadata
Go to start of metadata

How to migrate your old account/workspace/... to the new Jenkins infrastructure

Moving plugin development to Jenkins

Override the maven release plugin configuration

This is only for plugin that depend on a parent POM 1.387 and earlier. This prevents the release process from executing hpi:upload and hpi:announce goals, which fail.

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <goals>deploy</goals>
        </configuration>
      </plugin>
    </plugins>
  </build>

Override the SCM setting

For plugins on GitHub, add the following entry in your POM:

  <scm>
    <connection>scm:git:git://github.com/jenkinsci/YOURPLUGIN.git</connection>
    <developerConnection>scm:git:git@github.com:jenkinsci/YOURPLUGIN.git</developerConnection>
  </scm>

You may also use GitHub https URLs if your corporate network blocks ssh connections.

For plugins still on Subversion, add the following entry in your POM. This is only needed when you depend on 1.397 and earlier.

 <scm>
   <connection>scm:svn:https://svn.jenkins-ci.org/trunk/hudson/plugins/YOURPLUGIN</connection>
   <developerConnection>scm:svn:https://svn.jenkins-ci.org/trunk/hudson/plugins/YOURPLUGIN</developerConnection>
 </scm>

Override the Maven repository location

Add the following declaration in your plugin POM:

  <distributionManagement>
    <repository>
      <id>maven.jenkins-ci.org</id>
      <url>http://maven.jenkins-ci.org:8081/content/repositories/releases/</url>
    </repository>
  </distributionManagement>

Add a new server entry in your $HOME/.m2/settings.xml file, use your Jenkins account for this Maven repository. If you don't have a settings.xml yet, then use the following snippet as starting point:

settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <servers>
    <server>
      <id>maven.jenkins-ci.org</id>
      <username>...</username>
      <password>...</password>
    </server>
  </servers>

</settings>

Specify your Jenkins account user name and password. You may also follow these instructions to encrypt the password stored in settings.xml.

Specify new tools location in $HOME/.m2/settings.xml

Change <pluginGroup>org.jvnet.hudson.tools</pluginGroup> to <pluginGroup>org.jenkins-ci.tools</pluginGroup>.

  • No labels

2 Comments

  1. We have a Jenkins plugin under development that is able to migrate build jobs from AnthillPro to Jenkins Pipline. More information http://epicforce.net/build-and-release/uncategorized/anthill-pro-to-jenkins-migration-plugin-tool/06/09/2017

  2. We already built the solution for migrating build workflows from Anthillpro to Jenkins. Our solution has already been used by several customers. See http://www.excelodata.com.