Hello,

      after upgrade to jenkins 1.527, I started experiencing some problems with polling on clearcase jobs.

      Symptom is a 'random' error code returned by the cleartool command, only during polling operation. By launching a build manually, the same cleartool command is called and completes successfully.

      I've identified the culprit commit as being 6588f42904ea133b2709750089557e3650bb1910 (from JENKINS-19042), but so far I fail to completely understand how it messes up with the environment when polling is called.

          [JENKINS-19307] Polling environment broken somehow since 1.527

          Vincent Latombe created issue -

          Hansen Loke added a comment -

          I have a similar polling issue that is introduced in 1.527, but is for Mercurial repository. Maybe it might shed more light into this issue as the symptom is similar to the one that is described, ie polling broken after 1.527 and launching a build works fine. My setup is as followed:

          • Linux environment
          • Mercurial repository workspace
          • Owner of the repository is different to Jenkins, as it is on a NFS mount
          • /etc/mercurial/hgrc is modified to trust the owner of the repository

          Symptom after upgrading to 1.527, and subsequent releases up to 1.531, is that on polling it doesn't trust the owner of the .hg/hgrc and therefore caused an exception when polling, resulting in no builds being triggered. Downgraded to 1.526, polling works again. I don't have the exception stacktrace but managed to capture the top error instead:

          ERROR: Expected to get an id but got 'not trusting file /scratch/jenkins/workspace/****/.hg/hgrc from untrusted user scratch, group scratch not trusting file /scratch/jenkins/workspace/****/.hg/hgrc from untrusted user scratch, group scratch
          a519e87a23d76389995bcdc0a1c3195983e0303f' instead.

          Hansen Loke added a comment - I have a similar polling issue that is introduced in 1.527, but is for Mercurial repository. Maybe it might shed more light into this issue as the symptom is similar to the one that is described, ie polling broken after 1.527 and launching a build works fine. My setup is as followed: Linux environment Mercurial repository workspace Owner of the repository is different to Jenkins, as it is on a NFS mount /etc/mercurial/hgrc is modified to trust the owner of the repository Symptom after upgrading to 1.527, and subsequent releases up to 1.531, is that on polling it doesn't trust the owner of the .hg/hgrc and therefore caused an exception when polling, resulting in no builds being triggered. Downgraded to 1.526, polling works again. I don't have the exception stacktrace but managed to capture the top error instead: ERROR: Expected to get an id but got 'not trusting file /scratch/jenkins/workspace/**** /.hg/hgrc from untrusted user scratch, group scratch not trusting file /scratch/jenkins/workspace/ ****/.hg/hgrc from untrusted user scratch, group scratch a519e87a23d76389995bcdc0a1c3195983e0303f' instead.

          I've submitted https://github.com/jenkinsci/jenkins/pull/937 some time ago.

          Vincent Latombe added a comment - I've submitted https://github.com/jenkinsci/jenkins/pull/937 some time ago.
          Vincent Latombe made changes -
          Link New: This issue is duplicated by JENKINS-19486 [ JENKINS-19486 ]
          Vincent Latombe made changes -
          Link New: This issue is duplicated by JENKINS-19746 [ JENKINS-19746 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-19042 [ JENKINS-19042 ]

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/test/java/jenkins/model/CoreEnvironmentContributorTest.java
          http://jenkins-ci.org/commit/jenkins/1c68183ae80b44e3e11d46d1eb6b20af8f4ecde2
          Log:
          [FIXED JENKINS-19307] Noting merge of pull #937.

          Compare: https://github.com/jenkinsci/jenkins/compare/5c25cb6a1b3d...1c68183ae80b

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/test/java/jenkins/model/CoreEnvironmentContributorTest.java http://jenkins-ci.org/commit/jenkins/1c68183ae80b44e3e11d46d1eb6b20af8f4ecde2 Log: [FIXED JENKINS-19307] Noting merge of pull #937. Compare: https://github.com/jenkinsci/jenkins/compare/5c25cb6a1b3d...1c68183ae80b
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2918
          [FIXED JENKINS-19307] Noting merge of pull #937. (Revision 1c68183ae80b44e3e11d46d1eb6b20af8f4ecde2)

          Result = SUCCESS
          Jesse Glick : 1c68183ae80b44e3e11d46d1eb6b20af8f4ecde2
          Files :

          • core/src/test/java/jenkins/model/CoreEnvironmentContributorTest.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #2918 [FIXED JENKINS-19307] Noting merge of pull #937. (Revision 1c68183ae80b44e3e11d46d1eb6b20af8f4ecde2) Result = SUCCESS Jesse Glick : 1c68183ae80b44e3e11d46d1eb6b20af8f4ecde2 Files : core/src/test/java/jenkins/model/CoreEnvironmentContributorTest.java changelog.html

            Unassigned Unassigned
            vlatombe Vincent Latombe
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: