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

Detect changes made by other plugins (not via Configure screen)

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • ez-templates-plugin
    • None

      If I edit a template manually and then reload Jenkins, my changes show on the Template configuration page, but do not propagate out to the Jobs that use the Template.

      I have to then save the template in Jenkins UI to have the changes propagate out.

          [JENKINS-42886] Detect changes made by other plugins (not via Configure screen)

          Steve Cohen created issue -

          Steve Cohen added a comment -

          Apparently in 36749 changes didn't propagate at all.  Now they do, but not after a manual update of the template.

          Steve Cohen added a comment - Apparently in 36749 changes didn't propagate at all.  Now they do, but not after a manual update of the template.
          Steve Cohen made changes -
          Link New: This issue is related to JENKINS-36749 [ JENKINS-36749 ]

          Steve Cohen added a comment -

          I don't see a place to put the version.  This is with 1.2.5

          Steve Cohen added a comment - I don't see a place to put the version.  This is with 1.2.5
          Marc Carter made changes -
          Assignee Original: Joel Johnson [ joelj ] New: Marc Carter [ drekbour ]

          Marc Carter added a comment -

           "edit a template manually"

          Can you clarify what you mean here. Are you editing the XML?

          (additional details, like plugin versions, go into the freetext Environment field)

          Marc Carter added a comment -  "edit a template manually" Can you clarify what you mean here. Are you editing the XML? (additional details, like plugin versions, go into the freetext Environment field)

          An excellent example of this behavior is with the Job DSL. I'm having this issue, too.

          Child jobs that implement a template are not updated if the template job is managed with DSL. Only when the template is opened in the web UI and saved (with no actual changes made) are the updates to all the child jobs triggered. It seems that the web UI save is performing some behavior to trigger the child jobs to go sync up, and that behavior is absent when the template job configuration is managed in any other manner than the web UI and hitting "Save". Managing job configurations by means other than the web UI is very common.

          Thanks!

           

          Michael Shuler added a comment - An excellent example of this behavior is with the Job DSL. I'm having this issue, too. Child jobs that implement a template are not updated if the template job is managed with DSL. Only when the template is opened in the web UI and saved (with no actual changes made) are the updates to all the child jobs triggered. It seems that the web UI save is performing some behavior to trigger the child jobs to go sync up, and that behavior is absent when the template job configuration is managed in any other manner than the web UI and hitting "Save". Managing job configurations by means other than the web UI is very common. Thanks!  

          Steve Cohen added a comment -

          Yes, Marc Carter, editing the xml file is what I meant by "editing manually".

          Steve Cohen added a comment - Yes, Marc Carter, editing the xml file is what I meant by "editing manually".

          Marc Carter added a comment -

          Sure, accepted.

          Any idea what hook I'm meant to be listening to pick up amendments made not by the main project config screen?

          To detect a genuinely external edit of a project's XML, I'm not sure if there is a hook that will tell me the project was reloaded with different content? I'd need to checksum the content.

          Marc Carter added a comment - Sure, accepted. Any idea what hook I'm meant to be listening to pick up amendments made not by the main project config screen? To detect a genuinely external edit of a project's XML, I'm not sure if there is a hook that will tell me the project was reloaded with different content? I'd need to checksum the content.
          Marc Carter made changes -
          Rank New: Ranked higher

            drekbour Marc Carter
            sc1478 Steve Cohen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: