Open kiler129 opened 6 years ago
@kiler129 could you provide more details. Steps to reproduce, build log file might be really helpful
I have the same issue using the latest nightly build Flink_Build_3.log
I have the same issue. I'm running my build agent as root, and relying on the runAs plugin. It appears that the temp
directory under the build agents working directory (~/BuildAgent
in my case) is deleted and recreated after every build. However, it is created using 755 permissions. This causes builds to fail if they require access to the temp directory while using the runAs feature.
In my case, also the fact the git checkout is done as root was a problem. As a workaround I've configured the build to use a fixed directory (e.g. /home/teamcity/example), created a script with "chown -R user. /home/teamcity/example", added "user ALL=(root) NOPASSWD: /path/to/the/script.sh" to /etc/sudoers, and added "sudo /path/to/the/script.sh" as the first build step.
Either I'm doing something really dumb, or RunAs plugin is unusable when you need to use temporary directory. The directory is created as
root:root
with 755 permissions, which makes build impossible to save anything.Work directory is also inaccessible, so running e.g. php composer produces: