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

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

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins 1.609
      Workflow 1.5

      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.

          [JENKINS-27965] Can't trigger workflow job as job from freestyle or multijob project

          Jesse Glick added a comment -

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

          Jesse Glick added a comment - Regular build triggers work, just not the ones from the Parameterized Trigger plugin, which is still calling old APIs.

          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?

          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?

          Jesse Glick added a comment -

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

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

          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?

          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?

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

              Created:
              Updated:
              Resolved: