Need to install Jenkins and Python on the server
Open Jenkins to create a free-style project named Pythonautotest
Because the code is managed with SVN, the Config source management for SVN "Jenkins builds a folder named after the project name in workspace in the installation directory of Jenkins when building the project, and downloads the code into this folder"
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8B/53/wKioL1hJ_7jirJ5mAACZM6kuaos190.png-wh_500x0-wm_3 -wmp_4-s_1926334683.png "title=" 111.png "alt=" Wkiol1hj_7jirj5maaczm6kuaos190.png-wh_50 "/>
New Build Steps
This step is similar to opening the CMD window on the server to run the command line
1) With environment variables, in fact, I have added the path of the server system environment variable path of Python do not know why did not take effect, after re-added here once succeeded
2) Enter Jenkins to download the source code storage path for the project
3) Run the file with the Python command
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8B/56/wKiom1hKAGnyIuZUAABYlBXyD74684.png-wh_500x0-wm_3 -wmp_4-s_2931459025.png "title=" 111.png "alt=" Wkiom1hkagnyiuzuaabylbxyd74684.png-wh_50 "/>
This article is from the "Smileyes" blog, make sure to keep this source http://smileyes.blog.51cto.com/6027700/1881013
Using Jenkins to integrate Python's automation program