狠狠撸

狠狠撸Share a Scribd company logo
auto deploy to tomcat on jenkins
maven
tomcat
github
Jenkins
OpenShift
1. create a account for deploy on tomcat
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="username" password="password" roles="manager-gui,manager-script" />
2. setup maven by settings.xml at maven conf dir
the authorization of deploy war to tomcat
http://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/usage.html
3. add maven plug-in setup for your project’s pom.xml
let you project tell maven where the tomcat need to deploy
<build>
….
<!-- For Maven Tomcat Plugin -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<server>myserver</server>
<path>/myapp</path>
<url>http://serverIP:8080/manager/text</url>
</configuration>
</plugin>
…
</plugins>
</build>
4. jenkins should know how to do
below, to reach the target only need is add
goals ...tomcat7:undeploy ,tomcat7:deploy …. and run jenkins bulid !!
appendix
5. another point
here some setup include security ,so need seperate to deal
5.1 touch openshift app’s source code repository
every openshift app have own source code repository
5.2 use git

More Related Content

What's hot (20)

PDF
Automation Testing
RomSoft SRL
?
PPTX
Deploy Node.js application in Heroku using Eclipse
Jitendra Zaa
?
PDF
HotPush with Ionic 2 and CodePush
Evan Schultz
?
ODP
Setting up and open fidy dev environment
ianibbo
?
PDF
Jenkins and Groovy
Kiyotaka Oku
?
PPTX
Grooving with Jenkins
Anton Weiss
?
PDF
Jenkins 101: Getting Started
R Geoffrey Avery
?
PPT
Yeoman
James Cryer
?
PDF
Jenkins Docker
Alex Soto
?
PDF
Infrastructure = Code
Georg Sorst
?
PDF
OpenShift: Java EE in the clouds
Max Andersen
?
ODP
DIY Java & Kubernetes
Pance Cavkovski
?
PDF
First steps with Gutenberg for developers - WC Prague 2020
Magdalena Paciorek
?
PPTX
Continuous integration in games development
Nebojsa Brindic
?
ODP
Chef training Day5
Andriy Samilyak
?
PDF
Live deployment, ci, drupal
Andrii Podanenko
?
PDF
Lviv 2013 d7 vs d8
Andy Postnikov
?
PPTX
Git, gitHub, Azure and Visual Studio
Salvatore Sorrentino
?
PDF
Continuous Web Performance Monitoring with Jenkins
Michael Kr?ll
?
PDF
Infrastructure = code - 1 year later
Christian Ortner
?
Automation Testing
RomSoft SRL
?
Deploy Node.js application in Heroku using Eclipse
Jitendra Zaa
?
HotPush with Ionic 2 and CodePush
Evan Schultz
?
Setting up and open fidy dev environment
ianibbo
?
Jenkins and Groovy
Kiyotaka Oku
?
Grooving with Jenkins
Anton Weiss
?
Jenkins 101: Getting Started
R Geoffrey Avery
?
Jenkins Docker
Alex Soto
?
Infrastructure = Code
Georg Sorst
?
OpenShift: Java EE in the clouds
Max Andersen
?
DIY Java & Kubernetes
Pance Cavkovski
?
First steps with Gutenberg for developers - WC Prague 2020
Magdalena Paciorek
?
Continuous integration in games development
Nebojsa Brindic
?
Chef training Day5
Andriy Samilyak
?
Live deployment, ci, drupal
Andrii Podanenko
?
Lviv 2013 d7 vs d8
Andy Postnikov
?
Git, gitHub, Azure and Visual Studio
Salvatore Sorrentino
?
Continuous Web Performance Monitoring with Jenkins
Michael Kr?ll
?
Infrastructure = code - 1 year later
Christian Ortner
?

More from Huang Bruce (6)

PPTX
我的叠顿顿实践
Huang Bruce
?
PPTX
1. Quick sartup a jenkins server on OpenShift
Huang Bruce
?
PDF
初探闯别苍办颈苍蝉
Huang Bruce
?
PDF
從Eclipse部屬java webapp 到本地端tomcat
Huang Bruce
?
PDF
用惭补惫别苍管理专案的依赖关係
Huang Bruce
?
PDF
初探Maven 3
Huang Bruce
?
我的叠顿顿实践
Huang Bruce
?
1. Quick sartup a jenkins server on OpenShift
Huang Bruce
?
初探闯别苍办颈苍蝉
Huang Bruce
?
從Eclipse部屬java webapp 到本地端tomcat
Huang Bruce
?
用惭补惫别苍管理专案的依赖关係
Huang Bruce
?
初探Maven 3
Huang Bruce
?
Ad

Recently uploaded (20)

PDF
AI Software Development Process, Strategies and Challenges
Net-Craft.com
?
PPTX
Agentforce – TDX 2025 Hackathon Achievement
GetOnCRM Solutions
?
PPTX
For my supp to finally picking supp that work
necas19388
?
PDF
Rewards and Recognition (2).pdf
ethan Talor
?
PPTX
declaration of Variables and constants.pptx
meemee7378
?
PDF
Mastering VPC Architecture Build for Scale from Day 1.pdf
Devseccops.ai
?
PDF
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
?
PDF
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
?
PDF
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
?
PDF
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
?
PDF
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
?
PDF
Building scalbale cloud native apps with .NET 8
GillesMathieu10
?
DOCX
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
?
PPTX
arctitecture application system design os dsa
za241967
?
PDF
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
?
PDF
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
?
PDF
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
?
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
?
PDF
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
?
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
?
AI Software Development Process, Strategies and Challenges
Net-Craft.com
?
Agentforce – TDX 2025 Hackathon Achievement
GetOnCRM Solutions
?
For my supp to finally picking supp that work
necas19388
?
Rewards and Recognition (2).pdf
ethan Talor
?
declaration of Variables and constants.pptx
meemee7378
?
Mastering VPC Architecture Build for Scale from Day 1.pdf
Devseccops.ai
?
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
?
Azure AI Foundry: The AI app and agent factory
Maxim Salnikov
?
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
?
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
?
AWS Consulting Services: Empowering Digital Transformation with Nlineaxis
Nlineaxis IT Solutions Pvt Ltd
?
Building scalbale cloud native apps with .NET 8
GillesMathieu10
?
Zoho Creator Solution for EI by Elsner Technologies.docx
Elsner Technologies Pvt. Ltd.
?
arctitecture application system design os dsa
za241967
?
Designing Accessible Content Blocks (1).pdf
jaclynmennie1
?
TEASMA: A Practical Methodology for Test Adequacy Assessment of Deep Neural N...
Lionel Briand
?
CodeCleaner: Mitigating Data Contamination for LLM Benchmarking
arabelatso
?
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
?
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
?
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
?
Ad

2. auto deploy to tomcat on jenkins

  • 1. auto deploy to tomcat on jenkins
  • 3. 1. create a account for deploy on tomcat <role rolename="manager-gui"/> <role rolename="manager-script"/> <user username="username" password="password" roles="manager-gui,manager-script" />
  • 4. 2. setup maven by settings.xml at maven conf dir the authorization of deploy war to tomcat http://tomcat.apache.org/maven-plugin-trunk/tomcat7-maven-plugin/usage.html
  • 5. 3. add maven plug-in setup for your project’s pom.xml let you project tell maven where the tomcat need to deploy <build> …. <!-- For Maven Tomcat Plugin --> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <server>myserver</server> <path>/myapp</path> <url>http://serverIP:8080/manager/text</url> </configuration> </plugin> … </plugins> </build>
  • 6. 4. jenkins should know how to do below, to reach the target only need is add goals ...tomcat7:undeploy ,tomcat7:deploy …. and run jenkins bulid !!
  • 8. 5. another point here some setup include security ,so need seperate to deal
  • 9. 5.1 touch openshift app’s source code repository every openshift app have own source code repository