Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39758

Artifactory plugin does not publish simple gradle project

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • Jenkins: 2.30
      Artifactory plugin: 2.8.1

      I started with the sample multi-project gradle build provided here:

      https://github.com/JFrogDev/project-examples/tree/master/gradle-examples/4/gradle-example-ci-server

      The publish to Artifactory via the Jenkins plugin worked just fine. I then started stripping out the multiple modules and brought it down to just one module (the 'shared') module and then moved the source of the shared module to the top level, effectively making it a simple gradle project.

      The Jenkins Artifactory plugin no now longer publishes the artifact to Artifactory. I dug into the temporary file that is generated by this plugin and found the below:

      // Set the "archives" configuration to all Artifactory tasks.
      for (Project p : root.getAllprojects()) {
      Task t = p.getTasks().findByName(ArtifactoryTask.BUILD_INFO_TASK_NAME)
      if (t != null)

      { ArtifactoryTask task = (ArtifactoryTask)t task.setAddArchivesConfigToTask(true) }

      }

      Does this mean that the root project can not be published to artifactory via this mechanism and that all gradle projects have to have a sub-project that produces the artifact in order for this plugin to publish it to Artifactory. That would seem like an unreasonable restriction and would like to confirm.

          [JENKINS-39758] Artifactory plugin does not publish simple gradle project

          Sud Ramasamy created issue -
          Sud Ramasamy made changes -
          Link New: This issue is related to JENKINS-39755 [ JENKINS-39755 ]

            eyalbe Eyal Ben Moshe
            sudr Sud Ramasamy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: