Artifactory plugin gradle pipeline build is failing

28 views
Skip to first unread message

Ross Christopher

unread,
Oct 12, 2020, 8:04:07 AM10/12/20
to jenkins...@googlegroups.com
Hello,

I am having trouble with gradle pipeline jenkins builds using the artifactory plugin.

Using artifactory plugin version 3.5.0 the Jenkinsfile (attached) builds the project with gradle successfully and uploads it correctly to artifactory.

If I upgrade the artifactory plugin to any version after 3.5.0 (including the latest version ) I receive the following error when running a build with the same Jenkinsfile:

FAILURE: Build failed with an exception. 

 * Where: Initialization script '/var/lib/jenkins/workspace/internal@tmp/artifactory/init-artifactory1140458291361761393gradle' line: 23 

 * What went wrong: Failed to apply plugin [class 'org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin'] > No signature of method: org.gradle.api.internal.tasks.RealizableTaskCollection.configureEach() is applicable for argument types: (org.jfrog.gradle.plugin.artifactory.ArtifactoryPluginBase$_addModuleInfoTask_closure1) values: [org.jfrog.gradle.plugin.artifactory.ArtifactoryPluginBase$_addModuleInfoTask_closure1@34f76b3]  

Please let me know if you have any ideas on how to fix this issue in the latest/later versions of the artifactory plugin. 

Thanks,
Ross
Jenkinsfile_gradle
Reply all
Reply to author
Forward
0 new messages