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

Upload files to artifactory not working on 2.9.2


    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 2.9.2
    • Fix Version/s: None
    • Component/s: Common
    • Environment:

      Jenkins 2.19.1
      Windows server 2012 R2


      We were using version 2.9.0 and everything was working fine.

      We basically upload files to artifactory using jenkins pipeline with a really simple code using patterns.

      We are using an uploadspec to define the full path of the file we want to download:

      		def uploadSpec  = """
      			"files": [
      					"pattern": "${pPattern}",
      					"target": "${pTarget}",
                                               "props": "${propsString}"
                      buildInfoDeployed= pServer.upload(uploadSpec)

      While having this problem with tried to change slahes and backslashes to the same format to see if it was a problem with the path, but nothing worked (we tried c:\file.txt c:/file.txt).

      At the same time we are archiving the files in jenkins and this is working fine, so the files exist and path is correct.

      We changed to 2.9.0 again and everything started working fine.


      Hello, we don't have the environment as we had to rollback the whole machine, basically the log on the job was:

      C:\Program Files (x86)\Jenkins\TasksService\jobs\Project\jobs\ContinuousIntegration\jobs\NightlyBuild\workspace>copy "N:\Deliverables\Packages\OriginalFolder\OriginalFile.zip" "C:/Program Files (x86)/Jenkins/TasksService/jobs/Project/jobs/ContinuousIntegration/jobs/NightlyBuild/workspace/1147260651/filetocopy-" 
      1 file(s) copied.
      [Pipeline] }
      [Pipeline] // withCredentials
      [Pipeline] echo
      Artifactory Publish project-build/nightlybuild/Main/ from 1147260651/filetocopy-
      [Pipeline] newArtifactoryServer
      [Pipeline] newBuildInfo
      [Pipeline] collectEnv
      [Pipeline] fileExists
      [Pipeline] echo
      Archiving 1147260651/filetocopy-
      [Pipeline] artifactoryUpload
      For pattern: 1147260651/filetocopy- 0 artifacts were found.

      The file exist as the local jenkins archiving works and the if file.exist works... and the same code on version 2.9.0 works too.
      As you can see the path to upload is used using /.




            • Assignee:
              eyalb Eyal Ben Moshe
              Ricardf Ricardf
            • Votes:
              0 Vote for this issue
              4 Start watching this issue


              • Created: