Jenkins 我应该如何在git scm中使用相同的参数?

Jenkins 我应该如何在git scm中使用相同的参数?,jenkins,mercurial,devops,Jenkins,Mercurial,Devops,我正在修复一个为mercurial scm编写的管道,在那里我发现了一个安装参数,我如何将相同的参数赋予git scm checkout([$class: 'MercurialSCM', credentialsId: '', installation: 'HG-3.4', source: 'https://', clean: true,

我正在修复一个为mercurial scm编写的管道,在那里我发现了一个安装参数,我如何将相同的参数赋予git scm

checkout([$class: 'MercurialSCM', 
                credentialsId: '', 
                installation: 'HG-3.4',
                source: 'https://',
                clean: true,
                revision: branch,`branch`
                browser: [$class: 'BitBucket', url: 'https://']]) 

checkout([$class: 'GitSCM', 
                    branches: [[name: '${branch}']],                    browser: [$class: 'BitbucketWeb', repoUrl: 'https://'], 
                    extensions: [[$class: 'CleanBeforeCheckout']], 
                    userRemoteConfigs: [[credentialsId: 'creds', 
                    url: 'https://']]])