-
Notifications
You must be signed in to change notification settings - Fork 4
/
buildAgent.properties.erb
67 lines (49 loc) · 2.43 KB
/
buildAgent.properties.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#####################
# Generated by Chef #
#####################
## TeamCity build agent configuration file
######################################
# Required Agent Properties #
######################################
## The address of the TeamCity server. The same as is used to open TeamCity web interface in the browser.
## Example: serverUrl=https://buildserver.mydomain.com:8111
serverUrl=<%= @server_url %>
## The unique name of the agent used to identify this agent on the TeamCity server
## Use blank name to let server generate it.
## By default, this name would be created from the build agent's host name
name=<%= @name %>
## Container directory to create default checkout directories for the build configurations.
## TeamCity agent assumes ownership of the directory and will delete unknown directories inside.
workDir=<%= @work_dir %>/work
## Container directory for the temporary directories.
## TeamCity agent assumes ownership of the directory. The directory may be cleaned between the builds.
tempDir=<%= @work_dir %>/temp
## Container directory for agent state files and caches.
## TeamCity agent assumes ownership of the directory and can delete content inside.
systemDir=<%= @work_dir %>/system
######################################
# Optional Agent Properties #
######################################
## A token which is used to identify this agent on the TeamCity server for agent authorization purposes.
## It is automatically generated and saved back on the first agent connection to the server.
authorizationToken=<%= @auth_token %>
<% @opt_properties.each do |name, value| %>
<%= "#{name}=#{value}" %>
<% end %>
######################################
# Default Build Properties #
######################################
## All properties starting with "system.name" will be passed to the build script as "name"
## All properties starting with "env.name" will be set as environment variable "name" for the build process
## Note that value should be properly escaped. (use "\\" to represent single backslash ("\"))
## More on file structure: http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#load(java.io.InputStream)
# Build Script Properties
#system.exampleProperty=example Value
<% @system_properties.each do |name, value| %>
<%= "#{name}=#{value}" %>
<% end %>
# Environment Variables
#env.exampleEnvVar=example Env Value
<% @env_properties.each do |name, value| %>
<%= "#{name}=#{value}" %>
<% end %>