screwdrivercd/store该系统提供简单接口,供构建过程使用现有JWT写入制品(日志、测试结果等)。默认使用简单的内存存储(重启后数据会丢失),可轻松配置为使用S3等替代存储位置。
bash$ git clone ***:screwdriver-cd/store.git ./ $ npm install $ vim ./config/local.yaml # 配置详见下文 $ npm start info: Server running at http://localhost
bash$ vim ./local.yaml # 配置详见下文 $ docker run --rm -it -v `pwd`/local.yaml:/config/local.yaml -p 8080 screwdrivercd/store:latest info: Server running at http://localhost
Screwdriver已默认大部分配置,但可通过local.yaml文件或环境变量覆盖默认值。
覆盖local.yaml的示例:
yamlstrategy: plugin: memory httpd: port: 8080
使用环境变量覆盖的示例:
bash$ export STRATEGY=memory $ export PORT=8080
所有可用环境变量详见此处。
当前系统使用catbox进行存储,因此支持其所有插件(Redis、S3、Memcached等)。目前已内置内存存储和S3存储插件。
若需使用磁盘存储策略以持久化缓存,可按以下配置(需先创建./store-data本地目录):
yamlstrategy: plugin: disk disk: cachePath: './store-data' cleanEvery: 3600000 partition: 'cache'
bash$ npm test
代码采用BSD 3-Clause许可证。详见LICENSE文件了解条款。
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务