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

properties step causing job config changes for every build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Checked on Jenkins ver. 2.164.3 and Jenkins ver. 2.179, both on Windows platform.
      Plugins version:
      Pipeline: Multibranch 2.21
      Job Configuration History 2.22
      Build Blocker 1.7.3
    • Similar Issues:

      Description

      Adding the properties step to your pipeline script causes changes in job configuration xml for every build, even if there are no changes in the configuration. This results in misleading the user that every build have config changes and storing configuration history for every build. This behaviour is making the job config history useless. 

      What is happening is that the order of <actions> sub elements, in job configuration xml, is constantly changing, however the overall configuration for every build is the same. The job configuration difference page is showing 'no lines changed'. I have attached config.xml for two consecutive builds.

      I have tested this behaviour for Build blocker plugin property, but it is the same for very property.

      Steps to reproduce:

      1. Add anywhere in your pipeline script properties step:
      properties([
          [
              $class: 'BuildBlockerProperty', 
              blockLevel: 'GLOBAL', 
              blockingJobs: 'examplejob', 
              scanQueueFor: 'DISABLED', 
              useBuildBlocker: true
          ]
      ])
      

      or any other property:

      properties([
          disableConcurrentBuilds()
      ])
      

        Attachments

        1. 57_config.xml
          2 kB
        2. 57_history.xml
          0.3 kB
        3. 58_config.xml
          2 kB
        4. 58_history.xml
          0.3 kB

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            stefanbrausch Stefan Brausch
            Reporter:
            plawniczuk Piotr Ławniczuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: