Jenkins+SVN

Series Article Directory

Tip: Here you can add the directories of all articles in the series, and the directories need to be added manually.
For example: the first chapter Python machine learning introduction to the use of pandas


Tip: After writing the article, the table of contents can be automatically generated. For how to generate it, please refer to the help document on the right

 

 


Preface

Tip: Here you can add the general content of this article:
For example: With the continuous development of artificial intelligence, the technology of machine learning is becoming more and more important. Many people have started learning machine learning. This article introduces the basics of machine learning. content.


Tip: The following is the content of this article, the following cases are for reference

一、Jenkins

         1,配置D:\download\install\apache-tomcat-8.5.57\conf\server.xml

               

               

                

Reference document https://www.jenkins.io/zh/doc/pipeline/tour/getting-started/

https://www.cnblogs.com/yjmyzz/p/jenkins-tutorial-part-1.html

       

Jenkins introductory tutorial (on)

Jenkins is a visual web tool widely used for continuous construction. To put it more bluntly, continuous construction is the "automated" compilation, packaging, distribution and deployment of various projects. Jenkins can well support project construction in various languages ​​(such as: java, c#, php, etc.), and it is also fully compatible with a variety of third-party build tools such as ant, maven, gradle, and can seamlessly integrate with svn and git. It supports direct integration with well-known source code hosting websites, such as github and bitbucket.

The official website address of jenkins is http://jenkins-ci.org/ , jenkins itself is developed in java language, so the machine where jenkins is installed must have at least jdk, and it is recommended that git, ant, maven, gradle, groovy and other tools are also included Install it to facilitate integration with these build tools.

 

1. Installation and startup (the environment in this article is mac os)

Download the latest war package directly from http://mirrors.jenkins-ci.org/war/latest/jenkins.war  and unzip it to a fixed directory even if the installation is complete, which is very convenient.

Startup method:  java -jar jenkins.war  , if you want to start as a background process, change to nohup java -jar jenkins.war &. During the startup process, it will decompress the war package to the ~/.jenkins directory Download and generate some directories and configuration files. Interested students can enter this directory to study.

 

2. Update and download plug-ins

After the startup is successful, browse to http://localhost:8080/ (If it is not installed on this machine, please change localhost to the corresponding ip of the server)

 

              Refer to the above picture and enter the interface of Manage Plugins. Many functions of jenkins are completed with the help of plugins. When starting for the first time, many plugins will prompt that they are out of date and need to be updated. It is recommended to upgrade to the latest version. At the same time, it is recommended to install the following plugins to facilitate support git project and upload files to remote machines and execute remote shell commands.

                

    

After the plug-in is upgraded, restart jenkins to make it take effect.

 

Three, security settings

By default, Jenkins allows anonymous users to do anything, which means that anyone can use jenkins to publish, which is obviously not secure enough. Jenkins supports multiple security authentication mechanisms. The following demonstrates how to set the most traditional username/password mode :

    

  Refer to the picture above to enter the Configure Global Security interface

   

  

Refer to the above settings. The above settings probably mean to use the built-in user name and password authentication mechanism of jenkins, while allowing users to register, and anonymous users have management rights (when configuring for the first time, it is recommended to allow anonymous users to have management rights to avoid operation errors. , Unable to enter the jenkins management interface normally, after other user permissions are set, then remove the management rights of anonymous users)

After saving, there will be a sign up registration link in the upper right corner of jenkins, click it to register a user, refer to the following picture:

  

      Then enter the security settings interface:

           

   As you can see, there is one more yangjm user in the user list, and you have administrative rights. You can try to log in with the yangjm username. If ok, you can remove the administrative rights of anonymous users. In general, I suggest you remove allowed users. Check the registration (in actual applications, all user names are generally created in advance, and the publishing system is rarely allowed to register at will), after saving, visit jenkins again

           

     

It will be forced to use only the logged-in user.

 

Four, system configuration

Before formally creating a deployment project, there are still several key parameters to be set, as shown in the figure below:

      

First is jdk

     

   Followed by ant and maven parameters

       

If you need to package the gradle project, gradle must also be configured

     For projects hosted by git, git configuration is indispensable

   

  If you need to run shell scripts and upload files to remote machines through scp during deployment, you need to configure the following

  

  

Note: The place marked 1 in red in the above figure is filled in the ssh private key certificate of the machine, and the place marked in red 2 is the access password of the certificate. If the certificate password is not set, leave it blank and the Root Repository Path is the remote server's Upload the root directory, hostname is the machine name (or IP) of the remote server.

 

In addition, there is a powerful publish over ssh, which can not only upload files to the remote server, but also execute the shell script on the server remotely. Please refer to the following configuration

  

 

It is similar to the parameter setting of SCP, but this plug-in has an extra button for Test Configuration. If the parameters are correct, after clicking the button, it will try to connect to the remote server. If it is successful, it will display Success.

 


to sum up

Tip: Here is a summary of the article:
For example, the above is what we will talk about today. This article only briefly introduces the use of pandas, and pandas provides a large number of functions and methods that enable us to process data quickly and conveniently.

Guess you like

Origin blog.csdn.net/qq_36774734/article/details/112469640