Project
TeamCity
Priority
Critical
Type
Bug
State
Won't fix
Assignee
Sergey Anchipolevsky
Subsystem
Maven support
Affected versions
TeamCity 2.1.1 (4261)
Fix versions
Teamcity 3.0 (Benares 5985)
Fixed in build
No Fixed in build
Fixed in builds
no build yet
  • Created by   andrew shvedov
    4 years ago (29 Oct 2007 19:57)
  • Updated by   andrew shvedov
    4 years ago (30 Oct 2007 13:20)
  • Jira: TW-3701
    (history, comments)
 
TW-3701 Agent fail to detect failed maven build
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Agent fail to detect failed maven build. As you can see in log, Result is Success but build really fail.

Result:
    Success 	
Time:
    29 окт 15:13 - 15:15 (1m:35s) 
Agent:
    oak 
Pin status:
    This build is pinned  Pin 

    *

      Important messages
    *

      All messages


[15:13:31]: Checking for changes
[15:13:41]: Building in d:\TeamCity\buildAgent\work\Agent\fdc-publisher
[15:13:41]: Updating project sources
[15:13:41]: Clearing d:\TeamCity\buildAgent\work\Agent\fdc-publisher
[15:13:41]: Checking d:\TeamCity\buildAgent\work\Agent\fdc-publisher out from svn
[15:13:55]: cmd.exe /c D:\maven-2.0.7\bin\mvn.bat -f d:\TeamCity\buildAgent\work\Agent\fdc-publisher\pom.xml -B -Dteamcity.buildConfName=build -DDotNetFramework1.1_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -Dbuild.working.dir=d:\TeamCity\buildAgent\work\Agent\fdc-publisher -Dagent.name=oak -Dbuild.number=2 -Dbuild.number.format={0} -DDotNetFramework1.1= -Duser.language=ru -Duser.country=RU -Dos.version=5.2 -Duser.timezone=Europe/Athens -Dfile.encoding=Cp1251 -Dagent.work.dir=d:\TeamCity\buildAgent\work -Dfile.separator=\ -Dteamcity.projectName=fdc-publisher -Dos.arch=x86 -DDotNetFramework1.1_x86_Path=C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 -DDotNetFramework1.1_x86= -Djava.io.tmpdir=d:\TeamCity\buildAgent\bin\..\temp\teamcity.tmp -Dbuild.vcs.number.1=746 -Duser.name=Administrator "-Dos.name=Windows 2003" -Dteamcity.auth.password=514675f9e652b47921703408347cab8a4756773a -Didea.build.agent.port=9090 -Dteamcity.auth.userId=TeamCityBuildId=1572 -Dteamcity.buildType.id=bt30 -Duser.variant= -Dsuccessful.build.number=1 "-Duser.home=C:\Documents and Settings\Administrator" -Didea.build.server.build.id=1572 -Dpath.separator=; clean deploy
[15:13:56]: [INFO] Scanning for projects...
[15:13:56]: [INFO] ----------------------------------------------------------------------------
[15:13:56]: [INFO] Building fdc-publisher
[15:13:56]: [INFO] task-segment: [clean, deploy]
[15:13:56]: [INFO] ----------------------------------------------------------------------------
[15:13:56]: [INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from inhouse
[15:13:56]: [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from inhouse
[15:13:56]: [INFO] [clean:clean]
[15:13:56]: [INFO] Deleting directory d:\TeamCity\buildAgent\work\Agent\fdc-publisher\target
[15:13:56]: [INFO] Deleting directory d:\TeamCity\buildAgent\work\Agent\fdc-publisher\target\classes
[15:13:56]: [INFO] Deleting directory d:\TeamCity\buildAgent\work\Agent\fdc-publisher\target\test-classes
[15:13:56]: [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from inhouse
[15:13:57]: [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from inhouse
[15:13:57]: [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from inhouse
[15:13:57]: [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from inhouse
[15:13:57]: [INFO] artifact org.apache.maven.plugins:maven-deploy-plugin: checking for updates from inhouse
[15:13:57]: [INFO] [resources:resources]
[15:13:57]: [INFO] Using default encoding to copy filtered resources.
[15:13:57]: Downloading: http://192.168.0.1:8888/proximity/repository/inhouse/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.pom
[15:13:57]: Downloading: http://192.168.0.1:8888/proximity/repository/public/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.pom
[15:14:05]: 191b downloaded
[15:14:05]: Downloading: http://192.168.0.1:8888/proximity/repository/inhouse/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar
[15:14:05]: Downloading: http://192.168.0.1:8888/proximity/repository/public/poi/poi/2.5.1-final-20040804/poi-2.5.1-final-20040804.jar
[15:15:08]: 783K downloaded
[15:15:12]: [INFO] [compiler:compile]
[15:15:12]: Compiling 33 source files to d:\TeamCity\buildAgent\work\Agent\fdc-publisher\target\classes
[15:15:14]: [INFO] [resources:testResources]
[15:15:14]: [INFO] Using default encoding to copy filtered resources.
[15:15:14]: [INFO] [compiler:testCompile]
[15:15:14]: [INFO] No sources to compile
[15:15:14]: [INFO] [surefire:test]
[15:15:14]: [INFO] No tests to run.
[15:15:15]: [INFO] [jar:jar]
[15:15:15]: [INFO] Building jar: d:\TeamCity\buildAgent\work\Agent\fdc-publisher\target\fdc-publisher-2.0.jar
[15:15:15]: [INFO] [install:install]
[15:15:15]: [INFO] Installing d:\TeamCity\buildAgent\work\Agent\fdc-publisher\target\fdc-publisher-2.0.jar to D:\maven-2.0.7\repository\ru\fors\publish\fdc-publisher\2.0\fdc-publisher-2.0.jar
[15:15:15]: [INFO] ------------------------------------------------------------------------
[15:15:15]: [ERROR] BUILD ERROR
[15:15:15]: [INFO] ------------------------------------------------------------------------
[15:15:15]: [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.2.1
[15:15:15]:
[15:15:15]: check that the following section of the pom.xml is present and correct:
[15:15:15]:
[15:15:15]: <distributionManagement>
[15:15:15]: <!-- use the following if you're not using a snapshot version. -->
[15:15:15]: <repository>
[15:15:15]: <id>repo</id>
[15:15:15]: <name>Repository Name</name>
[15:15:15]: <url>scp://host/path/to/repo</url>
[15:15:15]: </repository>
[15:15:15]: <!-- use the following if you ARE using a snapshot version. -->
[15:15:15]: <snapshotRepository>
[15:15:15]: <id>repo</id>
[15:15:15]: <name>Repository Name</name>
[15:15:15]: <url>scp://host/path/to/repo</url>
[15:15:15]: </snapshotRepository>
[15:15:15]: </distributionManagement>
[15:15:15]:
[15:15:15]: Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated
[15:15:15]: [INFO] ------------------------------------------------------------------------
[15:15:15]: [INFO] For more information, run Maven with the -e switch
[15:15:15]: [INFO] ------------------------------------------------------------------------
[15:15:15]: [INFO] Total time: 1 minute 20 seconds
[15:15:15]: [INFO] Finished at: Mon Oct 29 15:15:15 EET 2007
[15:15:15]: [INFO] Final Memory: 5M/13M
[15:15:15]: [INFO] ------------------------------------------------------------------------
[15:15:16]: Number of processed tests: 0
[15:15:16]: Build finished


Environment: windows 2003

Issue wasresolved
Comments (1)
 
History
 
Linked Issues (?)
 
Sergey Anchipolevsky
  Sergey Anchipolevsky
30 Oct 2007 13:20
4 years ago
This is a known Maven 2.0.7 issue - see http://jira.codehaus.org/browse/MNG-3084, which is already fixed and will be included into 2.0.8.

Until that you can either use older Maven versions (for example 2.0.6 which is bundled with TeamCity) or fix mvn.bat yourself.

The fragment at line 148 of mvn.bat


:error
set ERROR_CODE=1


should be replaced with


:error
if "%OS%"=="Windows_NT" @endlocal
set ERROR_CODE=1

good luck