{ "info": { "author": "UNKNOWN", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Framework :: Buildout", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Topic :: Software Development :: Build Tools" ], "description": "- Code repository: http://github.com/collective/collective.recipe.hudsonjob\r\n\r\n\r\nDetailed Documentation\r\n**********************\r\n\r\nThis recipe will render your config file for hudson and push it to the website.\r\n\r\nSupported options for Hudson\r\n============================\r\n\r\nThe recipe supports the following options:\r\n\r\nhost (required)\r\n Hostname of your hudson instance.\r\n\r\njobname (required)\r\n Name of the job/project to create on Hudson.\r\n\r\ntemplate (this packages ships with default)\r\n Template ``config.xml`` that will be used to configure Hudson job.\r\n\r\nport (80)\r\n Port of the job/project to create on Hudson.\r\n\r\nusername (None)\r\n For basic authentication specify username.\r\n\r\npassword (None)\r\n For basic authentication specify password.\r\n\r\nconfig_name (hudson_config.xml)\r\n Name of generated configuration file that will get POSTed to Hudson.\r\n\r\n\r\nSupported variables for configuration template (``config.xml``)\r\n===============================================================\r\n\r\ndescription\r\n This description is placed on the project top page so that visitors can know what this job is about. You can use any HTML tags here. \r\n\r\nsvn\r\n Pairs of URL and name of the checkout directory\r\n\r\ngit\r\n URL for the checkout\r\n\r\npoll_scm\r\n This field follows the syntax of cron (with minor differences). Specifically, each line consists of 5 fields separated by TAB or whitespace:\r\n MINUTE HOUR DOM MONTH DOW\r\n MINUTE\tMinutes within the hour (0-59)\r\n HOUR\tThe hour of the day (0-23)\r\n DOM\tThe day of the month (1-31)\r\n MONTH\tThe month (1-12)\r\n DOW\tThe day of the week (0-7) where 0 and 7 are Sunday.\r\n To specify multiple values for one field, the following operators are available. In the order of precedence,\r\n\r\n '*' can be used to specify all valid values.\r\n 'M-N' can be used to specify a range, such as \"1-5\"\r\n 'M-N/X' or '*/X' can be used to specify skips of X's value through the range, such as \"*/15\" in the MINUTE field for \"0,15,30,45\" and \"1-6/2\" for \"1,3,5\"\r\n 'A,B,...,Z' can be used to specify multiple values, such as \"0,30\" or \"1,3,5\"\r\n Empty lines and lines that start with '#' will be ignored as comments.\r\n\r\n In addition, '@yearly', '@annually', '@monthly', '@weekly', '@daily', '@midnight', and '@hourly' are supported.\r\n\r\n Examples\t\r\n # every minute\r\n \\* \\* \\* \\* \\*\r\n # every 5 mins past the hour \r\n 5 \\* \\* \\* \\*\r\n\r\nshell\r\n Runs a shell script (defaults to sh, but this is configurable) for building the project. The script will be run with the workspace as the current directory. Type in the contents of your shell script. If your shell script has no header line like #!/bin/sh \u2014, then the shell configured system-wide will be used, but you can also use the header line to write script in another language (like #!/bin/perl) or control the options that shell uses.\r\n By default, the shell will be invoked with the \"-ex\" option. So all of the commands are printed before being executed, and the build is considered a failure if any of the commands exits with a non-zero exit code. Again, add the #!/bin/... line to change this behavior.\r\n\r\n As a best practice, try not to put a long shell script in here. Instead, consider adding the shell script in SCM and simply call that shell script from Hudson (via bash -ex myscript.sh or something like that), so that you can track changes in your shell script.\r\n \r\n\r\nExample usage\r\n=============\r\n\r\nWe'll start by creating a buildout that uses the recipe::\r\n\r\n [add_to_hudson]\r\n recipe = collective.recipe.hudsonjob\r\n host = hudson.ploneboutique.com\r\n jobname = foobar\r\n port = 80\r\n username = test\r\n password = test\r\n template = %(path)s\r\n\r\n # template vars\r\n svn = http:// .\r\n description = foobar\r\n\r\nThis will generate ``add_to_hudson`` command that will send your config to the\r\nhudson (located as specified at add_to_hudson buildout section).\r\n\r\nSo run the buildout::\r\n \r\n $ bin/buildout\r\n Develop: '/home/ielectric/code/collective.recipe.hudsonjob/.'\r\n install_dir /home/ielectric/code/collective.recipe.hudsonjob/develop-eggs/tmpfg_pqRbuild\r\n Uninstalling add_to_hudson.\r\n Updating test.\r\n Installing add_to_hudson.\r\n Generated script '/home/ielectric/code/collective.recipe.hudsonjob/bin/add_to_hudson'.\r\n\r\nNow we can see our configuration file at ``parts/collective.recipe.hudsonjob/hudson_config.xml``\r\n\r\nAnd let's make new job at our hudson::\r\n\r\n $ bin/add_to_hudson\r\n\r\nThat's it! Your hudson has a new project, you may need to enter SCM\r\ncredentials the first time.\r\n\r\nTemplate will be rendered by buildout on every run. Templating is done with Genshi.\r\n\r\nAdding template support for xml is really straight-forward, feel free to\r\ncontribute (but don't forget tests).\r\n\r\nContributors\r\n************\r\n\r\n\"Domen 'iElectric' Ko\u017ear\", Author\r\n\r\n\r\nChange history\r\n**************\r\n\r\n0.1 (2010-10-30)\r\n=================\r\n\r\n- Created initial recipe\r\n [\"iElectric\"]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "hudson,plone", "license": "ZPL", "maintainer": "", "maintainer_email": "", "name": "collective.recipe.hudsonjob", "package_url": "https://pypi.org/project/collective.recipe.hudsonjob/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.recipe.hudsonjob/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/collective.recipe.hudsonjob/0.1/", "requires_dist": null, "requires_python": null, "summary": "Configure Hudson in buildout and push to it", "version": "0.1" }, "last_serial": 788137, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b64c926c8a1a7a65a6da4e2cb9cf1f87", "sha256": "b2755ede2c558d1cefa876e67ca4905597c055cc75e135a69a01fb2ab5823a9b" }, "downloads": -1, "filename": "collective.recipe.hudsonjob-0.1.tar.gz", "has_sig": false, "md5_digest": "b64c926c8a1a7a65a6da4e2cb9cf1f87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6091, "upload_time": "2010-10-31T21:31:21", "url": "https://files.pythonhosted.org/packages/76/c8/81d92e85ef24ff0c0d90283d5fab2f150a5413a205387769346420a6e758/collective.recipe.hudsonjob-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b64c926c8a1a7a65a6da4e2cb9cf1f87", "sha256": "b2755ede2c558d1cefa876e67ca4905597c055cc75e135a69a01fb2ab5823a9b" }, "downloads": -1, "filename": "collective.recipe.hudsonjob-0.1.tar.gz", "has_sig": false, "md5_digest": "b64c926c8a1a7a65a6da4e2cb9cf1f87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6091, "upload_time": "2010-10-31T21:31:21", "url": "https://files.pythonhosted.org/packages/76/c8/81d92e85ef24ff0c0d90283d5fab2f150a5413a205387769346420a6e758/collective.recipe.hudsonjob-0.1.tar.gz" } ] }