- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 Jenkins 为我的 iOS 项目( Xcode 10.2.1 )进行 CICD 设置。
我正在使用 FaSTLane 创建用于测试、归档等的 channel 。
除测试车道外,所有车道都运行良好。如果我直接使用终端执行车道,则没有记录问题。它工作得很好。请在下面找到测试车道
desc "run tests"
lane :executetest do
begin
# Something where you'd like to be able to react to failures
scan(scheme: "iOSProjectTests")
# If ANY exception happens, let me handle it
rescue => ex
# re-raise the exception unless it's something we're OK with ignoring
# raise ex unless ex.message.include?('Error message of interest')
# UI.error ex
# UI.user_error!("Lint check or Test case failed, but continuing anyway!")
UI.important("There were a few failing test cases. Continuing execution")
end
end
** INTERNAL ERROR: Uncaught exception while building **
[18:09:51]: ▸ Uncaught Exception: *** -[_NSStdIOFileHandle writeData:]: Broken pipe
[18:09:51]: ▸ Stack:
[18:09:52]: ▸ 0 __exceptionPreprocess (in CoreFoundation)
[18:09:52]: ▸ 1 objc_exception_throw (in libobjc.A.dylib)
[18:09:52]: ▸ 2 +[NSException raise:format:] (in CoreFoundation)
[18:09:52]: ▸ 3 -[NSConcreteFileHandle writeData:] (in Foundation)
[18:09:52]: ▸ 4 IDETestingFileHandleOutputStream.write(_:) (in IDEFoundation)
[18:09:52]: ▸ 5 @objc IDETestingFileHandleOutputStream.write(_:) (in IDEFoundation)
[18:09:52]: ▸ 6 specialized IDETestingMultiOutputStream.write(_:) (in IDEFoundation)
[18:09:52]: ▸ 7 @objc IDETestingFileHandleOutputStream.write(_:) (in IDEFoundation)
[18:09:52]: ▸ 8 specialized IDETestingLaunchSession.parseConsoleOutput(fromOriginalOutput:) (in IDEFoundation)
[18:09:52]: ▸ 9 @objc IDETestingLaunchSession.parseConsoleOutput(fromOriginalOutput:) (in IDEFoundation)
[18:09:52]: ▸ 10 -[IDEConsoleAdaptor _delegateProcessedOutput:] (in IDEFoundation)
[18:09:52]: ▸ 11 -[IDEConsoleAdaptor _getData:fileHandle:overflowBuffer:stringBuffer:] (in IDEFoundation)
[18:09:52]: ▸ 12 -[IDEConsoleAdaptor _getDataFromNotification:overflowBuffer:stringBuffer:] (in IDEFoundation)
[18:09:52]: ▸ 13 -[IDEConsoleAdaptor _getOutputFromNotification:] (in IDEFoundation)
[18:09:52]: ▸ 14 DVTInvokeWithLazyFailureHint (in DVTFoundation)
[18:09:52]: ▸ 15 -[_DVTNotificationReceiver receiveNotification:] (in DVTFoundation)
[18:09:52]: ▸ 16 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
[18:09:52]: ▸ 17 ___CFXRegistrationPost_block_invoke (in CoreFoundation)
[18:09:52]: ▸ 18 _CFXRegistrationPost (in CoreFoundation)
[18:09:52]: ▸ 19 ___CFXNotificationPost_block_invoke (in CoreFoundation)
[18:09:52]: ▸ 20 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)
[18:09:52]: ▸ 21 _CFXNotificationPost (in CoreFoundation)
[18:09:52]: ▸ 22 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
[18:09:52]: ▸ 23 -[IDEMasterPtyFileHandle _gotData:] (in IDEFoundation)
[18:09:52]: ▸ 24 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ (in CoreFoundation)
[18:09:52]: ▸ 25 ___CFXRegistrationPost_block_invoke (in CoreFoundation)
[18:09:52]: ▸ 26 _CFXRegistrationPost (in CoreFoundation)
[18:09:52]: ▸ 27 ___CFXNotificationPost_block_invoke (in CoreFoundation)
[18:09:52]: ▸ 28 -[_CFXNotificationRegistrar find:object:observer:enumerator:] (in CoreFoundation)
[18:09:52]: ▸ 29 _CFXNotificationPost (in CoreFoundation)
[18:09:52]: ▸ 30 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
[18:09:52]: ▸ 31 _performFileHandleSource (in Foundation)
[18:09:52]: ▸ 32 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation)
[18:09:52]: ▸ 33 __CFRunLoopDoSource0 (in CoreFoundation)
[18:09:52]: ▸ 34 __CFRunLoopDoSources0 (in CoreFoundation)
[18:09:52]: ▸ 35 __CFRunLoopRun (in CoreFoundation)
[18:09:52]: ▸ 36 CFRunLoopRunSpecific (in CoreFoundation)
[18:09:52]: ▸ 37 CFRunLoopRun (in CoreFoundation)
[18:09:52]: ▸ 38 -[Xcode3CommandLineBuildTool _buildWithTimingSection:] (in Xcode3Core)
[18:09:52]: ▸ 39 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
[18:09:52]: ▸ 40 main (in xcodebuild)
[18:09:52]: ▸ 41 start (in libdyld.dylib)
最佳答案
我把快车道改到下面
desc "run tests"
lane :executetest do
begin
# Something where you'd like to be able to react to failures
scan(
scheme: "iOSProjectTests",
devices: ["iPhone X"],
output_style: "standard")
# If ANY exception happens, let me handle it
rescue => ex
# re-raise the exception unless it's something we're OK with ignoring
# raise ex unless ex.message.include?('Error message of interest')
# UI.error ex
# UI.user_error!("Lint check or Test case failed, but continuing anyway!")
UI.important("There were a few failing test cases. Continuing execution")
end
end
Jenkins-lts
启动 Jenkins 。这解决了上述问题。
关于ios - Jenkins 因未捕获异常 : *** -[_NSStdIOFileHandle writeData:]: Broken pipe 而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56649556/
我有管道输出 command_a | command_b | ... | command_n 输出是一个数字序列 4.2 -1 ... 0.2 我可以使用 gnuplot 绘制这些数字吗? (将 gn
关闭。这个问题是opinion-based 。目前不接受答案。 想要改进这个问题吗?更新问题,以便 editing this post 可以用事实和引文来回答它。 . 已关闭 6 年前。 Improv
我目前正在尝试连接父项和子项之间的管道。子级正在执行 sort 并对从父级接收到的输入进行排序。然后 children 写入一个单独的管道。每个进程有两个管道。一个这样 parent 可以将输入发送给
最近我正在研究 Python 中的并行编程工具。这是 os.pipe 和 multiprocessing.Pipe 之间的两个主要区别。(尽管它们被使用的场合) os.pipe是单向,multipro
我的站点上运行着 Yahoo Pipe,Romneyomics它使用来自 Delicious 和 Topsy 的饲料。Delicious 提要不提供“描述”字段,但 Topsy 提供,并且不仅仅是一个
我有一些使用管道的 Haskell 代码: module Main(main) where import Pipes a :: Producer Int IO () a = each [1..10]
所以标题几乎解释了我的问题。 stdout=subprocess.PIPE 和 stdout=PIPE 有什么区别?两者都来自 subprocess 模块,但为什么要使用一个而不是另一个呢?你如何使用
我有一个名为“myPipe”的自定义管道。我得到: The pipe 'myPipe' could not be found error 在我的单元测试中请建议在我的 .spec.ts 中导入和声明什
我有一个非常简单的 Python 3 脚本: f1 = open('a.txt', 'r') print(f1.readlines()) f2 = open('b.txt', 'r') print(f
我正在使用管道和 Python 的多处理模块在进程之间发送简单的对象。文档指出,如果管道已关闭,则调用 pipe.recv() 应该引发 EOFError。相反,我的程序只是阻塞在 recv() 上,
我在 perl 中见过这两种形式的管道 open。 一种是简单的管道打开 open FH,'| command'; 其他是安全管道打开 open FH,'|-','command'; 现在,第二个中的
我正在尝试对我的组件进行单元测试,但它立即生成一个错误: 类型错误:this.store$.pipe 不是函数 根据我的理解, createSpyObj 应该模拟状态。我有不同的选项选项,但没有一个起
我在这里看到这个帖子很多次了;但未能从命令中捕获故意错误。迄今为止我找到的最好的部分工作.. from Tkinter import * import os import Image, ImageTk
我正在编写一个简单的程序来解析编译器的输出并重新格式化任何错误消息,以便我们使用的 IDE(visual studio)可以解析它们。我们使用 nmake构建,它将使用如下命令行调用编译器: cc16
我有一个在coreos上运行的kubernetes集群。我希望在称为记录的Pod中的容器中运行journal2gelf https://github.com/systemd/journal2gelf。
为什么当管道中没有写入器时,读取器存在可以,但当管道中没有读取器时,写入器存在就不行? 。是不是因为reader需要等待,所以没有writer也没关系,而writer已经准备好数据了,即使数据准备好了
我在/etc/postfix/master.cf 中创建了一个 postfix 命令管道,其中包含一个在 STDOUT 和 STDERR 上产生输出的有效命令。在终端上调用时一切正常(因此在 STDO
我有一个命令需要来自管道的输入。例如,考虑著名的 cat 命令: $ echo Hello | cat Hello 假设我在 Perl 6 程序中有一个字符串,我想将其通过管道传递给命令: use v
因此,由于我们拥有各种设置,我习惯于遇到需要将一个可观察结果添加到另一个结果的地方,然后同时使用两者。我需要第一个在另一个之前完成的地方 getUser() .pipe( mergeMap
我在 Angular 5 中有一个非常简单的管道 import { Pipe, Injectable } from '@angular/core'; @Pipe({ name: "defaul
我是一名优秀的程序员,十分优秀!