File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
echo " Updating property file..."
3
3
4
- sed -i " s|serverUrl=http://localhost:8111/ |serverUrl=$TEAMCITY_SERVER_URL |" /srv/teamcity-agent/conf/buildAgent.properties
5
- sed -i " s|workDir=../work |workDir=/home/app/work|" /srv/teamcity-agent/conf/buildAgent.properties
6
- sed -i " s|ownPort=9090 |ownPort=$AGENT_PORT |" /srv/teamcity-agent/conf/buildAgent.properties
7
- sed -i " s|name=|name=$AGENT_NAME |" /srv/teamcity-agent/conf/buildAgent.properties
4
+ sed -i " s|^ serverUrl=.*$ |serverUrl=$TEAMCITY_SERVER_URL |" /srv/teamcity-agent/conf/buildAgent.properties
5
+ sed -i " s|^ workDir=.*$ |workDir=/home/app/work|" /srv/teamcity-agent/conf/buildAgent.properties
6
+ sed -i " s|^ ownPort=.*$ |ownPort=$AGENT_PORT |" /srv/teamcity-agent/conf/buildAgent.properties
7
+ sed -i " s|^ name=.*$ |name=$AGENT_NAME |" /srv/teamcity-agent/conf/buildAgent.properties
8
8
9
9
echo " UPDATED:"
10
10
cat /srv/teamcity-agent/conf/buildAgent.properties
11
11
12
12
echo " ============================================"
13
13
14
- /srv/teamcity-agent/bin/agent.sh run
14
+ /srv/teamcity-agent/bin/agent.sh run
You can’t perform that action at this time.
0 commit comments