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

Capability to a build rescheduled by other plugins

    Details

    • Similar Issues:

      Description

      I want to reschedule a build when timeout occurs with build-timeout plugin.
      It's useful if I can reuse the rescheduling feature of naginator plugin.

      What I plan:

      • When a plugin wants naginator plugin to reschedule a build, it adds an action (e.g. NaginatorScheduleAction) indicating rescheduling to the build.
      • NaginatorListener decides to reschedule a build by that action:
        • current behavior: decides by whether the project is contains NaginatorPublisher
        • new behavir: decides by whether the project contains NaginatorScheduleAction. NaginatorPublisher just adds that action to the build.

      This also fixes JENKINS-23984. Naginator plugin can run conditionally with Flexible Publish

        Attachments

          Issue Links

            Activity

            Show
            ikedam ikedam added a comment - https://github.com/jenkinsci/naginator-plugin/pull/16
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: ikedam
            Path:
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisher.java
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherScheduleAction.java
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleAction.java
            src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java
            src/test/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherTest.java
            src/test/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleActionTest.java
            http://jenkins-ci.org/commit/naginator-plugin/9621e5d8f41158771440eab2677796cb331f4f03
            Log:
            [FIXED JENKINS-29715] [FIXED JENKINS-23984] Introduced NaginatorScheduleAction that makes Naginator to reschedule the build. This allows other plugins to trigger naginator and also allows naginator-plugin works even wrapped by other plugins.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisher.java src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherScheduleAction.java src/main/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleAction.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherTest.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleActionTest.java http://jenkins-ci.org/commit/naginator-plugin/9621e5d8f41158771440eab2677796cb331f4f03 Log: [FIXED JENKINS-29715] [FIXED JENKINS-23984] Introduced NaginatorScheduleAction that makes Naginator to reschedule the build. This allows other plugins to trigger naginator and also allows naginator-plugin works even wrapped by other plugins.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kanstantsin Shautsou
            Path:
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisher.java
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherScheduleAction.java
            src/main/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleAction.java
            src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java
            src/test/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherTest.java
            src/test/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleActionTest.java
            http://jenkins-ci.org/commit/naginator-plugin/b928d550121f9f1a468ad10a0aafc341887f25d5
            Log:
            Merge pull request #16 from ikedam/feature/JENKINS-29715_ControlWithAction

            JENKINS-29715 Control rescheduling with action

            Compare: https://github.com/jenkinsci/naginator-plugin/compare/b99a2b520179...b928d550121f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kanstantsin Shautsou Path: src/main/java/com/chikli/hudson/plugin/naginator/NaginatorListener.java src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisher.java src/main/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherScheduleAction.java src/main/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleAction.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorListenerTest.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorPublisherTest.java src/test/java/com/chikli/hudson/plugin/naginator/NaginatorScheduleActionTest.java http://jenkins-ci.org/commit/naginator-plugin/b928d550121f9f1a468ad10a0aafc341887f25d5 Log: Merge pull request #16 from ikedam/feature/ JENKINS-29715 _ControlWithAction JENKINS-29715 Control rescheduling with action Compare: https://github.com/jenkinsci/naginator-plugin/compare/b99a2b520179...b928d550121f

              People

              • Assignee:
                ikedam ikedam
                Reporter:
                ikedam ikedam
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: