jenkins - 我应该如何在 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://']]])
解决方案
推荐阅读
- c++ - std::same_as 和 std::is_same 之间的区别
- search - 有效地从一个文件中查找另一个文件中的行
- neo4j - 在节点值中找到“GAP”?还是下一个?
- php - 未经授权:聚合 ParseQuery PHP SDK 需要主密钥
- sql - 使用两个外键的 SQL 多对一连接
- twilio - 为什么即使将重试策略设置为 all,我的 Twilio 状态回调也不会再次调用?
- python - Visual Studio Code 拒绝在虚拟环境中安装 Tensorflow
- node.js - EPERM 错误运行测试 nodejs / CodeceptJS
- firebase - 在 Flutter 中从 Firebase FireCloud 接收数据时,StreamBuilder 中的快照代码不会被执行
- python - Plaidml 无法设置:“plaidml-setup”未被识别为内部或外部命令