Issue Type: Bug Bug
Assignee: Jesse Glick
Components: workflow-plugin
Created: 28/Jan/15 9:38 AM
Description:

If file has executable bit set and is archived then after unarchiving the executable bit is missing.

Example flow:

node {
  sh "touch test.sh && chmod 0755 test.sh"
  sh "ls -l test.sh"
  archive "test.sh"
  unarchive mapping: ["test.sh": "restore.sh"]
  sh "ls -lR"
}

Output:

Started by user Timur
Running: Allocate node : Start
Running on master in /mnt1/jenkins/jobs/test-flow/workspace
Running: Allocate node : Body : Start
Running: Shell Script
[workspace] Running shell script
+ touch test.sh
+ chmod 0755 test.sh
Running: Shell Script
[workspace] Running shell script
+ ls -l test.sh
-rwxr-xr-x 1 jenkins jenkins 0 Jan 28 09:34 test.sh
Running: Archive Artifacts
Running: Copy archived artifacts into the workspace
Running: Shell Script
[workspace] Running shell script
+ ls -lR
.:
total 0
-rw-r--r-- 1 jenkins jenkins 0 Jan 28 09:34 restore.sh
-rwxr-xr-x 1 jenkins jenkins 0 Jan 28 09:34 test.sh
Running: Allocate node : Body : End
Running: Allocate node : End
Running: End of Workflow
Finished: SUCCESS

It probably relates to some other plugin but not to workflow-plugin but I don't know how to create reproduceable case without using workflow-plugin.

Project: Jenkins
Priority: Major Major
Reporter: Timur Batyrshin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to