/etc/default/jenkins

1 篇文章 0 订阅
1 篇文章 0 订阅

# defaults for jenkins continuous integration server



# pulled in from the init script; makes things easier.
NAME=jenkins


# location of java
JAVA=/usr/bin/java


# arguments to pass to java
JAVA_ARGS="-Djava.awt.headless=true"  # Allow graphs etc. to work even when an X

 server is present

#启动jenkins的jvm参数设定

JAVA_ARGS="-Xmx1024m -XX:MaxPermSize=1536m"
#JAVA_ARGS="-Djava.net.preferIPv4Stack=true" # make jenkins listen on IPv4 addre
ss


PIDFILE=/var/run/$NAME/$NAME.pid


# user and group to be invoked as (default to jenkins)
JENKINS_USER=$NAME
JENKINS_GROUP=$NAME


# location of the jenkins war file
JENKINS_WAR=/usr/share/$NAME/$NAME.war


# jenkins home location
JENKINS_HOME=/var/lib/$NAME


# set this to false if you don't want Hudson to run by itself
# in this set up, you are expected to provide a servlet container
# to host jenkins.
RUN_STANDALONE=true


# log location.  this may be a syslog facility.priority
JENKINS_LOG=/var/log/$NAME/$NAME.log
#JENKINS_LOG=daemon.info


# OS LIMITS SETUP
#   comment this out to observe /etc/security/limits.conf
#   this is on by default because http://github.com/jenkinsci/jenkins/commit/2fb
288474e980d0e7ff9c4a3b768874835a3e92e
#   reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and
as a result the # of file
#   descriptors are forced to 1024 regardless of /etc/security/limits.conf
MAXOPENFILES=8192


# set the umask to control permission bits of files that Jenkins creates.
#   027 makes files read-only for group and inaccessible for others, which some
security sensitive users
#   might consider benefitial, especially if Jenkins runs in a box that's used f
or multiple purposes.
#   Beware that 027 permission would interfere with sudo scripts that run on the
 master (JENKINS-25065.)
#
#   Note also that the particularly sensitive part of $JENKINS_HOME (such as cre
dentials) are always
#   written without 'others' access. So the umask values only affect job configu
ration, build records,
#   that sort of things.
#
#   If commented out, the value from the OS is inherited,  which is normally 022
 (as of Ubuntu 12.04,
#   by default umask comes from pam_umask(8) and /etc/login.defs


# UMASK=027


# port for HTTP connector (default 8080; disable with -1)
HTTP_PORT=8080


# port for AJP connector (disabled by default)
AJP_PORT=-1


# servlet context, important if you want to use apache proxying
PREFIX=/$NAME


# arguments to pass to jenkins.
# --javahome=$JAVA_HOME
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
# --httpsPort=$HTTP_PORT
# --ajp13Port=$AJP_PORT
# --argumentsRealm.passwd.$ADMIN_USER=[password]
# --argumentsRealm.roles.$ADMIN_USER=admin
# --webroot=~/.jenkins/war
# --prefix=$PREFIX


JENKINS_ARGS="--webroot=/var/cache/$NAME/war --httpPort=$HTTP_PORT --ajp13Port=$
AJP_PORT"
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值