We're looking at using the Jenkins Artifactory plugin with its Gradle Integration, mostly for its License Check feature . In our case we do not need this plugin to publish any artifacts to Artifactory, just the build info and license check info. Is there a way to configure the plugin to do this? No matter what I do, it seems to always run the artifactoryPublish task in Gradle.
我们正在考虑将Jenkins Artifactory插件与Gradle Integration一起使用,主要用于其许可检查功能。在我们的例子中,我们不需要这个插件来向Artifactory发布任何工件,只需要构建信息和许可证检查信息。有没有办法配置插件来做到这一点?无论我做什么,似乎总是在Gradle中运行artifactoryPublish任务。
1 个解决方案
#1
1
If you use the Artifactory Gradle plugin, set the publishArtifacts
flag to false
in the defaults {}
closure of the DSL.
如果使用Artifactory Gradle插件,请在DSL的默认值{}闭包中将publishArtifacts标志设置为false。
If you don't use the Artifactory Gradle plugin explicitly, uncheck the "Publish artifacts to Artifactory" flag.
如果未明确使用Artifactory Gradle插件,请取消选中“将工件发布到Artifactory”标记。
#1
1
If you use the Artifactory Gradle plugin, set the publishArtifacts
flag to false
in the defaults {}
closure of the DSL.
如果使用Artifactory Gradle插件,请在DSL的默认值{}闭包中将publishArtifacts标志设置为false。
If you don't use the Artifactory Gradle plugin explicitly, uncheck the "Publish artifacts to Artifactory" flag.
如果未明确使用Artifactory Gradle插件,请取消选中“将工件发布到Artifactory”标记。