-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tests): set owner of files created by containers to the local user #151
Conversation
@vdice This seems to be failing CI due to permission issues. Any idea what the problem is? |
3283bb9
to
1abfb0f
Compare
I'm changing strategy here. Instead of trying to create files with jenkins's specific UID and GID, chown the created files to the local user. |
I'm going to unset the LGTMs because I completely redid the code. |
1abfb0f
to
d589607
Compare
file perms looking good on Jenkins (uid/gid of user jenkins used):
|
@@ -6,11 +6,20 @@ def getBasePath = { String filepath -> | |||
return filepath.substring(0, filename) | |||
} | |||
|
|||
def make = { String target -> | |||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious if this could be rewritten/simplified to:
def make = { String target ->
try {
sh "make ${target}"
} catch(error) {
false
}
sh "make fileperms"
}
... or would that last sh
invocation not get run?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false kills the build, so it wouldn't run
curiosity note/question; otherwise LGTM |
For some reason the status links to pipeline build #7, which failed, but the most recent build is pipeline build #8 which passed. |
This fixes with jenkins failing to delete files when cleaning up.