无法在jgitflow上将工件部署到nexus:来自bamboo的release-finish

问题描述 投票:0回答:1

我是第一次在竹子上设置jgitflow发布任务。我们在父pom中定义了nexus url,并为从它继承的项目提供了以下jgitflow配置,如下所示

             <plugin>
                <groupId>external.atlassian.jgitflow</groupId>
                <artifactId>jgitflow-maven-plugin</artifactId>
                <version>1.0-m5.1</version>
                <configuration>
                    <scmCommentPrefix>[RELEASE] </scmCommentPrefix>
                    <pushReleases>true</pushReleases>
                    <pushFeatures>true</pushFeatures>
                    <pushHotfixes>true</pushHotfixes>
                    <noFeatureBuild>true</noFeatureBuild>
                    <noReleaseBuild>true</noReleaseBuild>
                    <noHotfixBuild>true</noHotfixBuild>
                    <keepBranch>false</keepBranch>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <allowUntracked>true</allowUntracked>
                    <pullDevelop>true</pullDevelop>
                    <pullMaster>true</pullMaster>
                    <allowSnapshots>true</allowSnapshots>
                </configuration>
            </plugin>

当我运行jgitflow:release-finish时,会创建和更新develop和master versiongs /标签,而构建的工件不会被推送到已配置的nexus服务器中。任何人都可以告诉我,如果有一些我丢失的竹子或jgitflow配置有什么问题吗?

maven nexus bamboo jgitflow-maven-plugin bamboo-artifacts
1个回答
0
投票

我找到了问题并解决了它。我在jgitflow配置(在pom.xml中)中将noReleaseBuild默认为true以避免在本地构建,但是对于Bamboo的发布 - 完成,我通过传递-DnoReleaseBuild = true来覆盖该值。不幸的是,在日志中(通过-X启用之后),我看到完成任务没有覆盖pom.xml上的noReleaseBuild默认值,因此从未部署版本构建。我删除了我在pom.xml中添加的默认配置,这导致将工件推送到父pom上的nexus配置url。

© www.soinside.com 2019 - 2024. All rights reserved.