Disk space requirements for build agent

I have the following problem: in my project I have 2 configurations- the first one creates some artifacts and the other one (triggered after succesful run of the first one) deploys these artifacts to remote directory. These configurations use one common checkout directory located in build agent's work directory. When I run first configuration it creates artifacts inside that checkout directory, however that checkout dir is cleaned when the second configuration launches thus second configuration fails as there is nothing to deploy. The reason why that checkout dir is cleaned is the disk space requirement for agent working dir (3 GB by default). My question is: is it possible to disable that limitation or reduce the amount of required space?

Logs from Teamcity (for 2nd configuration):

[12:50:23]: Checking for changes
[12:50:23]: Clearing temporary directory: /usr/local/buildAgent/temp/buildTmp
[12:50:23]: Free disk space requirement of 3Gb is not met for directory /usr/local/buildAgent/work/362562ae9b31fb9a (1690Mb is free). Will try to remove other builds checkout directories.
[12:50:23]: Removing checkout directory /usr/local/buildAgent/work/95dbe497efad7be2
[12:50:23]: Cannot meet free disk space requirement of 3Gb in directory /usr/local/buildAgent/work/362562ae9b31fb9a. Current free space is 1692Mb
[12:50:23]: Nothing more to be cleaned. Build will be started as is.
[12:50:23]: Checkout directory: /usr/local/buildAgent/work/362562ae9b31fb9a
[12:50:23]: Updating sources: Agent side checkout...
[12:50:23]: [Updating sources: Agent side checkout...] Will perform clean checkout. Reason: Checkout directory is empty or doesn't exist
[12:50:23]: Parameter 'build.number=%maven.project.version%.5-SNAPSHOT' is not fully resolved, using as is.
[12:50:23]: Error reading Maven project: File doesn't exist: /usr/local/buildAgent/work/362562ae9b31fb9a/pom.xml
[12:50:23]: Maven project couldn't be read. Build number won't be updated
[12:50:23]: MAVEN_OPTS =  -Dteamcity.runner.properties.file=/usr/local/buildAgent/temp/agentTmp/teamcity.runner1724712160453249098.properties -Dteamcity.buildType.id=bt4 -Dbuild.number=%maven.project.version%.5-SNAPSHOT -Dteamcity.build.properties.file=/usr/local/buildAgent/temp/agentTmp/teamcity.build1764339723595271845.properties -Dagent.home.dir=/usr/local/buildAgent -Dteamcity.idea.home=/usr/local/buildAgent/plugins/idea -Dagent.work.dir=/usr/local/buildAgent/work -Dteamcity.agent.dotnet.build_id=29 -Dagent.name=buildAgent -Dteamcity.build.workingDir=/usr/local/buildAgent/work/362562ae9b31fb9a -Djava.io.tmpdir=/usr/local/buildAgent/temp/buildTmp -Duser.home=/root -Dteamcity.build.checkoutDir=/usr/local/buildAgent/work/362562ae9b31fb9a -Dfile.separator=/ -Dagent.flow=18982246406833 -Dfile.encoding=UTF-8 -Dteamcity.projectName=test1 -Didea.build.agent.port=9090 -Dteamcity.auth.userId=TeamCityBuildId=29 -Dteamcity.auth.password=VGdpF9teJYS5m6iQdMdty2kQxmBMByKQ -Duser.timezone=Etc/GMT+1 -Didea.build.server.build.id=29 -Dteamcity.agent.cpuBenchmark=295 -Dos.name=Linux -Dteamcity.agent.dotnet.agent_url=http://localhost:9090/RPC2 -Dpath.separator=: -Dos.version=2.6.18-194.el5 -Dteamcity.build.tempDir=/usr/local/buildAgent/temp/buildTmp -Duser.name=root -Dos.arch=i386 -Duser.language=en -Duser.country=US
[12:50:23]: M2_HOME = /opt/mw/apache-maven-2.0.11
[12:50:23]: PATH = /opt/mw/apache-maven-2.0.11/bin:/opt/mw/apache-maven-2.0.11/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
[12:50:23]: JAVA_HOME = /usr/java/jdk1.5.0_22
[12:50:23]: RUN ARGUMENTS = [/opt/mw/apache-maven-2.0.11/bin/mvn, -f, /usr/local/buildAgent/work/362562ae9b31fb9a/pom.xml, -B, -Dfile=/usr/local/buildAgent/work/362562ae9b31fb9a/target/test1.war, -DrepositoryId=upload-snapshots, -Durl=http://10.136.114.60:8081/nexus/content/repositories/snapshots, -DpomFile=pom.xml, -Dteamcity.buildConfName=test1 (snapshot deployment), -Dteamcity.version=5.1.2 (build 13430), deploy:deploy-file]
[12:50:24]: [INFO] Scanning for projects...
[12:50:24]: [INFO] Searching repository for plugin with prefix: 'deploy'.
[12:50:24]: [INFO] ------------------------------------------------------------------------
[12:50:24]: [INFO] Building Maven Default Project
[12:50:24]: [INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[12:50:24]: [INFO] ------------------------------------------------------------------------
[12:50:26]: [INFO] [deploy:deploy-file]
[12:50:26]: [INFO] ------------------------------------------------------------------------
[12:50:26]: [ERROR] BUILD ERROR
[12:50:26]: [INFO] ------------------------------------------------------------------------
[12:50:26]: [INFO] Specified pomFile does not exist
[12:50:26]: [INFO] ------------------------------------------------------------------------
[12:50:26]: [INFO] For more information, run Maven with the -e switch
[12:50:26]: [INFO] ------------------------------------------------------------------------
[12:50:26]: [INFO] Total time: 2 seconds
[12:50:26]: [INFO] Finished at: Wed Aug 04 12:50:26 GMT-01:00 2010
[12:50:26]: [INFO] Final Memory: 4M/7M
[12:50:26]: [INFO] ------------------------------------------------------------------------
[12:50:26]: Number of processed tests: 0
[12:50:26]: Build finished
1 comment

Issue closed- artifact dependencies solved the problem.

0

Please sign in to leave a comment.