在Jenkins配置中,我们输入了Artifactory URL。
我们使用Artifactory插件定义了一个Maven作业。
设置如下;
Build Environment:
Enable Artifactory release management is unchecked
Resolve artifacts from Artifactory is unchecked
Post-Build Actions
Artifact Server = valid url
Target releases repository = libs-release-local
Target snapshot repository = libs=snapshot-local
Custom stating configuration = None
Deploy maven artifacts = checked
Filter exclude artifacts from build Info = checked
出于某种原因,我们无法将我们的war文件推送到libs-release-local,转到libs-snapshot-local就好了。有什么想法吗?
答案 0 :(得分:0)
libs-release-local
仅接受发布,libs-snapshot-local
仅接受快照。
由于您的战争可能只是发布或快照,而不是两者,因此将其部署到其中一个存储库是很自然的,而不是另一个存储库。