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

Support all Perforce global config values in jcasc

      When exporting the config, only lastSuccess shows.
      jenkins:
      unclassified:
      perforce:
      lastSuccess: false
       

      Defining other globals opts, like  "headLimit: 100" gives error:

      12:28:19  io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class org.jenkinsci.plugins.p4.PerforceScm$DescriptorImpl : headLimit.

      12:28:19  Available attributes : lastSuccess

      {{}}

      Immediate need is maxFiles, maxChanges, and headLimit{}

          [JENKINS-68502] Support all Perforce global config values in jcasc

          Brian Chen added a comment - - edited

          Tested this with configuration as code plugin 1.51 and Jenkins 2.263.3 and is confirmed working with the following snippet:

          unclassified:
            perforce:
              headLimit: 100

           

           

          Brian Chen added a comment - - edited Tested this with configuration as code plugin 1.51 and Jenkins 2.263.3 and is confirmed working with the following snippet: unclassified: perforce: headLimit: 100    

            joel_brown Joel Brown
            joel_brown Joel Brown
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: