Alibabacloud.com offers a wide variety of articles about continuous integration software, easily find your continuous integration software information here online.
⑤:jenkins of continuous integration script for automated code deployment and one-click Rollback to the previous version
One: This article uses the way Jenkins invokes shell scripts to get code from a git server, package, deploy to a Web server, remove a Web server from a load balancer, unzip, copy a configuration file, create a soft connection, test each Web server, Add the Web server to the load balancer,
Python + Selenium notes (18): continuous integration of jenkins and seleniumjenkins
(1)Install xmlrunner
This module is used in the test code when Jenkins is used for testing.
Pip install xmlrunner
(2)Install jenkins
(1) download jekins
Https://jenkins.io/download/
Download is suitable for you. I download the long-term stable version.
(2) decompress the package, run the jenkins. msi file, and continue the
This is a creation in
Article, where the information may have evolved or changed.
Blog Address: yeqown.github.com
Cause
Because production needs have recently re-toss Jenkins and Docker. The main purpose is to automatically compile, package, and deploy some Golang httpserver. So decided to use Jenkins to do this continuous integration carrier, choose Jenkins for two reasons:
1. Used before, get started
The previous article said Jenkins+webdeploy+iis completed the Web project deployment, which continues with the deployment of Windows service.Windows service is typically used for automated tasks, and certain actions are scheduled to complete. This article automatic task use quartz.net+topshelf, about topshelf can refer to the garden article http://www.cnblogs.com/jys509/p/4614975.html, not the focus of this article, will not repeat.1. EnvironmentPlatform:. Net4.5Ide:visual Studio MsBuildPackage
Install suggested plugins. Can be passed at the backmanage jenkins > manage plugins page to install or remove additional Jenkins plugins. The Setup Wizard displays the configuration process for Jenkins and the selected Jenkins plug-in set that is being installed. This process may take a few minutes. If only a few plug-ins are installed, click Retry, so that most of the plug-ins will be loaded up. However, the following to correct the error, haha! Finally, after customizing Jenkins through the p
files directly on disk.RestartRestart JenkinsSafe-restart:Safely restart JenkinsSafe-shutdown:Puts Jenkins into the quiet mode, wait for existing builds to is completed, and then shut down Jenkins.Set-build-description:Sets the description of a build.Set-build-display-name:Sets the displayName of a buildSet-build-result:Sets the result of the current build. Works only if invoked from within a build.ShutdownImmediately shuts down Jenkins serverUpdate-job:Updates the job definition XML from stdin
1. Install a clean Ubuntu14.04 desktop version2, open http://jenkins-ci.org/official website, choose Use Jenkins, installing Jenkins on Ubuntu, complete the installation; You can open it in the browser now http://127.0.0.1:8080 /See the start page of Jenkins. 3. On the Start page, select the management plug-in and add git-related components.4, in Ubuntu, install git; (sudo apt-get install git); If you don't have git in Ubuntu, when you take a git library,Failed to connect to repository : Could n
test_app the project as an example, as follows:650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/82/FB/wKioL1dnxMngKvJ7AABhB6g9kO0829.png-wh_500x0-wm_3 -wmp_4-s_1204348487.png "title=" 23.png "alt=" Wkiol1dnxmngkvj7aabhb6g9ko0829.png-wh_50 "/>,Add and then apply and save!.PS: Only one branch can be configured per build!6, other configuration:You can configure the old build to be discarded because it is useless to keep too much.650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/
1. Download and install
I'm using a CruiseControl-2.8.4.
Cruisecontrol: http://cruisecontrol.sourceforge.net/
SVN: http://subversion.tigris.org/
First install your cruisecontrol and decompress the compressed file,
Set your environment variables and add SVN to the path of your environment variables.
After the installation, the directory structure after the installation of cruisecontrol is as follows:
Among them, cruisecontrol (CC) comes with ant1.7.0;
Logs contains log informa
The mail feature above uses the default message content, which does not look very intuitive and gives a common message content configurationModify content Type to HTML (text/html)
The default content configuration is posted here for reference
Default Subject: Build Notification: $PROJECT _name-build # $BUILD _number-$BUILD _status!Default Content:(This email is automatically issued by the program, do not reply!) ) Project Name: $PROJECT _nameBuild Number: $BUILD _numberSVN Ve
to the appropriate path of the problem:One article is worth recommending: http://www.infoq.com/cn/articles/MSBuild-1/Suggest a good lookIn VS2013, the configuration file is placed in:XXXX. Web.csproj This inside, but you open this file, you can not see Tagert or Propert, is actually quoted in this waySo you're actually going to find this file Microsoft.WebApplication.targetsBut don't try to find the ITEM in this file is the configuration of those address variables, because these are in the DLL
Use of the system is Ubuntu, so there are a lot of apt-get commands, haha forgive
Install git Git-core
Create a new Git user, and the user's home directory will be used to store git Repository. This user name is not necessarily called git, can be arbitrarily specified, but git is more commonly used, a look at the role of this account
Modify the password
Landing
sudo install git git-coreadduser gitpasswd gitsu gitThe above is a git installation
Get Gitolite
Continuous Integration System Based on Java 9 module system and Vert. xKey points of this Article
Vert. x is compatible with Java 9 and can be used together to build applications.
Many Java class libraries still do not support modularity.
Be especially careful about the "Automatic module" (some class libraries have not yet become modules ).
Java's built-in Nashorn JavaScript runtime environment is very
Unit Test Tool
1. ocunit: it is easy to integrate from xcode 2.1 into the development environment and requires no additional libraries. You can also configure xcodebuild to test in the command line, so as to test and report in CI.
2. unit test section of GTM: expands ocunit and adds some macros. Address: https://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting
3. ghunit: has an independent GUI. Address: https://github.com/gabriel/gh-unit
4, catch: C ++ Adaptive Test Cases in h
is equally practical. Like a strict woman, Hu LAI is absolutely not allowed. But for the Sun Standard Specification, modify it and use it again. Some places are too strict.
JUnitContinuous integration makes no sense without unit testing ......
EclipseA buddy in the Group recommended idea for a long time. I chose eclipse stubbornly. Although we all know that this is IBM's business strategy, I always feel that this thing is very popular, widely suppo
Linux hostsAndroid SDK installation ignores JDK installation ignore Hudson install ignoreGradle Installation1: Download the corresponding gradle (here is Gradle-2.10-all.zip) 2: Unzip gradle-2.10-all.zip to the corresponding directory 3: Set the GRADLE environment variable add save exit after executionRe-executeSee above to explain Gradle execution successHudson Configuration1Make sure the Gradle plugin plugin is installed2git addressAdd BuildSpecifies the project's root build fileExecute build
pay attention to, in the demonstration in this article, we modify CSP ( Content Security Policy ) configuration closed all security policy, hudson.model.DirectoryBrowserSupport.CSP is set to empty, in fact, there is a great security risk.Correct practice, we should be combined with the actual situation of the project, select the corresponding security policy. For example, if we need to enable script file loading, but only for files hosted on the Jenkins server CSS , you can use the following co
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.