{"id":13731965,"url":"https://github.com/openupm/openupm-pipelines","last_synced_at":"2025-04-14T07:06:12.374Z","repository":{"id":37677376,"uuid":"198664609","full_name":"openupm/openupm-pipelines","owner":"openupm","description":"Azure Build Pipelines for OpenUPM","archived":false,"fork":false,"pushed_at":"2024-05-18T06:27:16.000Z","size":145,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T07:04:44.066Z","etag":null,"topics":["hacktoberfest","openupm"],"latest_commit_sha":null,"homepage":"https://openupm.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openupm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"openupm"}},"created_at":"2019-07-24T15:41:25.000Z","updated_at":"2024-05-18T06:27:14.000Z","dependencies_parsed_at":"2024-11-08T02:45:11.502Z","dependency_job_id":"8b4e9aba-4416-4643-9eb1-c5694cf41990","html_url":"https://github.com/openupm/openupm-pipelines","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openupm%2Fopenupm-pipelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openupm%2Fopenupm-pipelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openupm%2Fopenupm-pipelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openupm%2Fopenupm-pipelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openupm","download_url":"https://codeload.github.com/openupm/openupm-pipelines/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837280,"owners_count":21169374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","openupm"],"created_at":"2024-08-03T02:01:42.710Z","updated_at":"2025-04-14T07:06:12.332Z","avatar_url":"https://github.com/openupm.png","language":"JavaScript","funding_links":["https://patreon.com/openupm"],"categories":["JavaScript"],"sub_categories":[],"readme":"# Azure Pipelines for OpenUPM\n\nA customized proxy builder to build and publish upm package using `Azure Pipelines`.\n\n## Prepare Azura\n\nPrepare a service connection\n- Visit https://dev.azure.com/openupm/openupm\n- Project settings \u003e Service connections \u003e New service connection \u003e npm\n- Connection name, `openupm`\n- Registry URL, `https://package.openupm.com`\n- Personal Token...\n\n## Build with REST API\n\nRequired variables\n\n    {\n        repo_url: 'https://...',\n        repo_branch: 'master',\n        package_name: 'com.yourcompany.package...'\n    }\n\nIf no variables are provided, the build will be [abort as failed](https://github.com/lextm/vstsabort).\n\nApi reference: [azure-devops-rest-5.1](https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds/queue?view=azure-devops-rest-5.1).\n\n```bash\nhttp --ignore-stdin \\\n  -v \\\n  -a username:token \\\n  post https://dev.azure.com/openupm/openupm/_apis/build/builds?api-version=5.1 \\\n  definition:='{ \"id\": 1 }' \\\n  parameters:='\"{ \\\"repo_url\\\": \\\"https://...\\\", ... }\"'\n```\n\nThe `parameters` argument is [a stringified dictionary](https://stackoverflow.com/questions/34343084/start-a-build-and-passing-variables-through-vsts-rest-api/36339920#36339920).\n\n## Build with azure-devops-node-api\n\nhttps://github.com/Microsoft/azure-devops-node-api\n\n```javascript\nconst azureDevops = require(\"azure-devops-node-api\");\n\nconst token = '';\nconst endpoint = 'https://dev.azure.com/openupm';\nconst definitionId = 1;\nconst project = 'openupm';\n\nconst buildPipelines = async function () {\n  let authHandler = azureDevops.getPersonalAccessTokenHandler(token);\n  let conn = new azureDevops.WebApi(endpoint, authHandler);\n  var buildApi = await conn.getBuildApi();\n  let build = await buildApi.queueBuild({\n    definition: {\n      id: definitionId\n    },\n    parameters:\n      JSON.stringify(\n        {\n          repo_url: 'https://...',\n          ...\n        }\n      )\n  }, project);\n  cconsole.log(build);\n};\n```\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://littlebigfun.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/125390?v=4?s=100\" width=\"100px;\" alt=\"Favo Yang\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFavo Yang\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openupm/openupm-pipelines/commits?author=favoyang\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#maintenance-favoyang\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://gaijinent.com/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/5287406?v=4?s=100\" width=\"100px;\" alt=\"Pavel \"am1goo\" Shestakov\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePavel \"am1goo\" Shestakov\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openupm/openupm-pipelines/commits?author=am1goo\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/James-Frowen\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/23101891?v=4?s=100\" width=\"100px;\" alt=\"James Frowen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJames Frowen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/openupm/openupm-pipelines/issues?q=author%3AJames-Frowen\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenupm%2Fopenupm-pipelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenupm%2Fopenupm-pipelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenupm%2Fopenupm-pipelines/lists"}