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

pipeline job isn't triggered when initiated by startup trigger

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • startup-trigger-plugin
    • None
    • jenkins:2.39
      startup-trigger-plugin:2.7
      workflow-aggregator:2.4
      workflow-job:2.9

    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

          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.

          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.
          ejpenney Emory Penney added a comment -

          Fixed in 2.8

          ejpenney Emory Penney added a comment - Fixed in 2.8

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

          sdrzazga Stefan Drzazga added a comment - Thank you, Strongly appreciated!!! Keep up the good work!

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

          pmatignon Patrice Matignon added a comment - What is the syntax inside a jenkinsfile to register such a trigger ?
          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>
          

           

           

          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>    
          ejpenney Emory Penney added a comment -

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

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: