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

Can't trigger workflow job as job from freestyle or multijob project

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 1.609
      Workflow 1.5
    • Similar Issues:

      Description

      I can't appear to directly trigger a workflow job from another project with Trigger/call builds on other projects in the Build options.

      In the multijob case after configuration the workflow job is not listed in the dashboard for the job - and the workflow job is not triggered. For the freestyle case the workflow job is not run either but it does return the following error:

      ERROR: Build aborted. Can't trigger undefined projects. 1 of the below project(s) can't be resolved:
       > MyWorkflow
      Check your configuration!
      

      Yet the MyWorkflow workflow project is clearly available.

      I'm assuming this is just not something that is yet supported by the workflow plugin, but it would be nice if it were.

      In the meantime I'm working around the problem by setting up my jenkins server to point to localhost as a remote jenkins server and triggering the workflow job as a remote parameterized build. This seems to work, but I lose the context of triggering the job directly within another job.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Regular build triggers work, just not the ones from the Parameterized Trigger plugin, which is still calling old APIs.

            Show
            jglick Jesse Glick added a comment - Regular build triggers work, just not the ones from the Parameterized Trigger plugin, which is still calling old APIs.
            Hide
            tomjdalton Thomas Dalton added a comment - - edited

            Ok thanks for the explanation - it is a shame because I want to combine my workflow with build parameters

            Moreover the Monitor plugin (which I'd quite like to use) doesn't appear to recognise workflow jobs - could this be related too?

            Show
            tomjdalton Thomas Dalton added a comment - - edited Ok thanks for the explanation - it is a shame because I want to combine my workflow with build parameters Moreover the Monitor plugin (which I'd quite like to use) doesn't appear to recognise workflow jobs - could this be related too?
            Hide
            jglick Jesse Glick added a comment -

            I am not sure what the Monitor plugin is, but its problem is probably unrelated. Check the list.

            Show
            jglick Jesse Glick added a comment - I am not sure what the Monitor plugin is, but its problem is probably unrelated. Check the list .
            Hide
            miki725 Miroslav Shubernetskiy added a comment -

            I get exact same error while trying to trigger pipeline job. Should I file a different ticket for that? Or is this ticket still applicable?

            Show
            miki725 Miroslav Shubernetskiy added a comment - I get exact same error while trying to trigger pipeline job. Should I file a different ticket for that? Or is this ticket still applicable?

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                tomjdalton Thomas Dalton
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: