Skip to content

[JENKINS-75183] Missing <triggers> XML Configuration in Job Definition after Post request #723

@jenkins-infra-bot

Description

@jenkins-infra-bot
  • Problem: After updating the CloudBees Folder Plugin from version 6.955.v81e2a_35c08d3 to 6.959.v4ed5cc9e2dd4, the section of our job configuration XML is not being processed correctly when submitted. We send job configurations as XML via a POST request using the URL:
    {host}/{project}/createItem?name={project}
    

    The XML part with triggers section looks like:

    
         "cloudbees-folder@​6.9">
           PLACEHOLDER_PERIODIC_FOLDER_TRIGGER_SPEC
           PLACEHOLDER_PERIODIC_FOLDER_TRIGGER_INTERVAL
         
       
     

    and it's missing in the configuration that Jenkins receives. Instead, only appears, which then defaults to a 1-day interval.

  • Temporary Solution: After the job is initially created, we can manually update the section by sending an updated XML configuration via a POST request to:
     {host}/{project}/job/{project}/config.xml 

    This allows us to set the correct trigger configuration, but the initial creation does not process the triggers as expected.

  • Expected Behavior: The complete XML snippet should be processed and reflected in the job configuration upon initial creation.
  • Actual Behavior: The section is omitted during initial creation, requiring a manual update to set the correct configuration.
  • Jenkins Version: 2.479.3
  • Plugin Version: 6.980.v5a_cc0cb_25881

Originally reported by dia_na17, imported from: Missing XML Configuration in Job Definition after Post request
  • status: Open
  • priority: Major
  • component(s): cloudbees-folder-plugin
  • label(s): XML, jenkins, job-configuration, plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251211-141027
Raw content of original issue
  • Problem: After updating the CloudBees Folder Plugin from version 6.955.v81e2a_35c08d3 to 6.959.v4ed5cc9e2dd4, the <triggers> section of our job configuration XML is not being processed correctly when submitted. We send job configurations as XML via a POST request using the URL:
    {host}/{project}/createItem?name={project}
    

    The XML part with triggers section looks like:

    <triggers>
         <com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger plugin="cloudbees-folder@6.9">
           <spec>PLACEHOLDER_PERIODIC_FOLDER_TRIGGER_SPEC</spec>
           <interval>PLACEHOLDER_PERIODIC_FOLDER_TRIGGER_INTERVAL</interval>
         </com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger>
       </triggers>
     

    and it's missing in the configuration that Jenkins receives. Instead, only <triggers/> appears, which then defaults to a 1-day interval.

  • Temporary Solution: After the job is initially created, we can manually update the <triggers> section by sending an updated XML configuration via a POST request to:
     {host}/{project}/job/{project}/config.xml 

    This allows us to set the correct trigger configuration, but the initial creation does not process the triggers as expected.

  • Expected Behavior: The complete <triggers> XML snippet should be processed and reflected in the job configuration upon initial creation.
  • Actual Behavior: The <triggers> section is omitted during initial creation, requiring a manual update to set the correct configuration.
  • Jenkins Version: 2.479.3
  • Plugin Version: 6.980.v5a_cc0cb_25881
  • environment: Jenkins Setup: Self-hosted using Docker, version 2.479.3

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions