it looks like the /tmp folder permission issue. please help

          [JENKINS-43829] git plugin gives permission error in /tmp

          Sudin Shakya created issue -
          Sudin Shakya made changes -
          Description Original: !image-2017-04-25-10-28-15-797.png! New: !image-2017-04-25-10-28-15-797.png|width=800,height=273!

           

          it looks like the /tmp folder permission issue. please help
          Sudin Shakya made changes -
          Labels New: v2.46.1
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          Mark Waite added a comment -

          You need to allow execution of scripts from the temporary directory, or run Jenkins with a different temporary directory by creating and assigning your own value for temporary directories (like java.io.tmpdir and TMP and TEMP).

          Refer to the git client plugin wiki page and its "Gotchas" section for a description of the case you're seeing.

          Mark Waite added a comment - You need to allow execution of scripts from the temporary directory, or run Jenkins with a different temporary directory by creating and assigning your own value for temporary directories (like java.io.tmpdir and TMP and TEMP). Refer to the git client plugin wiki page and its " Gotchas " section for a description of the case you're seeing.

          Mark Waite added a comment - - edited

          Refer also to "Making /tmp non-executable" in the Debian documentation.

          Mark Waite added a comment - - edited Refer also to " Making /tmp non-executable " in the Debian documentation.

          Mark Waite added a comment - - edited

          user_sdn, the git client plugin 2.4.4 (released today, 27 Apr 2017) now prefers to write its temporary files into a directory near the workspace, if the workspace exists. That may help with this case, though it probably won't solve all cases, since there are times when the git plugin needs to perform an operation that requires authentication, without having a workspace available.

          If git client plugin 2.4.4 does not completely resolve the issue, then you'll need to configure Jenkins to use a temporary directory where it can write scripts that are executable.

          Mark Waite added a comment - - edited user_sdn , the git client plugin 2.4.4 (released today, 27 Apr 2017) now prefers to write its temporary files into a directory near the workspace, if the workspace exists. That may help with this case, though it probably won't solve all cases, since there are times when the git plugin needs to perform an operation that requires authentication, without having a workspace available. If git client plugin 2.4.4 does not completely resolve the issue, then you'll need to configure Jenkins to use a temporary directory where it can write scripts that are executable.
          Mark Waite made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          Sudin Shakya added a comment -

          Thank you Mark. I ran the mount -o remount,exec /tmp command to give temp folder exec permissions and it works. However, I wasn't able to change the default location for the temporary directory . 

          Sudin Shakya added a comment - Thank you Mark. I ran the mount -o remount,exec /tmp command to give temp folder exec permissions and it works. However, I wasn't able to change the default location for the temporary directory . 
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            user_sdn Sudin Shakya
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: