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

Jenkins promoted builds plugin wrecks job configuration respectively fails on updating

    Details

    • Similar Issues:

      Description

      I have noticed from beginning a weird behaviour with the promoted builds plugin.
      A job configuration can be made as long as there is no promoted builds plugin configured.
      Any changes made after the plugin is active/configured will result in a "Error - Failed to create".

      In newer Jenkins versions do the changes in the job config simply not take place. The config file is completely wrecked in case you use an older version of Jenkins.
      The config files for the promote plugin remain intact. Rebuilding the job configuration and activating the promote plugin will not lead to a reuse of the old promote config files. The inteface behaves like it is first time you use it. Saving will then overwrite the old configuration.

      Only ways to make changes later on are either to deactivate the promote plugin, make the changes and save and then rebuild the promote plugins configuration from scratch or by making the changes with an text editor and reload the jenkins configuration.

      I have made some research and noticed that the content of text fields in the job configuration are terminated with a
      This terminator is removed entirely after the promote plugin is active. I have no proof but I think this is somehow related. The terminator is present until the passage comes that configures the promote plugin. Everything past the passage is not terminated.

      So in other words. Tasks have the terminator, build steps not

        Attachments

          Activity

          kopfwunde Jan Seidel created issue -
          kopfwunde Jan Seidel made changes -
          Field Original Value New Value
          Description I have noticed from beginning a weird behaviour with the promoted builds plugin.
          A job configuration can be made as long as there is no promoted builds plugin configured.
          Any changes made after the plugin is active/configured will result in a "Error - Failed to create".

          In newer Jenkins versions do the changes in the job config simply not take place. The config file is completely wrecked in case you use an older version of Jenkins.
          The config files for the promote plugin remain intact. Rebuilding the job configuration and activating the promote plugin will not lead to a reuse of the old promote config files. The inteface behaves like it is first time you use it. Saving will then overwrite the old configuration.

          I have made some research and noticed that the content of text fields in the job configuration are terminated with a 
          This terminator is removed entirely after the promote plugin is active. Only ways to make changes later on are either to deactivate the promote plugin, make the changes and save and then rebuild the promote plugins configuration from scratch or by making the changes with an text editor and reload the jenkins configuration.
          I have noticed from beginning a weird behaviour with the promoted builds plugin.
          A job configuration can be made as long as there is no promoted builds plugin configured.
          Any changes made after the plugin is active/configured will result in a "Error - Failed to create".

          In newer Jenkins versions do the changes in the job config simply not take place. The config file is completely wrecked in case you use an older version of Jenkins.
          The config files for the promote plugin remain intact. Rebuilding the job configuration and activating the promote plugin will not lead to a reuse of the old promote config files. The inteface behaves like it is first time you use it. Saving will then overwrite the old configuration.

          Only ways to make changes later on are either to deactivate the promote plugin, make the changes and save and then rebuild the promote plugins configuration from scratch or by making the changes with an text editor and reload the jenkins configuration.

          I have made some research and noticed that the content of text fields in the job configuration are terminated with a 
          This terminator is removed entirely after the promote plugin is active. I have no proof but I think this is somehow related. The terminator is present until the passage comes that configures the promote plugin. Everything past the passage is not terminated.

          So in other words. Tasks have the terminator, build steps not
          kopfwunde Jan Seidel made changes -
          Labels bug builds plugins promoted
          kopfwunde Jan Seidel made changes -
          Assignee Peter Hayes [ petehayes ]
          kopfwunde Jan Seidel made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s current [ 10162 ]
          Resolution Fixed [ 1 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 140652 ] JNJira + In-Review [ 189173 ]

            People

            • Assignee:
              petehayes Peter Hayes
              Reporter:
              kopfwunde Jan Seidel
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: