Jenkins在错误的神经路径中搜索并且构建失败但本地构建成功

时间:2016-12-12 16:39:09

标签: jenkins gradle artifactory aar

我们有Jenkins服务器和Artifactory存储库。我们已经在神器仓库中发布了几个库,它运行良好。我们还发布了anyline sdk作为aar-module。在我们的项目中,我们引用了artifactory-repo和aar-module,如下所示:

dependencies { ... compile 'anyline:anyline:3.6.1@aar' ... }     

repositories {
    jcenter()
    mavenLocal()
    // External Third Party Libs lookup
    maven {
        url "https://MYURL/artifactory/libs-snapshot-local"
        credentials {
            username = bla
            password = blubb
        }
    }
    // External Third Party Libs lookup
    maven {
        url "https://MYURL/artifactory/libs-release-local"
        credentials {
            username = bla
            password = blubb
        }
    }
    // External Third Party Libs lookup
    maven {
        url "https://MYURL/artifactory/ext-release-local"
        credentials {
            username = bla
            password = blubb
        }
    }
}    

aar-package的网址是:

https://MYURL/artifactory/ext-release-local/anyline/anyline/3.6.1/anyline-3.6.1.aar 

本地构建运行正常,但在jenkins上会抛出以下错误:

FAILURE: Build failed with an exception. 
* What went wrong: 
A problem occurred configuring project ':BLABLUBB_app'. 
> Could not find anyline.jar (anyline:anyline:3.6.1). 
Searched in the following locations: 
https://MYURL/artifactory/libs-release-local/anyline/anyline/3.6.1/anyline-3.6.1.jar     

现在有两件奇怪的事情发生在这里:

1。)为什么jenkins-build会查找jar文件?不是应该查找aar文件还是我错过了什么?

2。)服务器似乎在错误的文件夹中搜索。它也应该搜索     的 EXT-释放本地
而不仅仅是      libs-release-local 显然没有找到任何-line-lib。

有没有人暗示这里出了什么问题? 服务器上的构建脚本与本地构建脚本相同,本地存储和服务器指向同一个git。

帮助表示赞赏,

由于 Daniel Sahm

0 个答案:

没有答案