Jenkins assigns the previous compilation, packaging, uploading and deployment to Tomcat to Jenkins through configuration. Jenkins pulls the code to Jenkins’ installation location through the specified code address URL, compiles, packages and publishes the code to the container

Jenkins environment: basic environment of code Clone (Git), code compilation (Maven), code running (Tomcat), environment of company’s special service configuration (Redis,mysql database, ZK, cache, and various service configuration)

At present, our company is such an overall process, I must record here

Steps:

1, Git pull code, run all the service configuration of the company’s special service

2, Maven download, download a variety of JARS, will be downloaded to the Maven repository

3. Project compilation

4. Compile, generate war package, and deploy to remote Tomcat

The /root/.jenkins directory contains the location where Jenkins compiled the war after pulling the Git code

The next step is to deploy the war into Jenkins’ Tomcat container. How do I put the compiled WAR into Tomcat

Of course, the Tomcat server is local and we need to deploy the project to a remote Tomcat server

Deploy to remote Tomcat

A. Deploy to a remote server using scripts

B. Deploy the Deploy to Container Plugin to the remote server

Detailed operation next update!

Recently, I was in charge of testing a project, and I needed to maintain the testing environment for the testing side. Then I went to know what the process of code deployment was, which was probably the above routine

How exactly does Jenkins pull the code and deploy it

  1. Jenkins pulls the code from Git

    Jenkins has integrated git plug-in (if not, please download it by yourself). Git Git Git Git Git Git Git Git Git Git Git Git Git Git Git

  2. Jenkins (1): Jenkins installs and pulls code from GitLab

    1. Gitlab front has been written, to reference https://www.cnblogs.com/yitianyouyitian/p/9214940.html 2. Jenkins 2.1 JDK installation Ann…

  3. Jenkins with Git pull code from remote side back to execute

    The code pulled from Jenkins git is in the workspace folder (default: pull the latest version down).

  4. Jenkins went to GitLab and pulled the Java code for automatic packaging

    Jenkins’ deployment 1. Deployment git 1) the first check to see if the system has been bringing the git, if you have, just uninstall $RPM – qa | grep git && RPM -e git — nodeps 2) open…

  5. .NET Core uses Jenkins + Docker + Azure Devops for dumb-ass deployment

    I have been working on Jenkins + Docker + Azure Devops deployment these days, because this way of deployment is really very easy, and fast, convenient and countless advantages, thanks to my single leader’s support, of course, also thanks to Xiaochen God,…

  6. [CI] Based on 1 above implementation of the pull code can automatically trigger sonar- Runner code scan evaluation,job1 completed

    Sonar plugins: sonar plugins: Sonar plugins: Sonar plugins:…

  7. The Jenkin +Git submodule automatically pulls code

    Jenkins + Git submodule pull code automatically add Git submodule First cloned son want to add the module warehouse git clone SSH: / / git @ IP: port/user/project. The git, this is the home directory. Enter the warehouse…

  8. Fix git pull command failure and cannot pull code from remote server

    Git pull does not work when you use Git pull to pull code from the remote branch because the local branch is not associated with the remote branch. Git branch –set-upstre — git branch –set-upstre

  9. Git Webhook use PHP pull code learning summary under Windows

    I used to upload code to the test server using FTP, which I found inefficient and error prone, such as forgetting to upload a modified file. Now the project code is on git@osc, want to use it webhook, whenever there is a push,git@os…

Random recommended

  1. Two ways to create XML files in.net

    Two ways to create XML files in.NET Method 1: Build the XML document step by step based on the XML structure, save the file (dynamic mode) Method 2: Load the XML structure directly, save the file (fixed mode) Method 1: Create the XML document dynamically based on the passed value, build…

  2. JQuery ajax cross-domain fetching data

    If the retrieved data files reside on a remote server (with a different domain name, that is, retrieving data across domains), you need to use the JSONP type. With this type, a query string parameter callback=? Is created. , which is appended to the requested URL. Service…

  3. Use thinkPHP to realize the function of the verification code

    Many systems have a captcha for login, and if you use the thinkPHP framework to build your site, the generation and verification of captcha is relatively easily.1 To use a captcha, you need to import the extension library at ORG….

  4. JSON Field case – Data exchange using JSON

    Contents: 1. Access javaScript object properties 2. Access Javacript object array 3. Cascading using JSON…

  5. ASP.NET read EXCEL file three classic methods

    Public DataSet ExcelToDS(String Path) {… public DataSet ExcelToDS(string Path) {…

  6. Install oracle java6 and java7 on ubuntu14.04

    Note: It is recommended to install openJDK in Debian, which is included in the Release package. Install java-package apt-get inst…

  7. Nearest Common Village (Tarjan offline LCA)

    Description A rooted tree is a well-known data structure in computer science and engineering. An exa …

  8. Android uses reflection to get the controls in the DatePicker and change their color

    In the end is successfully changed the color of the middle section. Private void setDatePickerDividerColor (DatePicker DatePicker) {/ / Divider chang…

  9. HTML stores PDF documents

    <object classid=”clsid:CA8A9780-280D-11CF-A24D-444553540000″ width=”100%” hei …

  10. Spark flows handle tuning steps

    Total Delay: the Total Delay is 14s, so the next batch is delayed 14-10 = 4s. Total Delay – Each batch is delayed 14-10 = 4s.