在Jenkins中提供构建路径时出现此错误。我正在使用Jenkins在Hockey app上配置构建部署!如何解决这个问题?

时间:2018-06-08 08:59:08

标签: jenkins bitbucket hockeyapp

在Jenkins中提供构建路径时出现此错误。我正在使用Jenkins在Hockey app上配置构建部署!如何解决这个问题?

Started by user Shrey Parashar
Building in workspace C:\Users\admin\.jenkins\workspace\HotelAndroidApp
Uploading to HockeyApp...
java.io.IOException: Expecting Ant GLOB pattern, but saw 'D:/Original_Native_Script_Hotel_App_Code/hotel-mobile-app/platforms/android/app/build/outputs/apk/release/HotelSearch**/*.apk'. See http://ant.apache.org/manual/Types/fileset.html for syntax
    at hudson.FilePath.glob(FilePath.java:1868)
    at hudson.FilePath.access$2400(FilePath.java:209)
    at hudson.FilePath$23.invoke(FilePath.java:1848)
    at hudson.FilePath$23.invoke(FilePath.java:1845)
    at hudson.FilePath.act(FilePath.java:1047)
    at hudson.FilePath.act(FilePath.java:1025)
    at hudson.FilePath.list(FilePath.java:1845)
    at hudson.FilePath.list(FilePath.java:1829)
    at hudson.FilePath.list(FilePath.java:1814)
    at hockeyapp.HockeyappRecorder.performForApplication(HockeyappRecorder.java:225)
    at hockeyapp.HockeyappRecorder.perform(HockeyappRecorder.java:203)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    at hudson.model.Build$BuildExecution.post2(Build.java:186)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    at hudson.model.Run.execute(Run.java:1819)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Build step 'Upload to HockeyApp' marked build as failure
Finished: FAILURE

2 个答案:

答案 0 :(得分:0)

我认为错误是足够的解释。路径的格式是不可接受的。

请修复apk文件所在顶级目录的路径。

例如:

server.src = D:/ Original_Native_Script_Hotel_App_Code / hotel-mobile-app / platforms / android / app / build / outputs / apk / release / HotelSearch / DIR = “$ {server.src}”

include name =“** / *。apk”/>

答案 1 :(得分:0)

你不能给出绝对路径给出相对路径,它应该像这里提到的那样工作 https://groups.google.com/forum/#!topic/job-dsl-plugin/1ybmBMm96-A