jenkins 自动部署 war能部署war包么

Download Jenkins
LTS Release
LTS (Long-Term Support) releases are chosen every 12 weeks from the
stream of regular releases as the stable release for that time period.
Weekly Release
A new release is produced weekly to deliver bug fixes and features to
users and plugin developers.
Get 2.32.2 LTS .war or the latest 2.46 weekly release
The leading open source automation server, Jenkins provides hundreds
of plugins to support building, deploying and automating any project.
Continuous Integration and Continuous Delivery
As an extensible automation server, Jenkins can be used as a simple
CI server or turned into the continuous delivery hub for any project.
Easy installation
Jenkins is a self-contained Java-based program, ready to run
out-of-the-box, with packages for Windows, Mac OS X and other
Unix-like operating systems.
Easy configuration
Jenkins can be easily set up and configured via its web interface,
which includes on-the-fly error checks and built-in help.
With hundreds of plugins in the Update Center, Jenkins integrates
with practically every tool in the continuous integration and
continuous delivery toolchain.
Extensible
Jenkins can be extended via its plugin architecture, providing
nearly infinite possibilities for what Jenkins can do.
Distributed
Jenkins can easily distribute work across multiple machines,
helping drive builds, tests and deployments across multiple
platforms faster.
Triangle JAM
CI/CD & DevOps
Recent Blog Posts
oleg-nenashev
We thank the following organizations for their major commitments to
support the Jenkins project.
We thank the following organizations for their support of the Jenkins
project through free and/or open source licensing programs.Jenkins安装 -
- ITeye技术网站
博客分类:
1、Jenkins是一款Java平台的开源持续集成(Continuous Integration,CI)引擎。它易于安装,配置简单,丰富的插件支持,高度的可扩展性,强大的分布式构建能力都让它在众多的CI引擎中脱颖而出。主页:
2、安装方法主要有两种
&&& war包方式:对于linux和windows,直接下载war并放置到server(eg tomcat)下面,直接运行即可,或者通过java -jar jenkins.war方式运行
&&& 服务安装:linux平台下面,使用yum进行安装,具体命令如下:
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
yum install jenkins
&&& window平台下面,从jenkins页面下载exe文件,直接安装即可
3、启动方式
&&& 如果是war包安装方式,直接请求服务器的8080端口进行访问,即可进入主页
&&& 如果是服务的安装方式:
&&&
windows下面运行快捷方式或者通过命令行启动,新版本的jenkins安装之后默认注册为windows的服务,开机启动
linux下面通过下面的命令进行启动:service jenkins start/stop/restart
浏览 13033
您好,我安装的时候,在里面加入ant脚本,但是出现下面这个错误你知道是为什么么?亲,谢谢你回复,我发现换一台电脑可以。。。不知道为什么。。。
您好,我安装的时候,在里面加入ant脚本,但是出现下面这个错误你知道是为什么么?我用的maven,ant没试过你检查一下ant的环境设置,以及jenkins是否有权限执行ant命令,另外有更详细的log么?
浏览: 150559 次
来自: 北京
Session Option→选字体(新宋体)→再选Chara ...
org.wltea.analyzer.core.IKSegme ...
我的maven版本是3.2.3,也报这个错误
君诩逸尘 写道我想问下 我把.project文件改了以后项目里 ...
我想问下 我把.project文件改了以后项目里面都报错啊jenkins_jenkins吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0可签7级以上的吧50个
本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:378贴子:
关于jenkins的一切都可以~
缺牙要及时修复,揭秘种植牙如何做到几十年不掉?
我今天刚安装的 jenkins 你是觉得先创建任务 比较好,,还是管理插件 好些呢.??
请问一下怎么打包maven管理的android项目?jenkins有自动编译打包的插件么?
jenkins+maven+svn自动junit测试怎么做。大神你好。帮帮我吧。
我现在工作上面需要用到Jenkins,我想问下jenkins怎么设置当我执行的用例出错时,系统会有邮件通知,不出错不发送邮件
请问Jenkins的控制台乱码怎么解决?请帮我一下,我找了好多种方法都不行
PHPUnitTask requires PHPUnit to be installed这个玩意怎么干掉他?
求问 和tomcat远程部署 如何配置呢,网上教程都看了,可以成功打包,还是不能部署
新人从零开始玩Jenkins,有没有全套的指导?主要是关于如何成功配置一个集发布,staticcheck,输出的一个工程~万分感谢
请教:windows系统,git+gerrit+jenkins环境,本地有个hello.java文件,通过git向gerrit提交,触发jenkins编译运行java文件,execute windows batch command 怎么写?另:提交到服务器的资源存在哪? 谢谢!!
游戏特效培训,毕业年薪20w,来CGWANG吧!
我用Jenkins集成sonarQube和sonar runner启动构建时候报:------------------------------------------------------------------------SONAR ANALYSIS FAILED------------------------------------------------------------------------FATAL: SonarQube runner executable was not found for SonarQubeRunnerConfigGlobleBuild step 'Invoke Standalone SonarQube Analysis' marked build as failure...报错好像是提示没有找到SonarQube runner的可执行文件,我的SonarQube Runner的配置SonarQube Runner Name :SonarQubeRunnerConfigGlobleSONAR_RUNNER_HOME
:/home/sf/sonar-runner-2.4/binsonar-runner在目录/home/sf/sonar-runner-2.4/bin下,权限也给了最大权限了遇到过此类问题的麻烦告诉一声解决方案,或邮箱
请问楼主,这个的原因是啥?
jenkins打包找不到符号是什么没配置好么
设置里有jdk和maven的设置,但是没有ant的设置,也没有svn的设置,是没有添加ant plugin插件和svn插件的原因吗
大神你好 我想问下 jenkins怎么能实现 在一台ip上 调度多个设备ip作为执行机 这些设备是电脑
安装好jenkins后提示到/Users/Shared/Jenkins/Home/secrets/initialAdminPassword下找initialAdminPassword文件,但是进去看了,这个文件不存在,楼主能帮下忙吗?感激不尽
我jenkins里面git 不能下载。。我的工作机是有权限git clone的
但是我把工作机的密匙添加到jenkins里面之后 还是现实访问失败
没有权限stdout:stderr: Permission denied, please try again.Permission denied, please try again.Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).fatal: The remote end hung up unexpectedly
你好,我写了定时构建,一个小时构建一次,邮件服务也可以正常发送。但是手动构建,邮件服务会send不出去,你看原因可能出现在哪里
安装了jdk然后java -jar /usr/local/webserver/jenkins.war --httpPort=8080,在Linux上打开网页进入不了,出现上面的错误
我现在想再jenkins运行前 执行删除。就在Execute shell 里添加如下命令 ssh root@172.16.130.142 & rm -rf /tmp/123.txt但是实际情况并没有删除这个文件。改成ssh root@172.16.130.142rm -rf /tmp/123.txt也是一样 没有效果 大神指点一下
大神,这个workspace可以设置权限管理下吗,默认任何人都可以打包下载所有代码 - -
大神你好,jenkins需要联网才能使用吗?
请教:jenkins+jacoco,代码覆盖率总是为0,而且点击具体的类,没有代码是怎么回事呢
Jenkins有没有从SVN上下载下来文件后对文件内容作修改的插件啊。
我jenkins 部署一个项目 测试环境和生产环境 仅仅是配置文件不一样 但是在生产上的就会很卡。
如果我把测试环境的war包 修改配置环境放到生产环境里面
就不卡了。你知道为什么么
大神 Jenkins 构建项目的时候报 failed for task
app mergeDebugResources 是什么情况 我用的 win7 64位 git gradle 构建Android的项目
请教一下安装插件email-ext时总是报错,该怎么做
贴吧热议榜
使用签名档&&
保存至快速回贴查看: 429|回复: 2
jenkins+maven打war包失败
jenkins用maven打svn的jar包没问题,打部分WAR包,就报错,查了说是JDK的问题,但是实在不知道怎么修改。求助大神分析下。[ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------------------[ERROR] Failure executing javac, but could not parse the error:
INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 5.528 s[INFO] Finished at: T14:12:54+08:00[INFO] Final Memory: 19M/218M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project aladdin-monitor-default: Compilation failure[ERROR] Failure executing javac, but could not parse the error:[ERROR] [parsing started RegularFileObject[/root/.jenkins/workspace/alaMonitor/src/main/java/com/pisgah/aladdin/monitor/mapper/quota/QuotaMapper.java]][ERROR] [parsing completed 21ms][ERROR] [parsing started " _8 D- [6 ^' \' F9 R&&}
.3.0.jar,/root/.m2/repository/org/apache/logging/log4j/log4j-api/2.3/log4j-api-2.3.jar,/root/.m2/repository/org/apache/logging/log4j/log4j-core/2.3/log4j-core-2.3.jar,.][ERROR] Fatal Error: Unable to find package java.lang in classpath or bootclasspath[ERROR] -& [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] & \0 k1 U1 ]" ~" G+ b
怎么解决的
发表于 4&天前
怎么解决的# T% h6 U8 S" o) I4 d" R$ Q
&plugin&& Y6 n3 S, ^- T. f
& & & & & & & & & & & & & & & & & & & & &groupId&org.apache.maven.plugins&/groupId&
& & & & & & & & & & & & & & & & & & & & &artifactId&maven-compiler-plugin&/artifactId&% o: f, _&&l( f4 O. k
& & & & & & & & & & & & & & & & & & & & &version&3.1&/version&
& & & & & & & & & & & & & & & & & & & & &configuration&6 `- I0 @( m6 D
& & & & & & & & & & & & & & & & & & & & & & & & &source&1.7&/source&
& & & & & & & & & & & & & & & & & & & & & & & & &target&1.7&/target&! {- a( _$ N; ?0 b' S' Y& O
& & & & & & & & & & & & & & & & & & & & & & & & &encoding&UTF-8&/encoding&+ E0 j3 m# B1 G, j/ b0 A
& & & & & & & & & & & & & & & & & & & & & & & & &compilerArgs&1 b: K) G" o) P
& & & & & & & & & & & & & & & & & & & & & & & & & & & & &arg&-XDignore.symbol.file&/arg&5 N7 U* O, E6 f
& & & & & & & & & & & & & & & & & & & & & & & & &/compilerArgs&. M9 e7 X, p0 O" |; P0 q
& & & & & & & & & & & & & & & & & & & & & & & & &fork&true&/fork&
& & & & & & & & & & & & & & & & & & & & &/configuration&1 }: n& e1 D+ @
& & & & & & & & & & & & & & & & & & & & &dependencies&
& & & & & & & & & & & & & & & & & & & & & & & & &dependency&
& & & & & & & & & & & & & & & & & & & & & & & & & & & & &groupId&org.codehaus.plexus&/groupId&
& & & & & & & & & & & & & & & & & & & & & & & & & & & & &artifactId&plexus-compiler-javac&/artifactId&
& & & & & & & & & & & & & & & & & & & & & & & & & & & & &version&2.2&/version&& K&&w5 @7 r/ x! D' s+ S6 X
& & & & & & & & & & & & & & & & & & & & & & & & &/dependency&0 \( A' y8 U% L+ Q, y6 X
& & & & & & & & & & & & & & & & & & & & &/dependencies&# n$ o. ?" A, j. u: M4 P: ^9 [
& & & & & & & & & & & & & & & & &/plugin&
加了句配置' J, E- y, t7 c& E
Powered bywindows下用JENKINS做自动部署 - lvjun106 - ITeye技术网站
博客分类:
一. 安装JENKINS
第一种是直接在 页面上下载jenkins for windows 的安装包. 下载好了之后安装即可.
第二种是下载jenkins的war包, 用java命令执行war包, 如java -jar jenkins.war
运行时可以在后面添加一些参数,例如-httpPort=8082等等,这种情况就是防止端口被占用, 具体的参数列表如下
Command Line Parameter
Description
--httpPort=$HTTP_PORT
Runs Jenkins listener on port $HTTP_PORT using standard http protocol. The default is port 8080. To disable (because you're using https), use port -1.
--httpListenAddress=$HTTP_HOST
Binds Jenkins to the IP address represented by $HTTP_HOST. The default is 0.0.0.0 — i.e. listening on all available interfaces. For example, to only listen for requests from localhost, you could use: --httpListenAddress=127.0.0.1
--httpsPort=$HTTP_PORT
Uses HTTPS protocol on port $HTTP_PORT
--httpsListenAddress=$HTTPS_HOST
Binds Jenkins to listen for HTTPS requests on the IP address represented by $HTTPS_HOST.
--ajp13Port=$AJP_PORT
Runs Jenkins listener on port $AJP_PORT using standard AJP13 protocol. The default is port 8009. To disable (because you're using https), use port -1.
--ajp13ListenAddress=$AJP_HOST
Binds Jenkins to the IP address represented by $AJP_HOST. The default is 0.0.0.0 — i.e. listening on all available interfaces.
--argumentsRealm.passwd.$ADMIN_USER
Sets the password for user $ADMIN_USER. If Jenkins security is turned on, you must log in as the $ADMIN_USER in order to configure Jenkins or a Jenkins project. NOTE: You must also specify that this user has an admin role. (See next argument below).
--argumentsRealm.roles.$ADMIN_USER=admin
Sets that $ADMIN_USER is an administrative user and can configure Jenkins if Jenkins' security is turned on. See for more information.
-Xdebug -Xrunjdwp:transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n
Sets debugging on and you can access debug on $DEBUG_PORT.
-logfile=$LOG_PATH/winstone_`date +"%Y%m-%d_%H-%M"`.log
Logging to desired file
-XX:PermSize=512M -XX:MaxPermSize=2048M -Xmn128M -Xms1024M -Xmx2048M
运行完了之后,进入jenkins系统: http://&hostname&:你的端口号(默认8080)/
选择菜单左边的管理JENKINS(Manage Jenkins), 找到安装windows服务(install as windows service)
之后选择安装路径, 接下来的事就是可以去喝杯水,等着安装成功吧.
二.配置JENKINS
在之前先安装几个插件. deploy plugin. (GIT plugin) optional
安装插件的方法: 系统管理-&插件管理-&可选插件, 在里面找到所需要的,下接点安装就好了
1. 建立一个job, 一般都是选择maven 项目. 如果你的项目没有用maven管理, 我还是建议你用吧.
2. 进去第二个页面后, 在这里就要设置源代码管理工具, svn,git(用git之前要为jenkins装一个git 的plugin)等, 设置好你的源代码路径,设置好你的credential(用户名,密码), ssh key
3. 设置job schedule, 点击页面上POLL SCM就显示出输入框,在里面输入你的计划. 例如我的是H/30 * * * *
每半小时查询一下是否有更新,如果有就开始构建.
4. 自动构建的设置就已经完成了, 构建完的目标文件会存在$JENKINS_HOME$\jobs\$your_job_name$\workspace\target\ 这里.
5. 如果需要自动部署的话,还需要配置一下. 在构建后操作那里, 选中deploy war/ear, 文件路径要选报相对路径,例如target/test.war, Context path里面填写你的项目名称, 之后再输入服务器的用户名密码等.如果用tomcat的话,需要用户具有manager-secret权限.之后再写上服务器URL
至此所有的配置就完成了.你可以试试构建一次
浏览 27201
浏览: 191132 次
来自: 芜湖
还有屌丝啊
非常好啊......
为什么我执行(生成的不以-jar-with-depend ...
怒赞一个!!!很棒!
关键是,我想mvn package就打包好,请问,怎么做}

我要回帖

更多关于 jenkins远程部署war 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信