gradlew dist -xtest -xjavadoc -xsetupui
当与主人分开时,建立成功。
从分支运行时,它会失败。我确实将分支推送到我的远程,但我不确定为什么gradle任务应该知道远程分支。我可以使用-xpullDocs
成功运行似乎与“wikiBranch”属性有关。
失败:构建因异常而失败。 10:34:14.670 [错误] [org.gradle.BuildExceptionReporter] 10:34:14.670 [错误] [org.gradle.BuildExceptionReporter] *其中: 10:34:14.670 [错误] [org.gradle.BuildExceptionReporter]脚本'/Users/{$ID}/spring-xd/gradle/build-docs.gradle'行:58 10:34:14.670 [错误] [org.gradle.BuildExceptionReporter] 10:34:14.670 [错误] [org.gradle.BuildExceptionReporter] *出了什么问题: 10:34:14.671 [ERROR] [org.gradle.BuildExceptionReporter]任务':pullDocs'的执行失败。 10:34:14.671 [错误] [org.gradle.BuildExceptionReporter]>切换到分支时出错:origin / jms-transport。原因:无法解析Ref origin / {branch} 10:34:14.672 [错误] [org.gradle.BuildExceptionReporter] 10:34:14.673 [错误] [org.gradle.BuildExceptionReporter] *异常是: 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException:任务':pullDocs'的执行失败。 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) 10:34:14.674 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 10:34:14.675 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 10:34:14.675 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 10:34:14.675 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:289) 10:34:14.675 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor $ TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) 10:34:14.675 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor $ TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) 10:34:14.675 [错误] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor $ TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
答案 0 :(得分:0)
使用-PwikiBranch=origin/master