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

file parameter not working in pipeline job

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Created a simple pipeline job, as follows;

       

      node {
      readFile myFile
      }

       

      where myFile is 'File location' , and received the following error;

      java.nio.file.NoSuchFileException: ...

      If i look in the workspace of the job, the file which was selected as a parameter hasn't bee uploaded into the workspace, this is the bug.

       
       

        Attachments

          Activity

          Hide
          aleksio Alexey Grebenshchikov added a comment -

          Have same problem. Please fix it.

          Show
          aleksio Alexey Grebenshchikov added a comment - Have same problem. Please fix it.
          Hide
          hossaiy yacoub hossain added a comment -

          Such a shame it isn't working, would be quiet a neat thing to be able to use

          Show
          hossaiy yacoub hossain added a comment - Such a shame it isn't working, would be quiet a neat thing to be able to use
          Hide
          mwesterink Michiel Westerink added a comment -

          I have the same problem. In my pipeline I have the following code (slightly modified):

          file (                
            name: "dirinworkspace/file.txt",                                                  
            description: 'A file that should be uploaded'        
          )

          I expect the file to be in workspace/dirinworkspace/file.txt, but it's not there. This problem is at least present in Jenkins 2.113.

          Show
          mwesterink Michiel Westerink added a comment - I have the same problem. In my pipeline I have the following code (slightly modified): file (                   name: "dirinworkspace/file.txt",                                                     description: 'A file that should be uploaded'         ) I expect the file to be in workspace/dirinworkspace/file.txt, but it's not there. This problem is at least present in Jenkins 2.113.
          Hide
          nahsh Nahshon Tsameret added a comment -

          Hi.

          Any update about this bug? 

          Thanks.

          Show
          nahsh Nahshon Tsameret added a comment - Hi. Any update about this bug?  Thanks.
          Hide
          bherfurth Ben Herfurth added a comment -

          This bug is known for a long time ... when will it be fixed?

          Show
          bherfurth Ben Herfurth added a comment - This bug is known for a long time ... when will it be fixed?
          Show
          alisdair_robertson Alisdair Robertson added a comment - Related:  https://issues.jenkins-ci.org/browse/JENKINS-27413

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              hossaiy yacoub hossain
            • Votes:
              17 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated: