[英]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.