Using Jenkins to integrate Python's automation program

Source: Internet
Author: User

    1. Need to install Jenkins and Python on the server

    2. 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 "/>

    3. 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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.