Eva*_*oll 4 git-tag gitlab gitlab-ci semantic-release
尝试设置semantic-release/gitlab,我在我的GitLab日志中得到了这个,
Error: Command failed with exit code 128: git tag v1.0.0 2c30602010d7d9f26cc0880b988ff9de6405daa5
fatal: tag 'v1.0.0' already exists
at makeError (/builds/myProject/angular-validators/node_modules/semantic-release/node_modules/execa/lib/error.js:60:11)
at handlePromise (/builds/myProject/angular-validators/node_modules/semantic-release/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async tag (/builds/myProject/angular-validators/node_modules/semantic-release/lib/git.js:224:3)
at async run (/builds/myProject/angular-validators/node_modules/semantic-release/index.js:191:5)
at async module.exports (/builds/myProject/angular-validators/node_modules/semantic-release/index.js:260:22)
at async module.exports (/builds/myProject/angular-validators/node_modules/semantic-release/cli.js:55:5) {
shortMessage: 'Command failed with exit code 128: git tag v1.0.0 2c30602010d7d9f26cc0880b988ff9de6405daa5',
command: 'git tag v1.0.0 2c30602010d7d9f26cc0880b988ff9de6405daa5',
Run Code Online (Sandbox Code Playgroud)
但是当我在 GitLab 上查看我的项目时,
https://gitlab/myGroup/myProject/-/tags
Run Code Online (Sandbox Code Playgroud)
它没有显示任何标签。当我查看管道的输出时,我看到
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/myGroup/myProject/.git/
Checking out fc225500 as master...
Removing .npm/
Removing node_modules/
Skipping Git submodules setup
Run Code Online (Sandbox Code Playgroud)
你需要改变你的“Git 策略”,进行克隆。如果不这样做,就无法克服此错误或清除缓存。
在 GitLab 文档中查找有关选择 Git 策略的说明。上面详细介绍了它们支持两种方法,
GIT_STRATEGY或者通过在文件中指定变量.gitlab-ci.yml。| 归档时间: |
|
| 查看次数: |
3567 次 |
| 最近记录: |