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

Wrong executable permission on checked out file

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • p4-plugin

    Description

      Hello,

      I have a file in my perforce depot that has executable permission. When I sync it manually as the jenkins user, it got the right executable permission, i.e 666. However when synced by p4-plugin (through a jenkins jobs) using same user, same workspace, the permissions are 644.
      We have a workaround for that (fixing the permission after the facts), but would appreciate a fix.
      Thank you.

      Attachments

        Activity

          p4paul Paul Allen added a comment -

          Do you have an unusual UMASK set for the jenkins OS user?

          This might be a P4Java bug, I'll look into it...

          p4paul Paul Allen added a comment - Do you have an unusual UMASK set for the jenkins OS user? This might be a P4Java bug, I'll look into it...
          fechanti Francois E added a comment -

          The umask for the jenkins OS user is 0022, seems typical to me.
          Thanks for having a look

          fechanti Francois E added a comment - The umask for the jenkins OS user is 0022, seems typical to me. Thanks for having a look
          fechanti Francois E added a comment -

          It seems this is no more an issue with Jenkins 1.617 and perforce plugin 1.3.34

          fechanti Francois E added a comment - It seems this is no more an issue with Jenkins 1.617 and perforce plugin 1.3.34
          p4paul Paul Allen added a comment -

          Not sure if you have your Perforce plugins mixed up?
          Your JIRA issue was raised under the `p4` plugin (from Perforce) not the community plugin `perforce`.
          The latest `p4` version is 1.2.4

          p4paul Paul Allen added a comment - Not sure if you have your Perforce plugins mixed up? Your JIRA issue was raised under the `p4` plugin (from Perforce) not the community plugin `perforce`. The latest `p4` version is 1.2.4
          fechanti Francois E added a comment -

          Sorry, yes I'm using the "P4 plugin" 1.2.4. Got confused as the "Perforce plugin" was installed too but the P4 one was not showing up in the list (probably some incomplete migration when we moved the jenkins master)

          fechanti Francois E added a comment - Sorry, yes I'm using the "P4 plugin" 1.2.4. Got confused as the "Perforce plugin" was installed too but the P4 one was not showing up in the list (probably some incomplete migration when we moved the jenkins master)
          p4paul Paul Allen added a comment -

          No problem; do let me know if you have any issues with the `p4` plugin.

          p4paul Paul Allen added a comment - No problem; do let me know if you have any issues with the `p4` plugin.

          People

            Unassigned Unassigned
            fechanti Francois E
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: