
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
这是一个Concourse资源镜像,用于与Atlassian BitBucket的构建状态API交互,支持拉取请求的状态跟踪与更新,帮助CI/CD流程同步构建结果到BitBucket平台。
典型场景为监控BitBucket仓库的拉取请求,自动运行测试并将构建结果状态更新到BitBucket,提升CI/CD流程的自动化效率。
资源类型的source字段需包含以下配置项(加粗为必填):
repo:需跟踪的仓库名称key:消费者的OAuth密钥secret:消费者的OAuth密钥secretteam:仓库所属的团队名称url:BitBucket云API路径(例如:https://api.bitbucket.org,当前仅支持此值)version:BitBucket API版本(例如:2.0,当前仅支持此值)concourse_url:Concourse的URL,用于在BitBucket中设置构建链接(例如:http://ci.example.com)check检查是否存在头部提交处于未测试状态的拉取请求。
in获取跟踪分支的副本,用于代码检出与测试。
out更新提交的状态,需提供以下参数:
commit:包含提交SHA的文件路径state:状态值,必须为success或failed以下是典型的流水线配置示例:
yamlresource_types: - name: pull-request type: docker-image source: repository: thebeefcake/concourse-resource-bitbucket resources: - name: repo-pullrequest type: pull-request source: repo: {{repo-name}} secret: {{bitbucket-secret}} key: {{bitbucket-key}} team: {{team-name}} url: https://api.bitbucket.org version: "2.0" concourse_url: http://ci.example.com jobs: - name: run-tests plan: - get: repo-pullrequest trigger: true - task: test config: platform: linux image_resource: type: docker-image source: {repository: alpine} inputs: - name: repo-pullrequest outputs: - name: pr run: path: sh args: - -exc - | apk add --update --no-cache git version=$(cat repo-pullrequest/version) commit=$(cat repo-pullrequest/commit) branch=$(cat repo-pullrequest/branch) cd repo-pullrequest && git checkout $branch # 运行测试(替换为实际测试命令) echo $version | tee pr/version echo $commit | tee pr/commit on_failure: put: repo-pullrequest params: state: failed commit: pr/commit on_success: put: repo-pullrequest params: state: success commit: pr/commit
在所有Concourse worker上安装,更新部署清单:
yamlproperties: groundcrew: additional_resource_types: - image: "docker:///thebeefcake/concourse-resource-bitbucket#master" type: "pull-request"
单个流水线中使用,添加资源类型配置:
yamlresource_types: - name: "pull-request" type: "docker-image" source: repository: "thebeefcake/concourse-resource-bitbucket" tag: "master"
Apache License v2.0
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务