codecamp

Spring Cloud 使用SCM存根下载器

每当repositoryRoot以SCM协议开头(当前我们仅支持git://)时,存根下载器都会尝试克隆存储库,并将其用作生成测试或存根的合同来源。

通过环境变量,系统属性,插件内部设置的属性或合同存储库配置,您可以调整下载程序的行为。您可以在下面找到属性列表

表96.1 SCM存根下载器属性

物业类型

物业名称

描述

* git.branch(插件支持)

* stubrunner.properties.git.branch(系统道具)

* STUBRUNNER_PROPERTIES_GIT_BRANCH(环境道具)

结帐哪个分支

* git.username(插件支持)

* stubrunner.properties.git.username(系统道具)

* STUBRUNNER_PROPERTIES_GIT_USERNAME(env prop)

 

Git克隆用户名

* git.password(插件支持)

* stubrunner.properties.git.password(系统道具)

* STUBRUNNER_PROPERTIES_GIT_PASSWORD(环保道具)

 

Git克隆密码

* git.no-of-attempts(插件支持)

* stubrunner.properties.git.no-of-attempts(系统道具)

* STUBRUNNER_PROPERTIES_GIT_NO_OF_ATTEMPTS(环境道具)

10

将提交推送到origin的尝试次数

* git.wait-between-attempts(插件支持)

* stubrunner.properties.git.wait-between-attempts(系统道具)

* STUBRUNNER_PROPERTIES_GIT_WAIT_BETWEEN_ATTEMPTS(env prop)

1000

两次尝试将提交推送到origin时要等待的毫秒数


Spring Cloud 使用自定义存根下载器
Spring Cloud 使用契约存根下载器
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

三、Spring Cloud Netflix

SpringCloud Hystrix超时和Ribbon客户

SpringCloud 重试失败的请求

五、Spring Cloud Stream

六、SpringCloud Binder实现

SpringCloud 重试RabbitMQ Binder

SpringCloud Dead-Letter队列处理

八、Spring Cloud Sleuth

SpringCloud 当前Span

十二、Spring Cloud for Cloud Foundry

十三、Spring Cloud Contract

Spring Cloud Contract验证程序设置

SrpingCloud Gradle项目

十五、Spring Cloud网关

Spring Cloud 配置路由谓词工厂和网关过滤工厂

Spring Cloud TLS / SSL

Spring Cloud网关配置

SpringCloud 故障排除

十八、Spring Cloud GCP

Spring Cloud GCP Spring资源

Spring Cloud Spring JDBC

Spring Cloud Redis的Cloud Memorystore

Spring Cloud 云身份识别代理(IAP)身份验证

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }