1.1 Jenkins Configuration experience

I was in windows10 Installed on , The installation process is simple , Download it from the official website msi Installation package , Double click to execute . The installation program will open automatically after it is finished http://localhost:8080 Webpage . I have a little problem in this step , User name and password are required for the display of automatically opened web pages , After some groping, I realized that it was because my computer was equipped with oracle 11g, and oracle There is a service process in the database that will listen all the time 8080, So we need to oracle Service stopped , Then start it manually jenkins Just fine . Set the user name and password in the web page . Wait for jenkins Install some plug-ins , The installation process is over . After configuration, the interface is as follows :

1.2 Jenkins Task building experience

The next step is to build the task . Click on New Mission , Fill in the project name and type , Here's the picture :

So here's what I chose freestyle, It's the first type .

Then enter the detailed configuration interface . There is more to fill in here . To fill in the project description , Source code management , Build trigger mode , Construction instructions and so on .

I chose git Source code management of , And fill in git Warehouse address . The trigger mode is polling scm,schedule Choose every minute . such jenkins Visit the warehouse every minute , If the source code changes , Automatically build

as for build Method , I'm just a beginner here , So choose a simple console script to represent and mark the build process .

So if it goes well , As long as I git As soon as the code changes ,1 min Inside ,jenkins Will execute the script I wrote , Thus, under the project path record.txt One more line of current time in the file
1.3 Task execution method

Because the trigger mode of project construction has been set up before , Here we simply add a test file , and push As a simulation, edit the code and upload it to the code warehouse .

You can see jenkins Caught the changes in the code , And successfully implemented build Script .
1.4 Perform result analysis

have a look workspace In the directory below record Whether the file has been written or not

You can see that the script executed successfully . This is just an example , But from this example we can see that jenkins It's really convenient . No, jenkins Words , You have to debug the code locally first ,push To the warehouse , And then to the server ,pull Code and compile or run the code . And with jenkins Words , It's good to script these repetitive activities .push One minute at most , It's automatic build 了 . also jenkins You can also integrate tests in , Expand through various plug-ins , Very convenient .

be based on Jenkins More articles on building continuous integration tasks

  1. Docker combination Jenkins Build a continuous integration environment

    Docker combination Jenkins  Build a continuous integration environment Jenkins : An open source continuous integration tool , Provide software version release . Automatic testing and a series of processes and rich plug-ins Maven: An automated build tool , Through a description ...

  2. RF+Jenkins Build continuous integration

    introduce RF In order to carry out automatic acceptance test quickly ,Jenkins And a continuous integration tool , Used to monitor continuous repetitive work , Continuous software release / Test project , And by RF+Jenkins Can be beneficial to RF Build interface projects for continuous integration ...

  3. Use jenkins Build a continuous integration platform

    jenkins +   Maven + svn/git + tomcat Continuous integration platform for Project management process : Demand analysis ---- Prototype design ---- Developing code ---- Submit test ----- Internal test ----- Confirm Online ( ...

  4. Use Jenkins Build a continuous integration environment

    brief introduction Jenkins Is an open source continuous integration tool , Hundreds of plug-ins are available for users to choose from , Be able to build a complete set of continuous integration environment . It has the following characteristics : Continuous integration and continuous release As an extensible automatic server ,Jenkins As a simple ...

  5. be based on Jenkins Continuous integration CI

    CI(continuous integration) Continuous integration A build : May include compilation , test , Review and deploy , And other things , One build is putting the source code together , And verify whether the software can run as a consistent unit . ...

  6. 【 turn 】 be based on Jenkins Implementing continuous integration 【 Ongoing update 】

    Knowledge preview Continuous integration Jenkins install Jenkins plug-in unit Jenkins To configure Jenkins Backup and recovery Release PHP project SVN Release Maven project Release by version Remote management War File deployment settings Mission J ...

  7. The first 4 Homework -- be based on Jenkins Continuous integration

    Jenkins Configuration experience First in https://jenkins.io/download/ download Jenkins Download and install , Found the initial password in the designated place , After installing some plug-ins ,Jenkins You can use ...

  8. be based on Jenkins Implementing continuous integration 【 Ongoing update 】

    Continuous integration 1. What is continuous integration :Continuous integration (CI) Continuous integration is a software development practice , That is, team development members often integrate their work , Typically each member integrates at least once a day , Which means it could happen every day ...

  9. Jenkins Build continuous integration

    Jenkins  It's an open source software project , To provide an open and easy-to-use software platform , Make continuous integration of software possible . Now software development pursues efficiency and quality ,Jenkins Make automation possible ! Bright spot use shell Custom script , control ...

Random recommendation

  1. angularjs in *.min.js.map 404 The problem of

    First use AngularJS, stay chrom When debugging , The following problems occurred : GET http://localhost:63342/luosuo/visitor/js/lib/angular-animate.m ...

  2. DedeCms dedecms Brief Title call label usage guide

    We're using dream weaving DEDECMS In the process of building the station , To make the title of the called article short and relatively complete ( The title is too long ), We have to use the method of calling short title , Make the title appear as a short title , Show full title when pointing to title . And get the article static address link below ...

  3. [ turn ] Let you improve the efficiency of the command line Bash Shortcut key

    To live in Bash shell in , Memorize the following shortcuts , Will greatly improve the efficiency of your command line operation . Edit command Ctrl + a : Move to the beginning of the command line Ctrl + e : Move to the end of the command line Ctrl + f : Move forward by character ( To the right ) ...

  4. ado.net Database operation (2)

    5.1 Use SQLDataReader Do database query <%@ Import Namespace="System.Data" %> <%@ Import NameSp ...

  5. Learning notes —— The state pattern State

    The state pattern , It's mainly used to have a lot of case Operation execution of judgment , At the same time these case Depending on the state of the object , Then a lot of case Judge whether it is encapsulated as a separate class . Context: -state, The current state object . ChangeSta ...

  6. Use aspectJ Realization Spring AOP Two ways

    Mode one : be based on aspectJ Of XML To configure Mode two : be based on aspectJ The way of annotation be based on aspectJ Of XML To configure 1)       To introduce the relevant jar package 2)       establish Spring Core profile , Must lead ...

  7. rabbitmq management advance lesson

    rabbitmq management advance management install rabbitmq-plugins enable rabbitmq_management visit : h ...

  8. Learning machine learning , I don't know how to deal with data ?—— One 、NumPy Detailed explanation

    Recently, learning, reinforcement learning and machine learning , Realize the importance of data analysis , I started to make up for it Python Several scientific computing libraries of , And summed up in the blog . The code used in this blog can be downloaded here . What is? Numpy? NumPy yes Python Numerical calculation is the most important ...

  9. Android Define your own View My dashboard

    New projects , newly build DashBoardView Inherited from View Realization OnGlobalLayoutListener Interface , And rewrite OnDraw Method . Use OnGlobalLayoutListener Interfaces need to be rewritten onG ...

  10. Yes JAVA RMI The understanding of

    RMI The definition of RPC (Remote Procedure Call): Remote method call , For one process to call a procedure in another process , This provides the ability to distribute the process . RMI(Remote Method Invocati ...