简体   繁体   English

使用代理 Ubuntu-16.04 在 azure-devops 管道 bash cake 任务中获取 ##[error] Bash 以代码“1”退出

[英]Getting ##[error] Bash exited with code '1' in an azure-devops pipeline bash cake task with agent Ubuntu-16.04

We have a pipeline that runs on a linux agent Ubuntu-16.04 with image version 20200119.1我们有一个在 linux 代理 Ubuntu-16.04 上运行的管道,映像版本为 20200119.1

https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1604-README.md https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1604-README.md

It runs a bash cake task and returns它运行一个 bash cake 任务并返回

Restoring NuGet package Cake.0.36.0.
  GET https://api.nuget.org/v3-flatcontainer/cake/0.36.0/cake.0.36.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/cake/0.36.0/cake.0.36.0.nupkg 12ms
Installing Cake 0.36.0.
Adding package 'Cake.0.36.0' to folder '/home/vsts/work/1/s/build/tools'
Added package 'Cake.0.36.0' to folder '/home/vsts/work/1/s/build/tools'
Error: The assembly name is invalid.

##[error]Bash exited with code '1'.
Finishing: Bash Script

I think the issue is related with this one Cake on OSX fails with "error: the assembly name is invalid"我认为这个问题与OSX上的这个Cake 失败并显示“错误:程序集名称无效”有关

So basically now the agent has Mono 6.8.0 and it runs into this problem.所以基本上现在代理有 Mono 6.8.0,它遇到了这个问题。 Is there any way to fix it?有什么办法可以解决吗?

This issue was fixed after the bash task was updated to version 3.163.1 .此问题在 bash 任务更新到版本3.163.1后得到3.163.1 Now it downloads Cake 0.37.0 and the pipeline runs without problems.现在它下载 Cake 0.37.0并且管道运行没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 防止clear清除bash ubuntu-16.04中的先前屏幕 - Prevent clear from clearing previous screens in bash ubuntu-16.04 在 Azure DevOps 中的“bash 退出,代码为 1”中赛普拉斯测试退出失败 - Failed Cypress test exit in 'bash exited with code 1' in Azure DevOps 如何使 Azure devops 管道任务失败,专门针对 bash 脚本中的失败 - How to fail Azure devops pipeline task specifically for failures in bash script bash 如果 azure devops 任务中的语句未执行 - bash if statement inside the azure devops task is not executing 在Azure DevOps Bash任务中使用XMLStarlet - Use XMLStarlet in Azure DevOps Bash task Azure DevOps 在 bash 任务中生成密码 - Azure DevOps generate a password inside of the bash task 无法找到可执行文件:“bash”错误:使用 Bash@3 Azure DevOps 任务的内联脚本 - Unable to locate executable file: 'bash" error : Inline script using Bash@3 Azure DevOps task 无法找到可执行文件:Azure Devops 管道上的简单脚本出现“bash”错误 - Unable to locate executable file: 'bash' error for a simple script on Azure Devops Pipeline Bash 脚本在本地成功执行但未在 Azure Devops 管道中执行 - Bash script successfully executes locally but not in Azure Devops pipeline azure devops 管道 | bash 脚本在多个项目上运行 dotnet 测试 - azure devops pipeline | bash script to run dotnet test on multiple projects
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM