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

Add REST API polling to Pipeline

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I would like to have the ability to force a poll of a pipeline job using the REST API.

      Where it would be something like curl -X POST $JENKINS_URL/jobs/$PIPELINE_JOB/polling and that would force a poll check on the job itself.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java
            http://jenkins-ci.org/commit/workflow-job-plugin/7963f3791bb5c1ec65103a9d29e8d7d54df895b8
            Log:
            JENKINS-34716 doPolling and schedulePolling.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowJob.java http://jenkins-ci.org/commit/workflow-job-plugin/7963f3791bb5c1ec65103a9d29e8d7d54df895b8 Log: JENKINS-34716 doPolling and schedulePolling.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            pom.xml
            src/test/java/org/jenkinsci/plugins/workflow/job/WorkflowJobTest.java
            http://jenkins-ci.org/commit/workflow-job-plugin/7ecd9856e6b5474af804d45d1d8054848a8d6cf3
            Log:
            JENKINS-34716 Verifying doPolling in a test.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: pom.xml src/test/java/org/jenkinsci/plugins/workflow/job/WorkflowJobTest.java http://jenkins-ci.org/commit/workflow-job-plugin/7ecd9856e6b5474af804d45d1d8054848a8d6cf3 Log: JENKINS-34716 Verifying doPolling in a test.
            Hide
            jglick Jesse Glick added a comment -

            Released in 2.11.

            Show
            jglick Jesse Glick added a comment - Released in 2.11.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            cli/pom.xml
            core/move-l10n.groovy
            core/pom.xml
            core/src/main/java/hudson/cli/BuildCommand.java
            core/src/main/java/hudson/cli/declarative/CLIRegisterer.java
            core/src/main/java/hudson/cli/handlers/ParameterizedJobOptionHandler.java
            core/src/main/java/hudson/model/AbstractItem.java
            core/src/main/java/hudson/model/AbstractProject.java
            core/src/main/java/hudson/model/ListView.java
            core/src/main/java/jenkins/model/ParameterizedJobMixIn.java
            core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java
            core/src/main/java/jenkins/triggers/SCMTriggerItem.java
            core/src/main/resources/hudson/model/AbstractProject/main.jelly
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled.jelly
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ar.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_bg.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ca.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_cs.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_da.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_de.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_es.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_et.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fi.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fr.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_he.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_hu.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_it.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ja.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ko.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_lt.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_lv.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nb_NO.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nl.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pl.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pt_BR.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pt_PT.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ro.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ru.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sk.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sl.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sr.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sv_SE.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_tr.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_uk.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_CN.properties
            core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_TW.properties
            core/src/main/resources/hudson/model/Messages.properties
            core/src/main/resources/hudson/model/Messages_bg.properties
            core/src/main/resources/hudson/model/Messages_da.properties
            core/src/main/resources/hudson/model/Messages_de.properties
            core/src/main/resources/hudson/model/Messages_es.properties
            core/src/main/resources/hudson/model/Messages_it.properties
            core/src/main/resources/hudson/model/Messages_ja.properties
            core/src/main/resources/hudson/model/Messages_lt.properties
            core/src/main/resources/hudson/model/Messages_pt_BR.properties
            core/src/main/resources/hudson/model/Messages_sr.properties
            core/src/main/resources/hudson/model/Messages_zh_TW.properties
            core/src/main/resources/jenkins/model/Messages.properties
            core/src/main/resources/jenkins/model/Messages_bg.properties
            core/src/main/resources/jenkins/model/Messages_da.properties
            core/src/main/resources/jenkins/model/Messages_de.properties
            core/src/main/resources/jenkins/model/Messages_es.properties
            core/src/main/resources/jenkins/model/Messages_it.properties
            core/src/main/resources/jenkins/model/Messages_ja.properties
            core/src/main/resources/jenkins/model/Messages_lt.properties
            core/src/main/resources/jenkins/model/Messages_pt_BR.properties
            core/src/main/resources/jenkins/model/Messages_sr.properties
            core/src/main/resources/jenkins/model/Messages_zh_TW.properties
            core/src/main/resources/lib/hudson/project/config-disableBuild.jelly
            core/src/main/resources/lib/hudson/project/makeDisabled.jelly
            core/src/main/resources/lib/hudson/project/makeDisabled_ar.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_bg.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_ca.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_cs.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_da.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_de.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_es.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_et.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_fi.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_fr.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_he.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_hu.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_it.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_ja.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_ko.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_lt.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_lv.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_nb_NO.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_nl.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_pl.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_pt_BR.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_pt_PT.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_ro.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_ru.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_sk.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_sl.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_sr.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_sv_SE.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_tr.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_uk.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_zh_CN.properties
            core/src/main/resources/lib/hudson/project/makeDisabled_zh_TW.properties
            pom.xml
            test/src/test/groovy/hudson/cli/EnableJobCommandTest.groovy
            test/src/test/java/hudson/cli/EnableJobCommandTest.java
            http://jenkins-ci.org/commit/jenkins/3af0cc68cb1cea3047a21400486c075f1b555cf2
            Log:
            JENKINS-27299 Define disabled in ParameterizedJob rather than AbstractProject (#2866)

            • Offering default methods on ParameterizedJob.
            • Javadoc typo.
            • Cleaner use of default methods in ParameterizedJob.
            • Sketch of pulling disabled functionality into ParameterizedJob.
            • EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker.
            • All CLI commands could be broken by a missing CLI.*.shortDescription key on just one!
            • Forgot to move CLI method short descriptions to new package.
            • Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here.
            • Trying to fix up access-modifier versions; started failing in CI today for unknown reasons.
            • Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>.
            • Using new type bounds.
            • access-modifier 1.11 released.
            • MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly.
            • Trying to generalize some more.
            • Minor simplification.
            • isBuildable
            • Obsolete comment.
            • Updated comments.
            • bridge-method-injector 1.17
            • Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem.
            • bridge-method-injector 1.17
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: cli/pom.xml core/move-l10n.groovy core/pom.xml core/src/main/java/hudson/cli/BuildCommand.java core/src/main/java/hudson/cli/declarative/CLIRegisterer.java core/src/main/java/hudson/cli/handlers/ParameterizedJobOptionHandler.java core/src/main/java/hudson/model/AbstractItem.java core/src/main/java/hudson/model/AbstractProject.java core/src/main/java/hudson/model/ListView.java core/src/main/java/jenkins/model/ParameterizedJobMixIn.java core/src/main/java/jenkins/model/lazy/LazyBuildMixIn.java core/src/main/java/jenkins/triggers/SCMTriggerItem.java core/src/main/resources/hudson/model/AbstractProject/main.jelly core/src/main/resources/hudson/model/AbstractProject/makeDisabled.jelly core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ar.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_bg.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ca.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_cs.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_da.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_de.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_es.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_et.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fi.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_fr.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_he.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_hu.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_it.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ja.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ko.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_lt.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_lv.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nb_NO.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_nl.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pl.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pt_BR.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_pt_PT.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ro.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_ru.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sk.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sl.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sr.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_sv_SE.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_tr.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_uk.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_CN.properties core/src/main/resources/hudson/model/AbstractProject/makeDisabled_zh_TW.properties core/src/main/resources/hudson/model/Messages.properties core/src/main/resources/hudson/model/Messages_bg.properties core/src/main/resources/hudson/model/Messages_da.properties core/src/main/resources/hudson/model/Messages_de.properties core/src/main/resources/hudson/model/Messages_es.properties core/src/main/resources/hudson/model/Messages_it.properties core/src/main/resources/hudson/model/Messages_ja.properties core/src/main/resources/hudson/model/Messages_lt.properties core/src/main/resources/hudson/model/Messages_pt_BR.properties core/src/main/resources/hudson/model/Messages_sr.properties core/src/main/resources/hudson/model/Messages_zh_TW.properties core/src/main/resources/jenkins/model/Messages.properties core/src/main/resources/jenkins/model/Messages_bg.properties core/src/main/resources/jenkins/model/Messages_da.properties core/src/main/resources/jenkins/model/Messages_de.properties core/src/main/resources/jenkins/model/Messages_es.properties core/src/main/resources/jenkins/model/Messages_it.properties core/src/main/resources/jenkins/model/Messages_ja.properties core/src/main/resources/jenkins/model/Messages_lt.properties core/src/main/resources/jenkins/model/Messages_pt_BR.properties core/src/main/resources/jenkins/model/Messages_sr.properties core/src/main/resources/jenkins/model/Messages_zh_TW.properties core/src/main/resources/lib/hudson/project/config-disableBuild.jelly core/src/main/resources/lib/hudson/project/makeDisabled.jelly core/src/main/resources/lib/hudson/project/makeDisabled_ar.properties core/src/main/resources/lib/hudson/project/makeDisabled_bg.properties core/src/main/resources/lib/hudson/project/makeDisabled_ca.properties core/src/main/resources/lib/hudson/project/makeDisabled_cs.properties core/src/main/resources/lib/hudson/project/makeDisabled_da.properties core/src/main/resources/lib/hudson/project/makeDisabled_de.properties core/src/main/resources/lib/hudson/project/makeDisabled_es.properties core/src/main/resources/lib/hudson/project/makeDisabled_et.properties core/src/main/resources/lib/hudson/project/makeDisabled_fi.properties core/src/main/resources/lib/hudson/project/makeDisabled_fr.properties core/src/main/resources/lib/hudson/project/makeDisabled_he.properties core/src/main/resources/lib/hudson/project/makeDisabled_hu.properties core/src/main/resources/lib/hudson/project/makeDisabled_it.properties core/src/main/resources/lib/hudson/project/makeDisabled_ja.properties core/src/main/resources/lib/hudson/project/makeDisabled_ko.properties core/src/main/resources/lib/hudson/project/makeDisabled_lt.properties core/src/main/resources/lib/hudson/project/makeDisabled_lv.properties core/src/main/resources/lib/hudson/project/makeDisabled_nb_NO.properties core/src/main/resources/lib/hudson/project/makeDisabled_nl.properties core/src/main/resources/lib/hudson/project/makeDisabled_pl.properties core/src/main/resources/lib/hudson/project/makeDisabled_pt_BR.properties core/src/main/resources/lib/hudson/project/makeDisabled_pt_PT.properties core/src/main/resources/lib/hudson/project/makeDisabled_ro.properties core/src/main/resources/lib/hudson/project/makeDisabled_ru.properties core/src/main/resources/lib/hudson/project/makeDisabled_sk.properties core/src/main/resources/lib/hudson/project/makeDisabled_sl.properties core/src/main/resources/lib/hudson/project/makeDisabled_sr.properties core/src/main/resources/lib/hudson/project/makeDisabled_sv_SE.properties core/src/main/resources/lib/hudson/project/makeDisabled_tr.properties core/src/main/resources/lib/hudson/project/makeDisabled_uk.properties core/src/main/resources/lib/hudson/project/makeDisabled_zh_CN.properties core/src/main/resources/lib/hudson/project/makeDisabled_zh_TW.properties pom.xml test/src/test/groovy/hudson/cli/EnableJobCommandTest.groovy test/src/test/java/hudson/cli/EnableJobCommandTest.java http://jenkins-ci.org/commit/jenkins/3af0cc68cb1cea3047a21400486c075f1b555cf2 Log: JENKINS-27299 Define disabled in ParameterizedJob rather than AbstractProject (#2866) Offering default methods on ParameterizedJob. Javadoc typo. Cleaner use of default methods in ParameterizedJob. Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build. Sketch of pulling disabled functionality into ParameterizedJob. EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker. All CLI commands could be broken by a missing CLI.*.shortDescription key on just one! Forgot to move CLI method short descriptions to new package. Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here. Trying to fix up access-modifier versions; started failing in CI today for unknown reasons. Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>. Using new type bounds. access-modifier 1.11 released. MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly. Trying to generalize some more. Minor simplification. JENKINS-34716 Generalizing doPolling and schedulePolling. isBuildable Obsolete comment. Updated comments. bridge-method-injector 1.17 Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem. bridge-method-injector 1.17
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/model/AbstractProject.java
            core/src/main/java/hudson/tasks/BuildTrigger.java
            http://jenkins-ci.org/commit/jenkins/f1a26582c1b25c470989d19b25378cff5c6d2497
            Log:
            JENKINS-28113 Allow freestyle builds to trigger downstream Pipeline builds (#2873)

            • Offering default methods on ParameterizedJob.
            • Javadoc typo.
            • Cleaner use of default methods in ParameterizedJob.
            • Sketch of pulling disabled functionality into ParameterizedJob.
            • EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker.
            • All CLI commands could be broken by a missing CLI.*.shortDescription key on just one!
            • Forgot to move CLI method short descriptions to new package.
            • Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here.
            • Trying to fix up access-modifier versions; started failing in CI today for unknown reasons.
            • Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>.
            • Using new type bounds.
            • access-modifier 1.11 released.
            • MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly.
            • Trying to generalize some more.
            • Minor simplification.
            • isBuildable
            • Obsolete comment.
            • Updated comments.
            • bridge-method-injector 1.17
            • Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem.
            • [FIXED JENKINS-28113] Generalize BuildTrigger to be able to trigger non-AbstractProject downstream ParameterizedJob’s without DependencyGraph.
            • JENKINS-22949 Dropping QueueItemAuthenticator trickiness, as in #2881.
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/AbstractProject.java core/src/main/java/hudson/tasks/BuildTrigger.java http://jenkins-ci.org/commit/jenkins/f1a26582c1b25c470989d19b25378cff5c6d2497 Log: JENKINS-28113 Allow freestyle builds to trigger downstream Pipeline builds (#2873) Offering default methods on ParameterizedJob. Javadoc typo. Cleaner use of default methods in ParameterizedJob. Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build. Sketch of pulling disabled functionality into ParameterizedJob. EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker. All CLI commands could be broken by a missing CLI.*.shortDescription key on just one! Forgot to move CLI method short descriptions to new package. Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here. Trying to fix up access-modifier versions; started failing in CI today for unknown reasons. Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>. Using new type bounds. access-modifier 1.11 released. MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly. Trying to generalize some more. Minor simplification. JENKINS-34716 Generalizing doPolling and schedulePolling. isBuildable Obsolete comment. Updated comments. bridge-method-injector 1.17 Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem. [FIXED JENKINS-28113] Generalize BuildTrigger to be able to trigger non-AbstractProject downstream ParameterizedJob’s without DependencyGraph. JENKINS-22949 Dropping QueueItemAuthenticator trickiness, as in #2881.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/src/main/java/hudson/cli/AbstractBuildRangeCommand.java
            core/src/main/java/hudson/cli/BuildCommand.java
            core/src/main/java/hudson/cli/ConsoleCommand.java
            core/src/main/java/hudson/cli/DeleteBuildsCommand.java
            core/src/main/java/hudson/cli/ListChangesCommand.java
            core/src/main/java/hudson/cli/ReloadJobCommand.java
            core/src/main/java/hudson/cli/RunRangeCommand.java
            core/src/main/java/hudson/cli/SetBuildDescriptionCommand.java
            core/src/main/java/hudson/cli/SetBuildDisplayNameCommand.java
            core/src/main/java/hudson/model/AbstractItem.java
            test/src/test/java/hudson/cli/AbstractBuildRangeCommand2Test.java
            test/src/test/java/hudson/cli/AbstractBuildRangeCommandTest.java
            test/src/test/java/hudson/cli/ReloadJobCommandTest.java
            test/src/test/java/hudson/cli/RunRangeCommand2Test.java
            test/src/test/java/hudson/cli/RunRangeCommandTest.java
            http://jenkins-ci.org/commit/jenkins/33afbcc87f783e4b2ea79ef1a77e9bbef6e6b837
            Log:
            Make all CLI commands compatible with Pipeline where possible (#2874)

            • [FIX JENKINS-30785] Generalize some CLI stuff to AbstractItem
            • Offering default methods on ParameterizedJob.
            • Javadoc typo.
            • Cleaner use of default methods in ParameterizedJob.
            • Sketch of pulling disabled functionality into ParameterizedJob.
            • EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker.
            • All CLI commands could be broken by a missing CLI.*.shortDescription key on just one!
            • Forgot to move CLI method short descriptions to new package.
            • Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here.
            • Trying to fix up access-modifier versions; started failing in CI today for unknown reasons.
            • Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>.
            • Using new type bounds.
            • access-modifier 1.11 released.
            • MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly.
            • Trying to generalize some more.
            • Minor simplification.
            • isBuildable
            • Obsolete comment.
            • Updated comments.
            • bridge-method-injector 1.17
            • Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem.
            • Making delete-builds and list-changes commands work with Pipeline.
            • [FIXED JENKINS-41527] Made console CLI command compatible with Pipeline.
            • Fixed set-build-description and set-build-display-name.
            • @oleg-nenashev agreed it would be clearer to explicitly mark commands as restricted, not APIs.
            • Updated tests to match slight message changes.
            • bridge-method-injector 1.17
            • @olivergondza pointed out that RunRangeCommand is a better name than JobRangeCommand.
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/cli/AbstractBuildRangeCommand.java core/src/main/java/hudson/cli/BuildCommand.java core/src/main/java/hudson/cli/ConsoleCommand.java core/src/main/java/hudson/cli/DeleteBuildsCommand.java core/src/main/java/hudson/cli/ListChangesCommand.java core/src/main/java/hudson/cli/ReloadJobCommand.java core/src/main/java/hudson/cli/RunRangeCommand.java core/src/main/java/hudson/cli/SetBuildDescriptionCommand.java core/src/main/java/hudson/cli/SetBuildDisplayNameCommand.java core/src/main/java/hudson/model/AbstractItem.java test/src/test/java/hudson/cli/AbstractBuildRangeCommand2Test.java test/src/test/java/hudson/cli/AbstractBuildRangeCommandTest.java test/src/test/java/hudson/cli/ReloadJobCommandTest.java test/src/test/java/hudson/cli/RunRangeCommand2Test.java test/src/test/java/hudson/cli/RunRangeCommandTest.java http://jenkins-ci.org/commit/jenkins/33afbcc87f783e4b2ea79ef1a77e9bbef6e6b837 Log: Make all CLI commands compatible with Pipeline where possible (#2874) [FIX JENKINS-30785] Generalize some CLI stuff to AbstractItem Offering default methods on ParameterizedJob. Javadoc typo. Cleaner use of default methods in ParameterizedJob. Need to pick up https://github.com/infradna/bridge-method-injector/pull/15 to be able to build. Sketch of pulling disabled functionality into ParameterizedJob. EnableJobCommandTest.groovy → EnableJobCommandTest.java, and replacing deprecated Remoting-based CLI calls with CLICommandInvoker. All CLI commands could be broken by a missing CLI.*.shortDescription key on just one! Forgot to move CLI method short descriptions to new package. Needed a @CLIResolver for ParameterizedJob. Adding an OptionHandler while we are here. Trying to fix up access-modifier versions; started failing in CI today for unknown reasons. Introduced <p:makeDisabled/> by analogy with <p:config-disableBuild/>. Using new type bounds. access-modifier 1.11 released. MatrixProject and MavenModuleSet both expect to have access to makeDisabled.jelly. Trying to generalize some more. Minor simplification. JENKINS-34716 Generalizing doPolling and schedulePolling. isBuildable Obsolete comment. Updated comments. bridge-method-injector 1.17 Unfortunately AbstractProject.schedulePolling cannot delegate to SCMTriggerItem. Making delete-builds and list-changes commands work with Pipeline. [FIXED JENKINS-41527] Made console CLI command compatible with Pipeline. Fixed set-build-description and set-build-display-name. @oleg-nenashev agreed it would be clearer to explicitly mark commands as restricted, not APIs. Updated tests to match slight message changes. bridge-method-injector 1.17 @olivergondza pointed out that RunRangeCommand is a better name than JobRangeCommand.

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                ataylor Alex Taylor
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: