[JIRA] (JENKINS-47333) file parameter not working in pipeline job

6 views
Skip to first unread message

michiel.westerink@snow.nl (JIRA)

unread,
Apr 11, 2018, 3:47:09 AM4/11/18
to jenkinsc...@googlegroups.com
Michiel Westerink commented on Bug JENKINS-47333
 
Re: file parameter not working in pipeline job

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.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

nahsh.ut@gmail.com (JIRA)

unread,
Jun 7, 2018, 7:25:02 AM6/7/18
to jenkinsc...@googlegroups.com

Hi.

Any update about this bug? 

Thanks.

nahsh.ut@gmail.com (JIRA)

unread,
Jun 7, 2018, 7:26:02 AM6/7/18
to jenkinsc...@googlegroups.com

nahsh.ut@gmail.com (JIRA)

unread,
Jun 7, 2018, 7:26:03 AM6/7/18
to jenkinsc...@googlegroups.com

benherfurth+jenkins@gmail.com (JIRA)

unread,
Jun 13, 2018, 1:42:02 AM6/13/18
to jenkinsc...@googlegroups.com
Ben Herfurth commented on Bug JENKINS-47333
 
Re: file parameter not working in pipeline job

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

alisdair.robertson@seeingmachines.com (JIRA)

unread,
Aug 23, 2018, 12:33:01 AM8/23/18
to jenkinsc...@googlegroups.com
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

paololambojon@gmail.com (JIRA)

unread,
Mar 26, 2019, 1:59:04 AM3/26/19
to jenkinsc...@googlegroups.com

Issue still persists today.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 25, 2019, 12:23:03 PM7/25/19
to jenkinsc...@googlegroups.com

JENKINS-27413 comments describe why it does not work today and give a strong indication that it won't work in the future.

I created a small test case that I used to interactively verify the issue exists. The file parameter is accepted as part of the Declarative Pipeline job definition and the job accepts the uploaded file, but the file does not seem to be placed anywhere that I could detect. It was not placed in the workspace of the agent running the job, nor was it placed on the master file system. I believe that the comments from Jesse Glick in JENKINS-27413 explain why the file is not stored anywhere.

mark.earl.waite@gmail.com (JIRA)

unread,
Jul 25, 2019, 12:43:05 PM7/25/19
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-47333
JENKINS-27413 comments describe why it does not work today and give a strong indication that it won't work in the future.

I created a [small test case|https://github.com/MarkEWaite/jenkins-bugs/blob/JENKINS-47333/Jenkinsfile#L11] that I used to interactively verify the issue exists.  The file parameter is accepted as part of the Declarative Pipeline job definition and the job accepts the uploaded file, but the file does not seem to be placed anywhere that I could detect.  It was not placed in the workspace of the agent running the job, nor was it placed on the master file system.  I believe that the comments from Jesse Glick in JENKINS-27413 explain why the file is not stored anywhere.

Removed from documentation on jenkins.io July 25, 2019 by [PR-2388|https://github.com/jenkins-infra/jenkins.io/pull/2388]
Reply all
Reply to author
Forward
0 new messages