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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CACLNiaN2%2BAviirUc7tV0oQLzHnMrH6M121gNfM8bZ_7YPhs_AQ%40mail.gmail.com.

Attachment: Jenkinsfile_gradle
Description: Binary data

Reply via email to