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

Workflow integration for Parameterized Trigger

    XMLWordPrintable

Details

    Description

      Currently hudson.plugins.parameterizedtrigger.BuildTriggerConfig and related classes is designed to assume that the downstream project is an AbstractProject, preventing it from triggering a WorkflowJob in schedule (see also perform, perform2, DescriptorImpl.doCheckProjects, etc.).

      This could probably be relaxed by just checking for a Job & Queue.Task from which you can schedule a job with a little difficulty (check ParameterizedJob.getQuietPeriod and Job.isBuildable); or perhaps SCMTriggerItem whose scheduleBuild2 is more convenient.

      Should work smoothly for TriggerBuilder. For BuildTrigger, can work to the extent that canDeclare is made to be false, so that the triggering is done explicitly rather than via DependencyDeclarer (and thus the DependencyGraph, which at least for now is restricted to AbstractProject).

      Attachments

        Issue Links

          Activity

            svanoort Sam Van Oort added a comment - Resolved with https://github.com/jenkinsci/parameterized-trigger-plugin/pull/87 As of version 2.28

            Version 2.28 works, nice!

            As a comment the upstream/downstream relationships is not visible in the web browser/API. I think this would be nice to have.

            veen Vegard Endresen added a comment - Version 2.28 works, nice! As a comment the upstream/downstream relationships is not visible in the web browser/API. I think this would be nice to have.
            jglick Jesse Glick added a comment -

            the upstream/downstream relationships is not visible in the web browser/API

            This is not possible from the plugin currently since DependencyGraph is currently limited to AbstractProject. I filed JENKINS-29913 to track it.

            jglick Jesse Glick added a comment - the upstream/downstream relationships is not visible in the web browser/API This is not possible from the plugin currently since DependencyGraph is currently limited to AbstractProject . I filed JENKINS-29913 to track it.

            Code changed in jenkins
            User: Jesse Glick
            Path:
            COMPATIBILITY.md
            http://jenkins-ci.org/commit/workflow-plugin/ad0ae293d06a22284930bf6bb4f7096b2f357771
            Log:
            JENKINS-26050 Noting release.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: COMPATIBILITY.md http://jenkins-ci.org/commit/workflow-plugin/ad0ae293d06a22284930bf6bb4f7096b2f357771 Log: JENKINS-26050 Noting release.
            qtruong77 Quang Truong added a comment -

            Should we add update to BuildInfoExporterAction.java to support for Workflow too? We still use AbstractProject and AbstractBuild instead of Job and Run so BuildInfoExporterAction.getTriggeredProjects() and BuildInfoExporterAction.getTriggeredBuilds() will return a non-empty list but the workflow item is a null item.

            qtruong77 Quang Truong added a comment - Should we add update to BuildInfoExporterAction.java to support for Workflow too? We still use AbstractProject and AbstractBuild instead of Job and Run so BuildInfoExporterAction.getTriggeredProjects() and BuildInfoExporterAction.getTriggeredBuilds() will return a non-empty list but the workflow item is a null item.

            People

              svanoort Sam Van Oort
              jglick Jesse Glick
              Votes:
              15 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: