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

pipeline job isn't triggered when initiated by startup trigger

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: startup-trigger-plugin
    • Labels:
      None
    • Environment:
      jenkins:2.39
      startup-trigger-plugin:2.7
      workflow-aggregator:2.4
      workflow-job:2.9
    • Similar Issues:

      Description

      When I have a pipeline job which supposed to be triggered on node start up using the startup-trigger-plugin it's not triggered when staring up.

      scenario:

      • jenkins 2.X with workflow plugins
      • simple pipeline script
      • only one node (master)

        Attachments

          Activity

          Hide
          ejpenney Emory Penney added a comment -

          Looks like this is because WorkflowJob doesn't extend AbstractProject (for reasons). Jobs and WorkflowJob also don't implement getTrigger() so... I'm investigating a work around.

          Show
          ejpenney Emory Penney added a comment - Looks like this is because WorkflowJob doesn't extend AbstractProject (for reasons). Jobs and WorkflowJob also don't implement getTrigger() so... I'm investigating a work around.
          Hide
          ejpenney Emory Penney added a comment -

          Fixed in 2.8

          Show
          ejpenney Emory Penney added a comment - Fixed in 2.8
          Hide
          sdrzazga Stefan Drzazga added a comment -

          Thank you, Strongly appreciated!!!
          Keep up the good work!

          Show
          sdrzazga Stefan Drzazga added a comment - Thank you, Strongly appreciated!!! Keep up the good work!
          Hide
          pmatignon Patrice Matignon added a comment -

          What is the syntax inside a jenkinsfile to register such a trigger ?

          Show
          pmatignon Patrice Matignon added a comment - What is the syntax inside a jenkinsfile to register such a trigger ?
          Hide
          ejpenney Emory Penney added a comment -

          Typically the XML looks something like this:

           

           

          <triggers>
            <org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger plugin="startup-trigger-plugin@2.8">
              <spec></spec>
              <label>build_pool_A build_pool_B</label>
              <quietPeriod>5</quietPeriod>
              <nodeParameterName>label</nodeParameterName>
              <runOnChoice>ON_CONNECT</runOnChoice>
            </org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger>
          </triggers>
          

           

           

          Show
          ejpenney Emory Penney added a comment - Typically the XML looks something like this:     <triggers> <org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger plugin= "startup-trigger-plugin@2.8" > <spec></spec> <label>build_pool_A build_pool_B</label> <quietPeriod>5</quietPeriod> <nodeParameterName>label</nodeParameterName> <runOnChoice>ON_CONNECT</runOnChoice> </org.jvnet.hudson.plugins.triggers.startup.HudsonStartupTrigger> </triggers>    
          Hide
          ejpenney Emory Penney added a comment -

          This issue has been resolved in 2.8 for about a year, marking it closed.

          Show
          ejpenney Emory Penney added a comment - This issue has been resolved in 2.8 for about a year, marking it closed.

            People

            • Assignee:
              ejpenney Emory Penney
              Reporter:
              sdrzazga Stefan Drzazga
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: