{ "info": { "author": "Colin Nolan", "author_email": "colin.nolan@sanger.ac.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6" ], "description": "|Build Status| |codecov.io|\n\nGitLab Build Variables\n======================\n\n*Tools for dealing with GitLab CI pipeline build variables.*\n\nTools\n-----\n\nManaging Multiple Projects\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nUpdating GitLab Build Variables\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSets project build variables based on a configuration file:\n\n.. code:: bash\n\n gitlab-update-variables --url ${gitlabUrl} --token ${accessToken} --default-setting-extension ${extensions} \\\n --setting-repository ${repositoryDirectories} -- ${configLocation}\n\n*`See Example 1 <#example-1>`__ for a more intuitive example of how to\nuse this tool!*\n\nManaging a Single Project\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSetting a GitLab Build Variables\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThis tool allows a GitLab CI project's build variables to be set from a\nini config file, a JSON file or a shell script that just exports\nvariables:\n\n.. code:: bash\n\n gitlab-set-variables --url ${gitlabUrl} --token ${accessToken} ${project} ${locationOfVariables}\n\nGetting GitLab Build Variables\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n.. code:: bash\n\n gitlab-get-variables --url ${gitlabUrl} --token ${accessToken} ${project}\n\nExamples\n--------\n\nExample 1\n~~~~~~~~~\n\nUsing the `example configuration `__ to update the\nvariables for a number of projects:\n\n.. code:: bash\n\n $ export gitlabUrl=https://gitlab.example.com \n $ export accessToken=personalAccessToken\n\n $ gitlab-get-variables --url ${gitlabUrl} --token ${accessToken} cn13/my-project-1\n {'VALUE_1': 'other'}\n\n $ gitlab-get-variables --url ${gitlabUrl} --token ${accessToken} cn13/my-project-2\n {}\n\n $ gitlab-update-variables --url ${gitlabUrl} --token ${accessToken} --default-setting-extension json ini sh \\\n --setting-repository examples/settings -- examples/config.json\n Read config from \"examples/config.json\"\n Set variables for \"cn13/my-project-1\": {'VALUE_1': 'abc', 'VALUE_2': 'other', 'VALUE_3': 'other'}\n Set variables for \"cn13/my-project-2\": {'VALUE_1': 'abc', 'VALUE_2': 'other', 'VALUE_3': 'ghi'}\n\nExample 2\n~~~~~~~~~\n\nUsing the settings defined in `the example\ndirectory `__ to update a project's variables:\n\n.. code:: bash\n\n $ export gitlabUrl=https://gitlab.internal.example.com \n $ export accessToken=applicationAccessToken\n\n $ gitlab-get-variables --url ${gitlabUrl} --token ${accessToken} my-project\n {'VALUE_1': 'other'}\n\n $ gitlab-set-variables --url ${gitlabUrl} --token ${accessToken} group/my-project common.json s3.sh project.ini \n Variables for project \"my-project\" set to: {'VALUE_1': 'abc', 'VALUE_2': 'def', 'VALUE_3': 'ghi'}\n\n.. |Build Status| image:: https://travis-ci.org/wtsi-hgi/gitlab-build-variables-manager.svg\n :target: https://travis-ci.org/wtsi-hgi/gitlab-build-variables-manager\n.. |codecov.io| image:: https://codecov.io/gh/wtsi-hgi/gitlab-build-variables-manager/graph/badge.svg\n :target: https://codecov.io/github/wtsi-hgi/gitlab-build-variables-manager\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/wtsi-hgi/gitlab-build-variables", "keywords": "", "license": "GPL3", "maintainer": "", "maintainer_email": "", "name": "gitlabbuildvariables", "package_url": "https://pypi.org/project/gitlabbuildvariables/", "platform": "", "project_url": "https://pypi.org/project/gitlabbuildvariables/", "project_urls": { "Homepage": "https://github.com/wtsi-hgi/gitlab-build-variables" }, "release_url": "https://pypi.org/project/gitlabbuildvariables/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Tools for dealing with GitLab CI build variables", "version": "1.1.0" }, "last_serial": 2869009, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "912c4592c21f1b2887e4c3bbbd9d9c1b", "sha256": "f8db25188a3131eb22929d9a04a9da1a5ba16c0fd1e8c36c6f641b002de5279f" }, "downloads": -1, "filename": "gitlabbuildvariables-1.1.0.tar.gz", "has_sig": false, "md5_digest": "912c4592c21f1b2887e4c3bbbd9d9c1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25310, "upload_time": "2017-05-12T09:30:41", "url": "https://files.pythonhosted.org/packages/74/4b/99472b57c4a3d9a1a1b16594b6b821fa2e8b15c7287c82c0cf5100a21472/gitlabbuildvariables-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "912c4592c21f1b2887e4c3bbbd9d9c1b", "sha256": "f8db25188a3131eb22929d9a04a9da1a5ba16c0fd1e8c36c6f641b002de5279f" }, "downloads": -1, "filename": "gitlabbuildvariables-1.1.0.tar.gz", "has_sig": false, "md5_digest": "912c4592c21f1b2887e4c3bbbd9d9c1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25310, "upload_time": "2017-05-12T09:30:41", "url": "https://files.pythonhosted.org/packages/74/4b/99472b57c4a3d9a1a1b16594b6b821fa2e8b15c7287c82c0cf5100a21472/gitlabbuildvariables-1.1.0.tar.gz" } ] }