我需要释放一个较老的分支,以满足不同团队的依赖。使用maven-release插件通过Jenkins进行设置。正如标题所暗示的那样,一切都很顺利,直到它到达复制到标签阶段,在这个阶段,它不是复制分支,而是复制主干,并在尝试构建它时失败,因为主干被设置为部署到不同的结点。
请帮帮忙,我已经绞尽脑汁快一天了。
jenkins目前的目标:
-X -DdryRun=${DRY_RUN_MODE} -DbranchName=release_1.243 -Dapp.svn.repo=${APP_SVN_REPO}干净发布:准备发布:执行
当前配置:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<configuration>
<branchName>release_1.243</branchName>
<tagNameFormat>release_branch_@{project.version}</tagNameFormat>
</configuration>
</plugin>
<scm>
<connection>${project.svn.repo}/trunk</connection>
<!-- Because we have a single-module SVN repo with a FLAT multi-module
file structure, we need to point to this parent pom's folder in the developer
connection, not the root (trunk) repo. -->
<developerConnection>scm:svn:${project.svn.repo}/trunk/app-parent</developerConnection>
</scm>发布于 2018-02-28 16:49:59
connection>${mach.svn.repo}/branches/release_1.243</connection>
<!-- Because we have a single-module SVN repo with a FLAT multi-module
file structure, we need to point to this parent pom's folder in the developer
connection, not the root (trunk) repo. -->
<developerConnection>scm:svn:${mach.svn.repo}/branches/release_1.243/efx-parent</developerConnection>这解决了它,但khmarbaise应该得到信任,即使我在阅读他的评论之前就解决了它。
https://stackoverflow.com/questions/49009282
复制相似问题