Azure 管道 - 错误:路径规范“main”与 git 已知的任何文件不匹配

问题描述 投票:0回答:1

在后台使用 maven-release 插件运行发布管道时,我确实收到以下错误:

Starting: Reattach detached head 
============================================================================== 
Task : Bash 
Description : Run a Bash script on macOS, Linux, or Windows 
Version : 3.227.0 
Author : Microsoft Corporation 
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/bash 
============================================================================== 
Generating script. 
Script contents: 
git checkout main 
========================== Starting Command Output =========================== 
/usr/bin/bash /agent/_work/_temp/b44c1c2b-b722-4d90-a662-570bb11df3cb.sh 
error: pathspec 'main' did not match any file(s) known to git 
##[error]Bash exited with code '1'. 
Finishing: Reattach detached head 
azure pipeline maven-release-plugin
1个回答
0
投票

我必须在管道配置中删除浅获取的检查:

© www.soinside.com 2019 - 2024. All rights reserved.