79824506

Date: 2025-11-19 13:39:19
Score: 0.5
Natty:
Report link
    source{
          git {
            credentialsId('x')
            remote('ssh://x@x:22/x/x/' + projectName)
            traits {
              gitBranchDiscovery()
              extensions {
                sparseCheckoutPaths {
                  sparseCheckoutPaths{
                    sparseCheckoutPath {
                      path(jenkinsFile)
                    }
                  }
                }
              }    
          
            }
          }
        }

They moved this inside of traits, before was outside traits when leaved outside of traits triggers depreactiaton , can be checkd at:
https://your.jenkins.installation/plugin/job-dsl/api-viewer/index.html#path/jenkins.scm.api.SCMSource$$List.git

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: David Bister