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

Support all Perforce global config values in jcasc

    XMLWordPrintable

Details

    Description

      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{}

      Attachments

        Activity

          joel_brown Joel Brown created issue -
          joel_brown Joel Brown made changes -
          Field Original Value New Value
          Labels P4_VERIFY P4_VERIFY jcasc-compatibility
          bchen 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

           

           

          bchen 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 made changes -
          Assignee Joel Brown [ joel_brown ]

          People

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

            Dates

              Created:
              Updated: