Customize BuildNow Button

Jenkins setup: Jenkins Setup using helm using Jcasc
I have upgraded my jenkins to version 2.426.3. I’m facing an issue with the below Property. we use below property for customizing the Build Now Button for Production jobs , as of now the jobs are failing as they have this property . Looks like this is deprecated in recent jenkins version , any alternative for this .

  properties {
    buildNowTextProperty {
      alternateBuildNow('Build PRODUCTION Job')
    }
  }
  configure {
    it / 'properties' / 'io.jenkins.plugins.jobtag.JobTagPublisher' {
      'tags' {
        'io.jenkins.plugins.jobtag.JobTag' {
          'value'('PRODUCTION')
          'color'('#db0a1a')
        }
      }
    }
  }

From which version of Jenkins did you upgrade?
Is this JobDSL syntax?

Hi @mawinter69 ,

I have upgraded jenkins from version 2.367 to 2.426.3.This is the Jobdsl configuration which we are adding in dsl . We are using groovy script.earlier it was working in recent its not working.

I’m not so familiar with JobDSL, but there was a breaking change in the Customize Build Now Label plugin
You might want to try

properties {
    buildNowTextProperty {
      labels {
        alternateBuildNow('Build PRODUCTION Job')
      }
    }
  }