首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven发布插件Jenkins不断地将Trunk复制到Tag中,而不是分支中

Maven发布插件Jenkins不断地将Trunk复制到Tag中,而不是分支中
EN

Stack Overflow用户
提问于 2018-02-27 20:57:30
回答 1查看 237关注 0票数 0

我需要释放一个较老的分支,以满足不同团队的依赖。使用maven-release插件通过Jenkins进行设置。正如标题所暗示的那样,一切都很顺利,直到它到达复制到标签阶段,在这个阶段,它不是复制分支,而是复制主干,并在尝试构建它时失败,因为主干被设置为部署到不同的结点。

请帮帮忙,我已经绞尽脑汁快一天了。

jenkins目前的目标:

-X -DdryRun=${DRY_RUN_MODE} -DbranchName=release_1.243 -Dapp.svn.repo=${APP_SVN_REPO}干净发布:准备发布:执行

当前配置:

代码语言:javascript
复制
<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>
EN

回答 1

Stack Overflow用户

发布于 2018-02-28 16:49:59

代码语言:javascript
复制
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应该得到信任,即使我在阅读他的评论之前就解决了它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49009282

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档