Jenkins部署:SVN-Maven-Tomcat全程

来源:互联网 发布:adobe pdf for mac 编辑:程序博客网 时间:2024/05/16 09:03

全局配置JDK,Maven


配置SVN -需要用户验证


项目需要引入 maven-resources-plugin

<plugin>
  <artifactId>maven-resources-plugin</artifactId>
  <version>2.6</version>
</plugin>

手动安装Deploy Plugin

下载网站 Download Site

Save the downloaded *.hpi/*.jpi file into the $JENKINS_HOME/plugins directory. You will then need to restart Jenkins (many containers let you do this without restarting the container)

Caveat: the names of the plugin directories on the download site are not always matching the name given to the plugin; common sense should apply.


添加构建后操作


Tomcat 用户设置

<role rolename="manager-gui"/>

<role rolename="manager-script"/>

<role rolename="manager-jmx"/>

<role rolename="manager-status"/>

<user username="admin"  password="admin"  roles="manager-gui,manager-script,manager-jmx,manager-status"/>  


访问


0 0
原创粉丝点击