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

Cron based jobs are triggered at random times and also at the time Stash is unavailable

    Details

    • Similar Issues:

      Description

      The cron based jobs are working fine until stash-pullrequest-builder-plugin is installed and configured for one of our gating job. The frequency to run is every 2 min. Since then all the cron based jobs are not triggered at specified time, but rather at random time. They also get triggered every time Stash is unavailable, such as during its backup. Hence all cron based jobs failed.

        Attachments

          Activity

          Hide
          vla Vivian zhang added a comment -

          That's how it's been working without this plugin, although I still like some of the features provided by this plugin.

          Show
          vla Vivian zhang added a comment - That's how it's been working without this plugin, although I still like some of the features provided by this plugin.
          Hide
          lbrigman_arris Larry Brigman added a comment -

          I'm seeing jobs queue when I get this error:

          Mar 23, 2017 4:43:00 PM stashpullrequestbuilder.stashpullrequestbuilder.StashRepository getTargetPullRequests
          INFO: Fetch PullRequests (ansible-checks).
          java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: Read timed out
          at java.util.concurrent.FutureTask.report(FutureTask.java:122)
          at java.util.concurrent.FutureTask.get(FutureTask.java:202)
          at stashpullrequestbuilder.stashpullrequestbuilder.stash.StashApiClient.getRequest(StashApiClient.java:254)
          at stashpullrequestbuilder.stashpullrequestbuilder.stash.StashApiClient.getPullRequests(StashApiClient.java:86)

           

          Using Jenkins 2.44 on Ubuntu 14.04 LTS

          OpenJDK 64bit Java 1.7.0_79

          Stash Pull Request Builder 1.7

          Against Stash/Bitbucket v4.4.1

          The timeout is due to an issue on the bitbucket end but it shouldn't be causing a build to be queued.

          Show
          lbrigman_arris Larry Brigman added a comment - I'm seeing jobs queue when I get this error: Mar 23, 2017 4:43:00 PM stashpullrequestbuilder.stashpullrequestbuilder.StashRepository getTargetPullRequests INFO: Fetch PullRequests (ansible-checks). java.util.concurrent.ExecutionException: java.net.SocketTimeoutException: Read timed out at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:202) at stashpullrequestbuilder.stashpullrequestbuilder.stash.StashApiClient.getRequest(StashApiClient.java:254) at stashpullrequestbuilder.stashpullrequestbuilder.stash.StashApiClient.getPullRequests(StashApiClient.java:86)   Using Jenkins 2.44 on Ubuntu 14.04 LTS OpenJDK 64bit Java 1.7.0_79 Stash Pull Request Builder 1.7 Against Stash/Bitbucket v4.4.1 The timeout is due to an issue on the bitbucket end but it shouldn't be causing a build to be queued.
          Show
          jonilover ivan palanevich added a comment - You can try to use that fix - https://github.com/kmoco2am/stash-pullrequest-builder-plugin/commit/da4ed53fb8f38f10df956175e7feda76f64f766e
          Hide
          jbochenski Jakub Bochenski added a comment -

          So the issue here is that StashBuildTrigger.run runs for too long?

          Show
          jbochenski Jakub Bochenski added a comment - So the issue here is that StashBuildTrigger.run runs for too long?
          Hide
          jbochenski Jakub Bochenski added a comment -

          This issue has been closed because of inactivity. Please reopen it if you think it's still valid

          Show
          jbochenski Jakub Bochenski added a comment - This issue has been closed because of inactivity. Please reopen it if you think it's still valid

            People

            • Assignee:
              Unassigned
              Reporter:
              vla Vivian zhang
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: