Build failed. Build.xml cannot be found
Hi,
I am using the lastest version of TeamCity.
When trying to build I get the next problem:
[09:16:55]: Cannot find build file by path specified in build configuration settings: 'C:\TeamCity\buildAgent\work\a02e639535e518dd\build.xml' (absolute path on agent). Please check that specified path is correct.
[09:16:55]: jetbrains.buildServer.RunBuildException: Cannot find build file by path specified in build configuration settings: 'C:\TeamCity\buildAgent\work\a02e639535e518dd\build.xml' (absolute path on agent). Please check that specified path is correct.
jetbrains.buildServer.RunBuildException: Cannot find build file by path specified in build configuration settings: 'C:\TeamCity\buildAgent\work\a02e639535e518dd\build.xml' (absolute path on agent). Please check that specified path is correct.
at jetbrains.buildServer.runner.BuildFileRunnerUtil.getBuildFile(BuildFileRunnerUtil.java:61)
at jetbrains.buildServer.agent.ant.AntBuildRunner.getBuildFile(AntBuildRunner.java:144)
at jetbrains.buildServer.agent.ant.AntBuildRunner.getProgramParameters(AntBuildRunner.java:82)
at jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(JavaProgramRunner.java:82)
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:104)
at jetbrains.buildServer.agent.impl.runner.adapt.BuildProcessImpl$2.run(BuildProcessImpl.java:55)
at java.lang.Thread.run(Thread.java:595)
[09:16:55]: Build finished
My solution files are copied to the specified path by TeamCity, but for some reason build.xml is not copied.
Could you please help me to understand what I am doing wrong?
Thanks in advance.
[09:16:55]: jetbrains.buildServer.RunBuildException: Cannot find build file by path specified in build configuration settings: 'C:\TeamCity\buildAgent\work\a02e639535e518dd\build.xml' (absolute path on agent). Please check that specified path is correct.
jetbrains.buildServer.RunBuildException: Cannot find build file by path specified in build configuration settings: 'C:\TeamCity\buildAgent\work\a02e639535e518dd\build.xml' (absolute path on agent). Please check that specified path is correct.
at jetbrains.buildServer.runner.BuildFileRunnerUtil.getBuildFile(BuildFileRunnerUtil.java:61)
at jetbrains.buildServer.agent.ant.AntBuildRunner.getBuildFile(AntBuildRunner.java:144)
at jetbrains.buildServer.agent.ant.AntBuildRunner.getProgramParameters(AntBuildRunner.java:82)
at jetbrains.buildServer.agent.runner.JavaProgramRunner.buildCommandLine(JavaProgramRunner.java:82)
at jetbrains.buildServer.agent.runner.GenericProgramRunner.run(GenericProgramRunner.java:104)
at jetbrains.buildServer.agent.impl.runner.adapt.BuildProcessImpl$2.run(BuildProcessImpl.java:55)
at java.lang.Thread.run(Thread.java:595)
[09:16:55]: Build finished
My solution files are copied to the specified path by TeamCity, but for some reason build.xml is not copied.
Could you please help me to understand what I am doing wrong?
Thanks in advance.
Please sign in to leave a comment.
Olexsandr,
What type of checkout do you use (on server or on agent)? Have you checked whether this file exists on the agent where build is running? Are there any checkout rules configured for this build configuration and VCS root?
I've already solved the issue. Sorry for disturbing