{ "info": { "author": "westdoorblowcola", "author_email": "510908220@qq.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "===========\nlintjenkins\n===========\n\n\n.. image:: https://img.shields.io/pypi/v/lintjenkins.svg\n :target: https://pypi.python.org/pypi/lintjenkins\n\n.. image:: https://img.shields.io/travis/510908220/lintjenkins.svg\n :target: https://travis-ci.org/510908220/lintjenkins\n\n.. image:: https://readthedocs.org/projects/lintjenkins/badge/?version=latest\n :target: https://lintjenkins.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. image:: https://pyup.io/repos/github/510908220/lintjenkins/shield.svg\n :target: https://pyup.io/repos/github/510908220/lintjenkins/\n :alt: Updates\n\n\nlintjenkins \u662f\u5e72\u4ec0\u4e48\u7684? \u8fd9\u91cc\u4e3e\u4e00\u4e2a\u4f7f\u7528\u573a\u666f\u7684\u4f8b\u5b50. \u6211\u53c8\u4e00\u4e2adjango\u9879\u76ee\u9700\u8981\u4f7f\u7528jenkins\u8fdb\u884c\u6301\u7eed\u4ee3\u7801\u68c0\u67e5, \u9700\u8981\u505a\u7684\u64cd\u4f5c\u662f:\n\n1. \u5728jenkins\u4e0a\u521b\u5efa\u4e00\u4e2ajob, \u914d\u7f6ejob \u548cviolations\u7b49\u4fe1\u606f.\n2. \u5728\u914d\u7f6ejob\u65f6\uff0c\u6dfb\u52a0svn\u4ee3\u7801\u65f6,\u9700\u8981\u8f93\u5165\u8d26\u53f7\u548c\u5bc6\u7801\u8fdb\u884c\u9a8c\u8bc1\n3. \u67e5\u770b\u68c0\u67e5\u7ed3\u679c\n4. \u5f53\u9700\u8981\u7edf\u8ba1\u5386\u53f2\u7ed3\u679c\u65f6, \u53ea\u80fd\u624b\u52a8\u53bb\u770b\u4e00\u6b21\u6b21\u68c0\u67e5\u7ed3\u679c. \n\nlintjenkins \u5c31\u662f\u5c06\u4e0a\u8ff0\u573a\u666f\u64cd\u4f5c\u5c01\u88c5\u4e3a\u63a5\u53e3,\u4fbf\u4e8e\u4e8c\u6b21\u5f00\u53d1. \n\n\n\n* Free software: MIT license\n* Documentation: https://lintjenkins.readthedocs.io.\n\nRequire\n--------\n\n1. **\u76ee\u6807\u673a\u5668\u88c5\u6709jenkins+violations**\n\n2. **\u88ab\u68c0\u67e5\u7684python\u4ee3\u7801\u6240\u5728\u76ee\u5f55\u7b26\u5408\u5305\u7684\u5f62\u5f0f,\u5982**:\n\n - `__init__.py`\n - `requirements.txt`\n - `pylint.cfg`\n\n3. **pylint\u914d\u7f6e\u6587\u4ef6\u4e5f\u9700\u8981\u4fee\u6539**.\n\n - \u6ca1\u6709\u914d\u7f6e\u53ef\u4ee5\u4f7f\u7528`pylint --generate-rcfile > pylint.cfg`\u751f\u6210\u914d\u7f6e.\n - \u5c06`output-format`\u9879\u7684\u503c\u6539\u4e3a`parseable`\n - `init-hook`\u6dfb\u52a0`'import sys; sys.path.append(\"/var/lib/jenkins/workspace/xxx\")'`,`xxx`\u4e3ajenkins job\u540d. \u5426\u5219\u4f1a\u51fa\u73b0`W0403 Relative import 'xxxx'\u8b66\u544a`\n\nExample\n--------\n.. code-block:: python\n\n In [2]: from lintjenkins import LintJenkins\n\n In [3]: lint_jenkins = LintJenkins('http://x.x.x.x:8080', username='username', password='password')\n\n In [4]: lint_jenkins.add_job(svn = 'svn', username='username', password='password',job_name='aliyun')\n\n In [7]: lint_jenkins.get_build_numbers('aliyun')\n Out[7]: [2, 1]\n\n In [8]: lint_jenkins.get_build_info('aliyun',2)\n Out[8]: \n {\n \"violation_info\": {\n \"violation_num\": 2027,\n \"violation_file_num\": 80\n },\n \"commits\": [\n {\n \"msg\": \"svn\u63d0\u4ea4\u4fe1\u606f\",\n \"paths\": [\n {\n \"editType\": \"add\",\n \"file\": \"\u65b0\u589e\u7684\u6587\u4ef6\"\n },\n {\n \"editType\": \"edit\",\n \"file\": \"\u7f16\u8f91\u7684\u6587\u4ef6\"\n }\n ],\n \"revision\": 18830,\n \"datetime\": \"2017-06-12 09:44:38\",\n \"author\": \"huzhongzhong\"\n }\n ],\n \"datetime\": \"2017-06-12 09:55:13\",\n \"result_url\":'http://x.x.x.x:8080/job/job_name/7/violations/'\n \"result\": \"UNSTABLE\",\n \"duration\": 49,\n \"revisions\": [\n {\n \"module\": \"svn\u5730\u5740\",\n \"revision\": 18830\n }\n ]\n \u00a0 \u00a0 \u00a0 }\n\n\u5b57\u6bb5\u8bf4\u660e:\n\n.. image:: filed.png\n\n\u5bf9\u5e94\u7684\u5728jenkins\u4e0a\u7684\u8868\u73b0\u662f:\n\n.. image:: lintjenkins.png\n\n\u6ce8\u610f\n---------\n\n- `Credentials Plugin`\u4f7f\u7528\u7684\u662f\u7248\u672c`2.1.16`\n- \u5982\u679c\u62a5\u9519`403 no valid crumb was included in the request `, \u7b80\u5355\u53ef\u4ee5\u8fd9\u6837\u5904\u7406:`setup jenkins's \"global security settings\": Uncheck \"Prevent Cross Site Request Forgery exploits\"`\n\n\n\nCredits\n---------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n\n=======\nHistory\n=======\n\n0.1.0 (2017-06-11)\n------------------\n\n* First release on PyPI.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/510908220/lintjenkins", "keywords": "lintjenkins", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "lintjenkins", "package_url": "https://pypi.org/project/lintjenkins/", "platform": "", "project_url": "https://pypi.org/project/lintjenkins/", "project_urls": { "Homepage": "https://github.com/510908220/lintjenkins" }, "release_url": "https://pypi.org/project/lintjenkins/0.1.13/", "requires_dist": null, "requires_python": "", "summary": "jenkins pylint api.", "version": "0.1.13" }, "last_serial": 3209088, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "2aa50ed3b76d544eeb7796bcfbce1e31", "sha256": "9411bb91d569ffe6ace5311ddd4583b45ca9e5c4c8f32cf1faf5de75c1077f60" }, "downloads": -1, "filename": "lintjenkins-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2aa50ed3b76d544eeb7796bcfbce1e31", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11438, "upload_time": "2017-09-27T18:56:50", "url": "https://files.pythonhosted.org/packages/80/11/d4b64c3c0ff17cf2672fa2aa61f99078a9588ec9ac5e0bc36dc8c00f7439/lintjenkins-0.1.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f804deac02ca12a84e408283fc09f136", "sha256": "c04f261c6157946861afefb557d7748c9e68620c8827a13d0b2ba8fc83a6a7e9" }, "downloads": -1, "filename": "lintjenkins-0.1.10.tar.gz", "has_sig": false, "md5_digest": "f804deac02ca12a84e408283fc09f136", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19186, "upload_time": "2017-09-27T18:56:41", "url": "https://files.pythonhosted.org/packages/20/2e/c81d8c2a563a1cf4b9a59da0734869a8ce58834588040084af6328dab8f4/lintjenkins-0.1.10.tar.gz" } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "a225913a7de190bf033a1ec403de0edf", "sha256": "609c7b1a4d64511475eab5544da75bf80e40aadd0b079891b5df41c515db9f0d" }, "downloads": -1, "filename": "lintjenkins-0.1.13-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a225913a7de190bf033a1ec403de0edf", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11405, "upload_time": "2017-09-28T06:08:56", "url": "https://files.pythonhosted.org/packages/42/d1/4e00c21d41428fab3a7ef8c7f4003bf46503c02a3adbf5616e0ca127b7f5/lintjenkins-0.1.13-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "200ba250cdca345163ece1a4d45d0079", "sha256": "fcb7f5ae0ae2c9a29d71cd78917861043c04d1430c1fe5124ad9d432518af9c2" }, "downloads": -1, "filename": "lintjenkins-0.1.13.tar.gz", "has_sig": false, "md5_digest": "200ba250cdca345163ece1a4d45d0079", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19034, "upload_time": "2017-09-28T06:08:48", "url": "https://files.pythonhosted.org/packages/aa/43/86c9c349a869a371ce007919322eb8340593f41d4c0d104edd8bb3ba1145/lintjenkins-0.1.13.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "2a280e38950f902595e70f10cb84a53e", "sha256": "943dc6101c7ec5dee9605bda48093a800518aad4cdd4a0c9f5b5a63a4e72eae3" }, "downloads": -1, "filename": "lintjenkins-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2a280e38950f902595e70f10cb84a53e", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11021, "upload_time": "2017-09-26T06:22:53", "url": "https://files.pythonhosted.org/packages/61/b5/a103e900e48bd68ab39c08255c1f4eb063f06167e36f1c139d27201e30f1/lintjenkins-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f59fd968d9d3a35f2127bc79c0a17319", "sha256": "e57b554c617811a89044a6ce399201b71546a449400d53709337c9b0acc36f89" }, "downloads": -1, "filename": "lintjenkins-0.1.4.tar.gz", "has_sig": false, "md5_digest": "f59fd968d9d3a35f2127bc79c0a17319", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18787, "upload_time": "2017-09-26T06:22:44", "url": "https://files.pythonhosted.org/packages/36/29/478d8d0c505be43f6661c4a2de9e63aa9fe82b8cae8a3621ee5a87de20d3/lintjenkins-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "b5fbdfedd600871ed280a53a9a830461", "sha256": "67188df65fde0dcfebfbed92c4a25e5a258bc2cf459992fb5bb2a581305f5532" }, "downloads": -1, "filename": "lintjenkins-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b5fbdfedd600871ed280a53a9a830461", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11434, "upload_time": "2017-09-27T17:42:17", "url": "https://files.pythonhosted.org/packages/4d/49/a44f0e8b572eceee4c77eeda7446a80527499f24fcf917cf70dbd23815f6/lintjenkins-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "10d6b57fc5cfeeacb006cf4563994368", "sha256": "02ad869d3328e46f8a1cbefc2f8d285447b01fbb3e737a78bfe3e7fe16376218" }, "downloads": -1, "filename": "lintjenkins-0.1.5.tar.gz", "has_sig": false, "md5_digest": "10d6b57fc5cfeeacb006cf4563994368", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19188, "upload_time": "2017-09-27T17:42:01", "url": "https://files.pythonhosted.org/packages/3b/7f/51a7ac9231d498e52cf87c94df88020b52ccc6313c861b9a480304f65685/lintjenkins-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "78cae97a6a8009ed95af2c3f1edda143", "sha256": "eda2748662e405d4ffc6f4a5858c92ef88d0cf9e63d40f577c339b891c4eeebf" }, "downloads": -1, "filename": "lintjenkins-0.1.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "78cae97a6a8009ed95af2c3f1edda143", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11435, "upload_time": "2017-09-27T18:33:00", "url": "https://files.pythonhosted.org/packages/1a/0f/4184e612be9e5084bdedad6dd5c4018f835fcd5187ee9ebf57232ea514d1/lintjenkins-0.1.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ec44f11cddf89d1c9310b59c06b35a25", "sha256": "f451b1c8fb48110224cfdb1552c68584be7afa1f4e3956929316c4cc4886da70" }, "downloads": -1, "filename": "lintjenkins-0.1.6.tar.gz", "has_sig": false, "md5_digest": "ec44f11cddf89d1c9310b59c06b35a25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19196, "upload_time": "2017-09-27T18:32:42", "url": "https://files.pythonhosted.org/packages/2a/75/fd0d679196fd2356f5b9e934807430e1538ee41cda7c3aac6e3a74ab9fdf/lintjenkins-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "ed168e89a9790a64405639d54b11c7a2", "sha256": "e6584ff6bc66f478122a37534eb8a7efd1ff8b089e7acf58964763a7b0dc4830" }, "downloads": -1, "filename": "lintjenkins-0.1.7.tar.gz", "has_sig": false, "md5_digest": "ed168e89a9790a64405639d54b11c7a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19195, "upload_time": "2017-09-27T18:41:35", "url": "https://files.pythonhosted.org/packages/90/90/c8f0cf36397ca3ec231fffe7e7283c24c77b76d155287aed9a7fe8894db8/lintjenkins-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "1b5323f1b21015eaa84307784a177dc4", "sha256": "dbfc97d99d1a2cf9d1b6da1a1aa7693ea542587e098770dbe7b9de1057cfb134" }, "downloads": -1, "filename": "lintjenkins-0.1.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b5323f1b21015eaa84307784a177dc4", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11415, "upload_time": "2017-09-27T18:42:28", "url": "https://files.pythonhosted.org/packages/ee/91/71a27b12e0273c9ff604532a86575cbabe31d4827e880b08743c5c120aff/lintjenkins-0.1.8-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b766b0b2d38d2ef5a50e45f2fad83e20", "sha256": "9de56287c2db6189003cc1121efd172638abcf6d538f9c9f7287a55370ee87d2" }, "downloads": -1, "filename": "lintjenkins-0.1.8.tar.gz", "has_sig": false, "md5_digest": "b766b0b2d38d2ef5a50e45f2fad83e20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19176, "upload_time": "2017-09-27T18:42:10", "url": "https://files.pythonhosted.org/packages/f0/f5/12b1517fcbae5aea2b4151883f0a48615bb0550006cc8f5480af10cbc306/lintjenkins-0.1.8.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "edf47222f7af6fd7a9eb6f6c8ff1fa7b", "sha256": "e8e1a829bcbd4ebd93bebbe7b94605ae27cca35e1378c20c5f48ae4bc7638f08" }, "downloads": -1, "filename": "lintjenkins-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "edf47222f7af6fd7a9eb6f6c8ff1fa7b", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11414, "upload_time": "2017-09-27T18:56:18", "url": "https://files.pythonhosted.org/packages/6a/25/a6f07f24e47eef96e31fe7bd9c4836fa379dda96afd043e69b446c9cb81c/lintjenkins-0.1.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47614d7acc13894c0650d33f013f3e2b", "sha256": "24f4af6a21da23cb00223b4b435a922fdd675669c23e5fbd5895df9d5cf6db43" }, "downloads": -1, "filename": "lintjenkins-0.1.9.tar.gz", "has_sig": false, "md5_digest": "47614d7acc13894c0650d33f013f3e2b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19182, "upload_time": "2017-09-27T18:56:00", "url": "https://files.pythonhosted.org/packages/3e/49/923a6a9581cc073cdc80c23b582a989b5b0787d8f3e7e37be56ad72d8bdc/lintjenkins-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a225913a7de190bf033a1ec403de0edf", "sha256": "609c7b1a4d64511475eab5544da75bf80e40aadd0b079891b5df41c515db9f0d" }, "downloads": -1, "filename": "lintjenkins-0.1.13-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a225913a7de190bf033a1ec403de0edf", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11405, "upload_time": "2017-09-28T06:08:56", "url": "https://files.pythonhosted.org/packages/42/d1/4e00c21d41428fab3a7ef8c7f4003bf46503c02a3adbf5616e0ca127b7f5/lintjenkins-0.1.13-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "200ba250cdca345163ece1a4d45d0079", "sha256": "fcb7f5ae0ae2c9a29d71cd78917861043c04d1430c1fe5124ad9d432518af9c2" }, "downloads": -1, "filename": "lintjenkins-0.1.13.tar.gz", "has_sig": false, "md5_digest": "200ba250cdca345163ece1a4d45d0079", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19034, "upload_time": "2017-09-28T06:08:48", "url": "https://files.pythonhosted.org/packages/aa/43/86c9c349a869a371ce007919322eb8340593f41d4c0d104edd8bb3ba1145/lintjenkins-0.1.13.tar.gz" } ] }