程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Teach you how to execute Python programs with jenkins+github

編輯:Python

The computer ​ Environmental Science :win11
Premise :
1. It needs to be set up jenkins:
Installation tutorial : This tutorial is through tomcat To configure the jenkins
https://blog.csdn.net/l1159015838/article/details/124059106

2. packed git:
Installation tutorial : Just download and install it , Choose to automatically add environment variables during installation

3. It needs to be set up python:
Installation tutorial : Just download and install it , Choose to automatically add environment variables during installation
I am python edition :3.10.4

problem :
If you come across git Overtime and so on , You can turn to the bottom of the blog , There will also be corresponding solutions .

One 、 First in github Middle configuration token and webhook

1.token stay Personal center - Find the configuration creation in the system settings as shown in the figure below , Step by step , Remember that the last point appears after creation and jump token Copy and save , You need to use
​​


2. Which project should be done jenkins Automated building on the Internet , Under which project to set webhook


Two 、 Then go to jenkins In the following configuration

1. To configure git token

2. To configure git Program

3、 ... and 、 Last jenkins Create automation projects , Application save , To build

Four 、 Build result log

problem :

If you follow the configuration below git An error occurred when , newspaper 403 Overtime , First check whether the timeout is also reported on the command line , If you encounter a timeout, you can refer to the following document to deal with () I also have a timeout problem ) Close test available
https://blog.csdn.net/l1159015838/article/details/124309881?spm=1001.2014.3001.5501


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved