## Path: Development/Jenkins## Description: Jenkins Automation Server## Type: string## Default: "/var/lib/jenkins"## ServiceRestart: jenkins## Directory where Jenkins store its configuration and working# files (checkouts, build reports, artifacts, ...).#
JENKINS_HOME="/var/lib/jenkins"## Type: string## Default: ""## ServiceRestart: jenkins## Java executable to run Jenkins# When left empty, we'll try to find the suitable Java.#
JENKINS_JAVA_CMD=""## Type: string## Default: "jenkins"## ServiceRestart: jenkins## Unix user account that runs the Jenkins daemon# Be careful when you change this, as you need to update# permissions of $JENKINS_HOME and /var/log/jenkins.#
JENKINS_USER="jenkins"## Type: string## Default: "false"## ServiceRestart: jenkins## Whether to skip potentially long-running chown at the# $JENKINS_HOME location. Do not enable this, "true", unless# you know what you're doing. See JENKINS-23273.##JENKINS_INSTALL_SKIP_CHOWN="false"## Type: string## Default: "-Djava.awt.headless=true"## ServiceRestart: jenkins## Options to pass to java when running Jenkins.#
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"## Type: integer(0:65535)## Default: 8080## ServiceRestart: jenkins## Port Jenkins is listening on.# Set to -1 to disable#
JENKINS_PORT="8080"## Type: string## Default: ""## ServiceRestart: jenkins## IP address Jenkins listens on for HTTP requests.# Default is all interfaces (0.0.0.0).#
JENKINS_LISTEN_ADDRESS=""## Type: integer(0:65535)## Default: ""## ServiceRestart: jenkins## HTTPS port Jenkins is listening on.# Default is disabled.#
JENKINS_HTTPS_PORT=""## Type: string## Default: ""## ServiceRestart: jenkins## Path to the keystore in JKS format (as created by the JDK 'keytool').# Default is disabled.#
JENKINS_HTTPS_KEYSTORE=""## Type: string## Default: ""## ServiceRestart: jenkins## Password to access the keystore defined in JENKINS_HTTPS_KEYSTORE.# Default is disabled.#
JENKINS_HTTPS_KEYSTORE_PASSWORD=""## Type: string## Default: ""## ServiceRestart: jenkins## IP address Jenkins listens on for HTTPS requests.# Default is disabled.#
JENKINS_HTTPS_LISTEN_ADDRESS=""## Type: integer(1:9)## Default: 5## ServiceRestart: jenkins## Debug level for logs -- the higher the value, the more verbose.# 5 is INFO.#
JENKINS_DEBUG_LEVEL="5"## Type: yesno## Default: no## ServiceRestart: jenkins## Whether to enable access logging or not.#
JENKINS_ENABLE_ACCESS_LOG="no"## Type: integer## Default: 100## ServiceRestart: jenkins## Maximum number of HTTP worker threads.#
JENKINS_HANDLER_MAX="100"## Type: integer## Default: 20## ServiceRestart: jenkins## Maximum number of idle HTTP worker threads.#
JENKINS_HANDLER_IDLE="20"## Type: string## Default: ""## ServiceRestart: jenkins## Pass arbitrary arguments to Jenkins.# Full option list: java -jar jenkins.war --help#
JENKINS_ARGS=""
主程序目录
JDK配置
Global Tool Configuration:先把JDK安装到Linux服务器,且配置完善
maven配置
首先在服务器上安装并配置好maven
jenkins 配置:
插件安装
如果jenkins需要安装什么插件,可以直接安装即可。
Maven Integration plugin 安装此插件才能构建maven项目
Deploy to container Plugin 安装此插件,才能将打好的包部署到tomcat上
系统设置
如果没安装 maven 插件就没有下面这个配置:
git配置
git地址错误:这是由于git客户端版本过低造成的!或者系统中没有安装git所造成的
所以,先安装git
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.1.1.tar.gz
tar -zxvf git-2.1.1.tar.gz -C /usr/apps/
cd /usr/apps/git-2.1.1/
# 编译安装make prefix=/usr/local/git all
make prefix=/usr/local/git install