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

Cannot trigger workflow projects using parameterized-trigger-plugin

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • Jenkins: 1.591
      Parameterized Trigger plugin: 2.25

      Can not trigger workflow from Parameterized Trigger plugin

      Error:
      "XXXXX is not buildable"

          [JENKINS-26009] Cannot trigger workflow projects using parameterized-trigger-plugin

          ikedam added a comment -

          Please describe the detailed steps to reproduce.

          ikedam added a comment - Please describe the detailed steps to reproduce.

          Andrew Lin added a comment -
          • Create a WORKFLOW project A
          • Create a FREESTYLE project B
          • In the freestyle project B, Add a build step of "Trigger/call builds on other projects"
          • Projects to build: A

          will get an error that states "A is not buildable"

          Also, there is no post build in WORKFLOW project. I'm not quite sure if this is the same bug

          Andrew Lin added a comment - Create a WORKFLOW project A Create a FREESTYLE project B In the freestyle project B, Add a build step of "Trigger/call builds on other projects" Projects to build: A will get an error that states "A is not buildable" Also, there is no post build in WORKFLOW project. I'm not quite sure if this is the same bug

          ikedam added a comment -

          Reproduction steps (tested with Jenkins 1.580.1):

          1. Install Workflow plugin components
            • There are many components and I'm not sure what to install. At least, I could reproduce the problem with "Workflow: Job", "Workflow: Basic Steps" and "Workflow: Groovy CPS Execution" (and its dependencies)
            • The version of workflow-plugin is 1.1.
          2. Install parameterized-trigger plugin.
          3. Create a Workflow project "downstream"
            • Definition: Groovy CPS DSL
              • Script
                node {
                    echo "hello world"
                }
                
              • Use Groovy Sandbox
            • This project works perfect by clicking "Build now".
          4. Create a Freestyle Project "upstream"
            • "Trigger parameterized build on other projects" in Post-build steps.
              • Projects to build: downstream

          Result

          • An error message "downstream is not buildable" appears (atttached).
          • upstream doesn't trigger downstream. no error messages are logged. The configuration looks completely ignored.

          ikedam added a comment - Reproduction steps (tested with Jenkins 1.580.1): Install Workflow plugin components There are many components and I'm not sure what to install. At least, I could reproduce the problem with "Workflow: Job", "Workflow: Basic Steps" and "Workflow: Groovy CPS Execution" (and its dependencies) The version of workflow-plugin is 1.1. Install parameterized-trigger plugin. Create a Workflow project "downstream" Definition: Groovy CPS DSL Script node { echo "hello world" } Use Groovy Sandbox This project works perfect by clicking "Build now". Create a Freestyle Project "upstream" "Trigger parameterized build on other projects" in Post-build steps. Projects to build: downstream Result An error message "downstream is not buildable" appears (atttached). upstream doesn't trigger downstream. no error messages are logged. The configuration looks completely ignored.

          ikedam added a comment -

          hierarchy:

          Job
           - WorkflowJob
           - AbstractProject
          

          parameterized-trigger plugin expects downstream projects AbstractProject as Job doesn't provide scheduleBuild2.

          ikedam added a comment - hierarchy: Job - WorkflowJob - AbstractProject parameterized-trigger plugin expects downstream projects AbstractProject as Job doesn't provide scheduleBuild2 .

          ikedam added a comment -

          This is really what Jesse points in JENKINS-26050.

          ikedam added a comment - This is really what Jesse points in JENKINS-26050 .

            huybrechts huybrechts
            andrewln Andrew Lin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: