[JIRA] (JENKINS-57837) properties step causing job config changes for every build

3 views
Skip to first unread message

plawniczuk@q-loc.com (JIRA)

unread,
Jun 4, 2019, 6:50:02 AM6/4/19
to jenkinsc...@googlegroups.com
Piotr Ławniczuk created an issue
 
Jenkins / Bug JENKINS-57837
properties step causing job config changes for every build
Issue Type: Bug Bug
Assignee: Stefan Brausch
Attachments: 57_config.xml, 57_history.xml, 58_config.xml, 58_history.xml
Components: jobconfighistory-plugin, workflow-multibranch-plugin
Created: 2019-06-04 10:49
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
Priority: Minor Minor
Reporter: Piotr Ławniczuk

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()
])
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages