Flapdoodle嵌入式mongodb测试在Jenkins上失败但在本地传递

时间:2017-09-06 09:31:43

标签: java spring mongodb

我正在尝试使用本地传递的flapdoodle嵌入式mongodb运行一些测试,但是当我在Jenkins上启动构建时,它失败并出现以下错误:

java.lang.IllegalStateException
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
            Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
                Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
                    Caused by: org.springframework.beans.factory.BeanCreationException
                        Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
                            Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
                                Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException
                                    Caused by: org.springframework.beans.factory.BeanCreationException
                                        Caused by: org.springframework.beans.BeanInstantiationException
                                            Caused by: java.net.UnknownHostException
                                                Caused by: java.net.UnknownHostException`

我正在使用gradle,我的猜测是版本,但我无法在本地重现错误: testCompile("de.flapdoodle.embed:de.flapdoodle.embed.mongo:2.0.0") org.springframework.cloud:spring-cloud-dependencies:Dalston.SR2springBootVersion = '1.4.2.RELEASE'

有谁知道为什么会这样?关于我能做什么的任何建议,以及Jenkins的构建通过?

0 个答案:

没有答案