Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1009

When using legacy upload or deployment with pipeline deployArtifacts, the deployment is written in the logs twice

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14.0
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Create a Generic job using legacy or a Gradle pipeline job with deployArtifacts set to false.
      2. In case a Gradle job is created, add rtGradle.deployer.deployArtifacts buildInfo to deploy the artifacts.
      3. Run the build

      In the logs, the deployment is written twice (this is only in the logs):

      For Generic:

      Started by user admin name
      [EnvInject] - Loading node environment variables.
      Building on master in workspace /Users/alexeiv/Documents/Work/Jenkins/2.7.2/home/workspace/FreeJob
      For pattern: /Users/alexeiv/Documents/Work/RPM/*.* 2 artifacts were found
      Deploying artifact: http://192.168.56.1:9091/artifactory/yum-local/webmin-1.831-1.mga6.noarch.rpm
      Deploying artifact: http://192.168.56.1:9091/artifactory/yum-local/webmin-1.831-1.mga6.noarch.rpm
      

      For pipeline Gradle:

      Total time: 0.644 secs
      [Pipeline] deployArtifacts
      Deploying artifact: http://192.168.56.1:9091/artifactory/ForTest/gradle-example-minimal/1.0-SNAPSHOT/gradle-example-minimal-1.0-SNAPSHOT.jar
      Deploying artifact: http://192.168.56.1:9091/artifactory/ForTest/gradle-example-minimal/1.0-SNAPSHOT/gradle-example-minimal-1.0-SNAPSHOT.jar
      

        Attachments

          Activity

            People

            • Assignee:
              alexeiv Alexei Vainshtein
              Reporter:
              alexeiv Alexei Vainshtein
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: