Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48966

Executable permission of archived artifact is not preserved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • promoted-builds-plugin
    • None
    • Jenkins ver. 2.89.2

      I have a multi-configuration build where I archive the artifacts and, once the build is promoted, use the Execute shell promotion action to executed an archived shell script. But while the script has the executable permission in the workspace (where it’s a bad idea to execute it, however), it looses the permission in the matrix configuration’s archive folder:
      + ls -l /home/hudson/genie.recommenders/.jenkins/jobs/org.eclipse.recommenders.privacy/workspace/tools/hudson
      total 4
      -rwxrwxr-x 1 genie.recommenders technology.recommenders 955 Jan 15 10:33 publish-repository.sh
      + ls -l /home/hudson/genie.recommenders/.jenkins/jobs/org.eclipse.recommenders.privacy/workspace/simrel/mars/toolchain/JavaSE-1.7/tools/hudson
      total 4
      -rwxrwxr-x 1 genie.recommenders technology.recommenders 955 Jan 15 10:35 publish-repository.sh
      + ls -l /home/hudson/genie.recommenders/.jenkins/jobs/org.eclipse.recommenders.privacy/configurations/axis-simrel/mars/axis-toolchain/JavaSE-1.7/builds/1148/archive/tools/hudson
      total 4
      rw-rw-r- 1 genie.recommenders technology.recommenders 955 Jan 16 08:49 publish-repository.sh
      I consider this to be a bug.

            oleg_nenashev Oleg Nenashev
            sewe Andreas Sewe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: