首页 > 解决方案 > 我应该如何在 git scm 中使用相同的参数?

问题描述

我正在修复一个为 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://']]])

标签: jenkinsmercurialdevops

解决方案


推荐阅读