Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...

这篇具有很好参考价值的文章主要介绍了Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题现象:在jenkins的使用过程中,创建好项目后,执行构建的后,任务失败,查询控制台输出打印如下:

Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...

 错误提示为:ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

问题原因:Jenkins调用git时用了默认的*/master,而gitlab默认使用的是main,打开工贸处配置文件查询如下:

Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...

解决办法:将master修改成main即可,验证结果如下:

Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...

 文章来源地址https://www.toymoban.com/news/detail-504235.html

 

到了这里,关于Jenkins构建失败提示ERROR: Couldn‘t find any revision to build. Verify the repository and branch ...的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • Flutter ios真机调试报错Xcode couldn‘t find any iOS App Development provisioning profiles

    Flutter ios真机调试报错Xcode couldn‘t find any iOS App Development provisioning profiles

    Could not build the precompiled application for the device. Error (Xcode): No profiles for \\\'com.example.jiniu\\\' were found: Xcode couldn\\\'t find any iOS App Development provisioning profiles matching \\\'com.example.jiniu\\\'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. 翻译

    2024年02月16日
    浏览(23)
  • Git error:‘fatal: Couldn‘t find remote ref master‘

    Git error:‘fatal: Couldn‘t find remote ref master‘

    如果出现该错误提示,可能是因为使用了旧命令: master现在被认为是有种族歧视的,github将其换成了 main ,所以现在使用pull可以写为: 如需要将已有repos的 master 换为 main ,可依照以下步骤: 1-重命名本地分支: 2-重命名远程分支 3-删除远程分支 master 4-告知团队中的其他人

    2024年02月09日
    浏览(11)
  • Error: Couldn‘t find preset “es2015“ relative to directory

    vue引入element-ui,运行时报了这个错误 按照element-ui中的步骤 把.babelrc 文件内容从 更改为了 然后运行时就报了这个问题 解决方案: 安装es2015 工具

    2024年02月11日
    浏览(7)
  • mysql启动Starting MySQL ERROR! Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/

    mysql启动Starting MySQL ERROR! Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/

    原因:mysql.server里面这两行没有添加路径,添加路径后即可解决问题 之后又出现新的报错: Starting MySQL.2023-11-23T17:38:37.571813Z mysqld_safe error: log-error set to \\\'/var/log/mariadb/mariadb.log\\\', however file don\\\'t exists. Create writable for user \\\'mysql\\\'.  ERROR! The server quit without updating PID file (/data/mysql-5.

    2024年02月02日
    浏览(9)
  • K8S之Kuboard显示已导入【创建 X509KeyPair 失败】 tls: failed to find any PEM data in certificate input

    K8S之Kuboard显示已导入【创建 X509KeyPair 失败】 tls: failed to find any PEM data in certificate input

    kuboard用着用着,突然发现,只是 已导入 状态,而不是 已就绪 的状态,且重新导入kubeconfig显示 【创建 X509KeyPair 失败】 tls: failed to find any PEM data in certificate input 的提示。 具体问题截图如下: 发现集群状态正常 发现pod状态也是运行正常的 也是OK的 既然都看上去正常,那么,

    2024年02月04日
    浏览(44)
  • iOS pod install失败,提示CocoaPods could not find compatible versions for pod “***“

    1.pod install失败 在执行 pod install 的时候会失败,提示如下: 按提示执行 pod install --repo-update 之后,还是失败,提示: 造成报错的原因有两种: 一、两者的都是由于本地索引库没有更新到最新,找不到对应版本的spec文件。 二、第三方库依赖的系统版本号,高于项目的最低支

    2024年02月09日
    浏览(10)
  • 解决微信小程序提示构建npm失败

    根据报错信息可以看出需要我们在project.config.json文件中指定构建npm相关的路径 在project.config.json中添加如下代码( 要加在setting下哦 ): 添加完成后,再次点击【构建npm】,发现还是报错。 重点来了,这个时候要 重启微信开发者工具 ,然后再次点击【构建npm】,就可以了

    2024年02月03日
    浏览(11)
  • Jenkins构建时报错:ERROR: Failed to parse POMs

    Jenkins构建时报错:ERROR: Failed to parse POMs

    因为在操作中把maven仓库整个文件夹删了,重新建的文件夹,拉取的依赖,然后去看了下maven的东西,发现maven仓库的目录权限和其他不一样,猜测maven仓库目录可能没有写入的权限,尝试执行命令进行提权,然后打包,问题解决了。 另外如果是多模块项目,还可以尝试去排查

    2024年02月11日
    浏览(9)
  • VS创建项目提示error MSB4018: “VCMessage”任务意外失败。 解决方法

    VS创建项目提示error MSB4018: “VCMessage”任务意外失败。 解决方法

    1------ 已启动生成: 项目: QtWidgetsApplication1, 配置: Release x64 ------ 1C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB4018: “VCMessage”任务意外失败。 1C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Microsoft.Cpp.Platform.targets(57,5): error MSB4018: System.FormatException

    2024年02月15日
    浏览(8)
  • Jenkins自动构建打包发布vue项目报错Error: error:0308010C:digital envelope routines::unsupported

    错误日志: 原因: 新版本node.js使用了OpenSSL3.0对允许算法和密钥大小增加了严格的限制。 解决办法: Windows: Linux:

    2024年02月17日
    浏览(8)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包