XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I use subversion as a version control system. I have configured subversion to notify Jenkins when a commit takes place by using a post-commit hook. This has made it possible to use very infrequent SCM polling interval for those projects that are triggered by SCM changes.

      Infrequent polling has a drawback. Changes that are committed while Jenkins is down are not noticed until polling founds them or a new commit brings them into a view.

      It would be nice to be able to instruct all projects that are triggered by SCM changes to poll for changes once Jenkins is started. The idea is to build only those projects for which polling found some changes to avoid unnecessary load. This would also leave out projects that have other triggering means, like those that are built periodically regardless of changes.

      Do you see if this feature would fit in the scope of this plugin?

        Attachments

          Activity

          Hide
          salsa Sami Salonen added a comment -

          Thanks for the snapshot version. I carried out a few simple tests. Here are the results and improvement ideas.

          I found one bug. If one skips the Build selection section and selects either "Limit to jobs matching a pattern" or "Limit to jobs in view" option in Build options, an exception is thrown. Not selecting any option or only "Parameterized build" option does not throw an exception if Build selection is skipped.

          What is the difference between "Build failed jobs" and "Build only failed jobs"? The latter includes only projects whose all builds have failed? Online help could be used to clarify terms.

          It would be really important to add wildcard support to "Limit to jobs matching a pattern" in Build options in future releases. Something similar that Jenkins uses in its List View when defining Job Filters.

          Most importantly, both view selection and pattern matching (with limitation) seem to work on their own as well as together. I did not test parameterized option.

          This release makes it possible to poll all jobs, or alternatively all jobs within a view. Just what I need. Fixing the above mentioned bug makes this ready for release. Thanks for the good work.

          Show
          salsa Sami Salonen added a comment - Thanks for the snapshot version. I carried out a few simple tests. Here are the results and improvement ideas. I found one bug. If one skips the Build selection section and selects either "Limit to jobs matching a pattern" or "Limit to jobs in view" option in Build options, an exception is thrown. Not selecting any option or only "Parameterized build" option does not throw an exception if Build selection is skipped. What is the difference between "Build failed jobs" and "Build only failed jobs"? The latter includes only projects whose all builds have failed? Online help could be used to clarify terms. It would be really important to add wildcard support to "Limit to jobs matching a pattern" in Build options in future releases. Something similar that Jenkins uses in its List View when defining Job Filters. Most importantly, both view selection and pattern matching (with limitation) seem to work on their own as well as together. I did not test parameterized option. This release makes it possible to poll all jobs, or alternatively all jobs within a view. Just what I need. Fixing the above mentioned bug makes this ready for release. Thanks for the good work.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Simon Westcott
          Path:
          src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java
          src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/Builder.java
          src/test/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderActionTest.java
          src/test/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuilderTest.java
          http://jenkins-ci.org/commit/bulk-builder-plugin/e532bd58cde0fa577f478b61a5fabf1ecc0d1f56
          Log:
          [Ref JENKINS-10930] User can either perform immediate build or just poll the SCM for changes.

          Includes a major refactoring of internals - added mechanism for chaining build filters.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Simon Westcott Path: src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/Builder.java src/test/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderActionTest.java src/test/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuilderTest.java http://jenkins-ci.org/commit/bulk-builder-plugin/e532bd58cde0fa577f478b61a5fabf1ecc0d1f56 Log: [Ref JENKINS-10930] User can either perform immediate build or just poll the SCM for changes. Includes a major refactoring of internals - added mechanism for chaining build filters.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Simon Westcott
          Path:
          src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java
          src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuildAction.java
          src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/Builder.java
          src/main/resources/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction/index.jelly
          src/main/resources/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction/index.properties
          src/test/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderActionTest.java
          src/test/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuilderTest.java
          http://jenkins-ci.org/commit/bulk-builder-plugin/a89e3dd8ca74ce35031c85bb642b4d70c588b098
          Log:
          Merge branch 'JENKINS-10930-bulk-polling'

          Compare: https://github.com/jenkinsci/bulk-builder-plugin/compare/d56b733...a89e3dd

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Simon Westcott Path: src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuildAction.java src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/Builder.java src/main/resources/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction/index.jelly src/main/resources/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction/index.properties src/test/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderActionTest.java src/test/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuilderTest.java http://jenkins-ci.org/commit/bulk-builder-plugin/a89e3dd8ca74ce35031c85bb642b4d70c588b098 Log: Merge branch ' JENKINS-10930 -bulk-polling' Compare: https://github.com/jenkinsci/bulk-builder-plugin/compare/d56b733...a89e3dd
          Hide
          swestcott Simon Westcott added a comment -

          I've tweak the radio button description regarding failed builds.

          Also,
          JENKINS-11712 - Add support for wildcards
          JENKINS-11445 - Already cover validation error message

          I've merged bulk polling onto master, this will be included in the next release

          Show
          swestcott Simon Westcott added a comment - I've tweak the radio button description regarding failed builds. Also, JENKINS-11712 - Add support for wildcards JENKINS-11445 - Already cover validation error message I've merged bulk polling onto master, this will be included in the next release
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_bulk-builder #55
          [Ref JENKINS-10930] User can either perform immediate build or just poll the SCM for changes.

          Simon Westcott :
          Files :

          • src/test/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderActionTest.java
          • src/test/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuilderTest.java
          • src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/Builder.java
          • src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java
          Show
          dogfood dogfood added a comment - Integrated in plugins_bulk-builder #55 [Ref JENKINS-10930] User can either perform immediate build or just poll the SCM for changes. Simon Westcott : Files : src/test/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderActionTest.java src/test/java/org/jvnet/hudson/plugins/bulkbuilder/model/BuilderTest.java src/main/java/org/jvnet/hudson/plugins/bulkbuilder/model/Builder.java src/main/java/org/jvnet/hudson/plugins/bulkbuilder/BulkBuilderAction.java

            People

            Assignee:
            swestcott Simon Westcott
            Reporter:
            salsa Sami Salonen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: