Affects Version/s: 3.7.0
Fix Version/s: None
Problem description: After upgrading the Jenkins Artifactory Plugin to version 3.7.3, Gradle builds fail with a Groovy exception. Reverting fixes the issue.
What is the expected behavior? Builds that work earlier do not start to fail due to a plugin update.
Steps to reproduce:
1] Start with a Jenkins instance that has Artifactory Jenkins Plugin 3.2.2 installed (Can be downloaded here, place in the /var/lib/jenkins/plugins folder)
2] Configure a Freestyle build to use the Gradle Example CI Project on the JFrog GitHub
3] Run the build, observe success
4] Upgrade the Artifactory Jenkins Plugin to the latest version (3.7.3)
5] Run the build without changing anything, observe a "No signature of method" error:
> 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@7af6f22e]
Possible workaround: Use the older version of the plugin