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

Unlock Keychain option does not work for long build when keychain has a timeout

    Details

    • Similar Issues:

      Description

      The unlock keychain option causes the plugin to unlock the keychain at the beginning of the build.
      The keychain may have a lock timeout though (the login.keychain has a default timeout of 300s). If the build takes longer than 300 seconds, the codesign command fails with "User interaction is not allowed."

      This can be workaround by increasing the keychain timeout, for example:
      $ security set-keychain-settings -l -u -t 3600 /Users/Shared/Jenkins/Library/Keychains/login.keychain

      To see the current timeout:
      security show-keychain-info /Users/Shared/Jenkins/Library/Keychains/login.keychain

      I suggest that the plugin either:

      • Removes/increases the keychain timeout
      • Emits a warning for when the keychain has a timeout
      • Documents this behavior on the plugin page
        This seems to be a pretty common problem (judging by stackoverflow posts), and the work-around is not obvious.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jerome Lacoste
          Path:
          src/main/java/au/com/rayh/XCodeBuilder.java
          http://jenkins-ci.org/commit/xcode-plugin/5b2a452d965abfe3660092cda378f0dc2b835d41
          Log:
          JENKINS-15939, JENKINS-17184 display keychain timeout information

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jerome Lacoste Path: src/main/java/au/com/rayh/XCodeBuilder.java http://jenkins-ci.org/commit/xcode-plugin/5b2a452d965abfe3660092cda378f0dc2b835d41 Log: JENKINS-15939 , JENKINS-17184 display keychain timeout information
          Hide
          lacostej lacostej added a comment -

          This duplicates JENKINS-17184 in which I indicated some tips for implementing it. Please help

          I added in 5b2a452d965abfe3660092cda378f0dc2b835d41 a debug of the current timeout as part of the build output. I will also document the current settings on the page.

          Show
          lacostej lacostej added a comment - This duplicates JENKINS-17184 in which I indicated some tips for implementing it. Please help I added in 5b2a452d965abfe3660092cda378f0dc2b835d41 a debug of the current timeout as part of the build output. I will also document the current settings on the page.

            People

            • Assignee:
              Unassigned
              Reporter:
              jboberg Jonas Boberg
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: