jenkins - Jenkins X v3 发布管道在 step-promote-changelog 上失败
问题描述
我在步骤中遇到错误:
显示构建 jx5/php-test/master #2 阶段 from-build-pack 和容器 step-promote-changelog 的日志:
[master f6aa9c6] chore: release 0.0.2
2 files changed, 4 insertions(+), 3 deletions(-)
Updated tag 'v0.0.2' (was 4cc5955)
To https://gitlab.com/jx5/php-test.git
+ 4cc5955...91ae836 v0.0.2 -> v0.0.2 (forced update)
Using batch mode as inside a pipeline
about to run: git for-each-ref --sort=-creatordate --format=%(objectname)%00%(refname:short) --count=2 refs/tags in dir .
91ae8362f782e9b10f994ef05e3baab7c143eb4fv0.0.2
8e0b3aa673dfc553cd377064a662dc6ae12a00aav0.0.1
about to run: git rev-list -n 1 8e0b3aa673dfc553cd377064a662dc6ae12a00aa in dir .
121f4dd3da5bac2d14b15b0974f390a9e2879801
about to run: git for-each-ref --sort=-creatordate --format=%(objectname)%00%(refname:short) --count=1 refs/tags in dir .
91ae8362f782e9b10f994ef05e3baab7c143eb4fv0.0.2
about to run: git rev-list -n 1 91ae8362f782e9b10f994ef05e3baab7c143eb4f in dir .
f6aa9c6e8b7c59189679cf2da7fce79bf26727ee
Generating change log from git ref 121f4dd3da5bac2d14b15b0974f390a9e2879801 => f6aa9c6e8b7c59189679cf2da7fce79bf26727ee
Finding issues in commit messages using git format
about to run: git tag --list v0.0.2 in dir .
v0.0.2
about to run: git tag --list vv0.0.2 in dir .
error: failed to query release on repo jx5/php-test for tag v0.0.2: Not Found
Pipeline failed on stage 'from-build-pack' : container 'step-promote-changelog'. The execution of the pipeline has stopped.
根据官方文档,JenkinsX 集群在 AWS 上运行。图像在 ECR 中并带有正确的标签。当尝试从 master 和 repo 中的不同分支进行推广时,会发生这种情况。预览环境可以工作,所以它可能与 jx 集群配置或 aws 有关。
解决方案
推荐阅读
- scala - 如何检查火花流的许多来源
- nao-robot - Nao 机器人停止识别和响应口语
- java - 转换 XML 不起作用 UTF-8 XMLOutputter Java
- javascript - 日期格式的 Javascript Foreach 打印相同的日期
- bash - linux上读取文件的单字母命令
- c# - AdvancedDataGridView 在 ComboBoxColumn 过滤 c# WinForm 上崩溃
- c++ - Restrict namespace pollution in C++ Header
- javascript - 当有大量自定义标记(1k-10k)时,传单变慢
- postgresql - 获取分区表的表大小(Postgres 10+)
- python - 在 Python 中使用 SciPy 创建稀疏矩阵