jenkinsci / jenkinsci/cloudbees-folder-plugin

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

Open
#723 1 comment 0 reactions 0 assignees View on GitHub
component:cloudbees-folder-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
59
Forks
117
PR merge metrics
No merged PRs in 30d

Description


  • 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.