# Then in all other possible locations for any bitnessįind_java 1.8 " $TEAMCITY_JRE " " $java_hint " " `pwd `/./jre " " `pwd `/././jre " Įcho "Java not found. # Then in all other possible locations for 32bit java 1.8+, arguments are required there as it's covered in previous attempt # First search only among specified directoriesįind_java 1.8 " $TEAMCITY_JRE " " $java_hint " " `pwd `/./jre " " `pwd `/././jre " >/dev/null 2>&1 Java_hint= " `head -n 1 './conf/teamcity-agent.jvm ' ` " If ps "-o $field " -p " `cat " $PID_FILE " ` " 2>/dev/null | grep ' ' >/dev/null then If ps -oargs 1>/dev/null 2>/dev/null thenĮlif ps -ocommand 1>/dev/null 2>/dev/null thenĮcho " Result of check for running TeamCity may be false positive: cannot use 'ps', neither 'args' nor 'command' output supported. # Unfortunately AIX, OSX, HP-UX does not support pgrep # Alternative: pgrep -F "$PID_FILE" -f '' "Įcho " Result of check for running TeamCity may be false positive: 'ps' works not as expected " If ps auxww " `cat " $PID_FILE " ` " 2>/dev/null | grep ' ' >/dev/null thenĮcho "PID file ( $PID_FILE) contains pid not from TeamCity agent and will be removed. # Ensure proper ps and grep would be used # Special case for Solaris, since default ps truncates output and there no '-w' option If ps $minus_p `cat $PID_FILE ` >/dev/null 2>&1 then Solaris 10 /usr/ucb/ps does not support '-p' # Some 'ps' requires '-p' flag (Solaris 10 default). TEAMCITY_LAUNCHER_CLASSPATH= "./launcher/lib/launcher.jar " TEAMCITY_AGENT_OPTS_ACTUAL= " $TEAMCITY_AGENT_OPTS_ACTUAL nfiguration=file./conf/teamcity-agent-log4j.xml " TEAMCITY_LAUNCHER_OPTS_ACTUAL= "-ea $TEAMCITY_LAUNCHER_OPTS $TEAMCITY_LAUNCHER_MEM_OPTS_ACTUAL " TEAMCITY_LAUNCHER_MEM_OPTS_ACTUAL= "-Xms16m -Xm圆4m " TEAMCITY_LAUNCHER_MEM_OPTS_ACTUAL= " $TEAMCITY_LAUNCHER_MEM_OPTS " TEAMCITY_AGENT_OPTS_ACTUAL= " $TEAMCITY_AGENT_OPTS -ea $TEAMCITY_AGENT_MEM_OPTS_ACTUAL -Dteamcity_logs= $LOG_DIR/ " # TEAMCITY_AGENT_MEM_OPTS_ACTUAL="$TEAMCITY_AGENT_MEM_OPTS_ACTUAL -XX:+HeapDumpOnOutOfMemoryError" TEAMCITY_AGENT_MEM_OPTS_ACTUAL= "-Xmx384m " TEAMCITY_AGENT_MEM_OPTS_ACTUAL= " $TEAMCITY_AGENT_MEM_OPTS " # TODO: Read LOG_DIR from buildAgent.properties for Bundle compatibility # TEAMCITY_AGENT_PREPARE_SCRIPT name of a script to execute before start/stopĬONFIG_FILE=./conf/buildAgent.properties # TEAMCITY_LAUNCHER_OPTS Set agent launcher JVM options # TEAMCITY_LAUNCHER_MEM_OPTS Set agent launcher memory options (JVM options) # TEAMCITY_AGENT_OPTS Set additional agent JVM options # TEAMCITY_AGENT_MEM_OPTS Set agent memory options (JVM options) Must point to a directory with bin/java executable. # JAVA_HOME or JRE_HOME Set Java to use by agent process. # Please do not modify this script, your changes will be lost after each TeamCity server upgrade !
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |