A file read permissions - Jenkins security

17 views
Skip to first unread message

Tal Yanai

unread,
Oct 23, 2019, 12:19:31 PM10/23/19
to Jenkins Users
Hi,

I have 2 steps running one after the other.

The first step is a Linux shell execution, that simply produce an input file for the second step.  Something basic like echo "blabla" > /tmp/input.txt
The second step is a Java based plugin that is trying to read the input file, but failed complaining the file doesn't exist.   

For many years now, this was not a problem, but lately we have a customer that is facing such problem.

What can be set wrong in Jenkins that prevent from the second step to read the file?  (the file have read permissions on the disk, and is created by user root, not by the user who is logged into the Jenkins)

Thanks,

Tal.

Daniel Beck

unread,
Oct 23, 2019, 2:37:25 PM10/23/19
to jenkins...@googlegroups.com
The first build step is running on an agent, and you use Java APIs to try to access the file (which look on the master filesystem).


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fc043cad-aa49-4fb6-a552-f2da83c6954c%40googlegroups.com.


--

Daniel Beck
Senior Software Engineer
CloudBees, Inc.

CloudBees-Logo.png


Tal Yanai

unread,
Oct 23, 2019, 3:02:18 PM10/23/19
to jenkins...@googlegroups.com
Thanks Daniel,

I suppose you mean for a “node”. I checked that. There’s only one Jenkins server and the file system is all within the same nfs so in any case there’s an access to any path. 


You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/wrMza5-Z4PQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAMo7Pt%2Bt_Vs05PrWr2t7SrWpmZcxugP35Xv6dBGyQJx9%3DfUiEQ%40mail.gmail.com.
--
Thanks, Tal.
Reply all
Reply to author
Forward
0 new messages