Community
Participate
Working Groups
All archived files loose their permissions setting when stored as artifacts on the master node. simple steps to reproduce: - Create a Shell script and create some file with certain permissions - Archive the file and check if the file permission is correct - In the workspace the permission is correct. But in the archive folder it is not correct
Hudson is using Copy utility from Ant library <http://www.jajakarta.org/ant/ant-1.6.1/docs/en/manual/api/org/apache/tools/ant/taskdefs/Copy.html>, which does not seem to preserve the file permission. The reason why it uses the Ant library is because Hudson uses the same file mask (e.g target/**/test*) as in ant. Need to find out another way to do the copying
Hi, I would be also very interested in a fix for this one, due to the following use case: - We have a shell script (tools/hudson/publish.sh) checked into SCM, which is run during a promotion process's "Execute Shell" build step. - ATM, we refer to the script like this ${WORKSPACE}/tools/hudson/publish.sh - Obviously, the workspace may have changed between the time the build finishes and the time it was promoted, which is bad. - The ideal solution would be having tools/hudson/publish.sh as "artifacts/to/archive" and then refering to the script like this ${HUDSON_HOME}/jobs/${PROMOTED_JOB_NAME}/builds/${PROMOTED_ID}/archive/tools/hudson/publish.sh Unfortunately, due to this bug, this doesn't work. While the script is executable in the workspace, it is not in the archive; the promotion hence fails.