easy-jenkins automated deployment

Project Description

    easy-jenkins is a simple tool that can automatically deploy local projects with one click. It can easily package springboot projects in our usual java development into jar packages and front-end projects such as vue can also be built and uploaded with one click. Server deployment simplifies the cumbersome configuration of jenkins, making it more friendly and convenient for users

   When we use it, we only need to simply configure the project path to be built and the uploaded server path in our easy-jenkins, and then we can deploy with one click, which is very convenient and greatly simplifies the use of traditional jenkins

project address

Open source address:  easy-jenkins: easy-jenkins is a deployment tool for vue and jar. It is easy to operate and implements one-click deployment. Simple, easy to use, in line with user routine operations, easy-jenkins is branch-oriented, no login is required, the default branch is jenkins, each branch can be configured with multiple data sources, switching between different branches can manage different data sources, easy-jenkins uses local storage The structure does not need to configure the database, simple and easy to use

This project has been open sourced, and you are welcome to have more and better suggestions and pushes in this project

tutorial

 The project is developed with springboot2.7.5

 After pulling the project in the idea, you can see the following project structure,

 We can directly start our main startup class. We don’t need a series of configurations such as database and port number during development. Basic information such as configuration in the system will be saved in the local hard disk in files with the suffix of .jenkins, so there is no need to worry. Database and other configuration

 If the user is using the tool for the first time, when the system starts, it will automatically scan whether there is a configuration information file of the tool in the hard disk path. If it exists, it will directly start our ui interface. If it does not exist, it will be used for the first time. Will enter our installation wizard to install

 We go straight to the next step

 Here we need to perform basic configuration during installation. To use this tool, you must have a jdk environment and an environment above maven3.5 on the local computer

The port number can be configured by itself. After the project starts, it will be accessed according to the port number set by the user.

After configuration, click install and start, the background will automatically generate the configuration information file for installation and automatically start the ui front desk

After startup, the system will automatically generate and switch to the default jenkins branch 

We can establish different branches according to our own needs, and establish different data connections on different branches to carry out the deployment of our project

Add data connection under jenkins branch

 Enter our local project and server deployment information

 Click OK, and the deployment information we just added will appear in our deployment list

 If the server or local project information needs to be changed, you can directly click Edit to modify the deployment information, here mainly demonstrates the deployment of the project

Click to deploy

The system will automatically pop up the deployment information box. At this time, you only need to wait without any operation. After the deployment is successful, it will display Successfully deployed, indicating that the deployment is successful.

Then we can directly access the services of our deployment project

After the deployment is successful, the corresponding deployment records under the branch will also be generated

 The deployment records and data source links of each branch are independent of each other. When we switch between different branches, the deployment list and deployment records will also switch the data records of the current branch accordingly.

Now let's create a new branch and see

Note: This system does not allow branches with the same name, that is, the name of each branch is unique

We create a new master branch

At this point we can switch branches, pay attention to the branch status, as long as the current branch status is idle, we can switch the currently used branch to any idle branch

We switch to the master branch 

 

You can see that the jenkins branch is switched to idle, and the master branch is the currently used branch

 Then let's go to the deployment list and deployment records to see

 

 At this time, the deployment list and deployment records are empty, because we have not added and deployed the data source link to the newly added mater branch

At this point, if we switch back to the jenkins branch, we can see our deployment data source link and deployment record again

Here you can try it yourself

The deletion of branches and data source links can be tried by yourself

The final basic information configuration

 Finally, you can re-edit the basic information of the installation wizard here. One thing to note is that the modification of the port number needs to be re-serviced to take effect. You can try it yourself

The above is a simple tutorial for using the tool

exe start

There is an exe file in our project structure, which can be directly dragged to the computer desktop to start directly

 Drag to the desktop and double-click to run

Summarize

This project is mainly to simplify a series of cumbersome operations such as traditional jenkins operation configuration, and there may be new functions and optimizations in the future. At present, the project has been open sourced. Interested partners are welcome to actively participate and optimize

开发人 @来自上海的这位朋友,@暗武逢天

Guess you like

Origin blog.csdn.net/m0_51406695/article/details/128282585