{"id":20040736,"url":"https://github.com/poshcode/azure-pipelines","last_synced_at":"2025-07-17T19:33:26.636Z","repository":{"id":69193855,"uuid":"175540634","full_name":"PoshCode/Azure-Pipelines","owner":"PoshCode","description":"Job and Task templates for Azure Pipelines to be used as a submodule or resource","archived":false,"fork":false,"pushed_at":"2022-09-03T05:13:21.000Z","size":39,"stargazers_count":14,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T08:41:06.270Z","etag":null,"topics":["azure","azure-pipelines","build-tools","builds"],"latest_commit_sha":null,"homepage":null,"language":null,"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/PoshCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2019-03-14T03:19:33.000Z","updated_at":"2023-03-16T07:05:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a7d45d2-2419-441d-bd89-5caa125437eb","html_url":"https://github.com/PoshCode/Azure-Pipelines","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/PoshCode/Azure-Pipelines","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FAzure-Pipelines","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FAzure-Pipelines/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FAzure-Pipelines/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FAzure-Pipelines/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PoshCode","download_url":"https://codeload.github.com/PoshCode/Azure-Pipelines/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoshCode%2FAzure-Pipelines/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265651975,"owners_count":23805456,"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":["azure","azure-pipelines","build-tools","builds"],"created_at":"2024-11-13T10:43:34.165Z","updated_at":"2025-07-17T19:33:26.611Z","avatar_url":"https://github.com/PoshCode.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Job and Step Templates for Azure Build Pipelines\n\n### **NOTE:** These may be a little stale, because I'm not using them myself right now...\n\n## Usage\n\n**First configure a github service connection**\n\nYou can use your existing endpoint connection, or add a new one. If you add a new one, consider using a generic name like \"github\" so forks can configure it the same way.\n\nYou can find this in your `Project Settings` under the `Pipeline` `Service connections` (i.e. https://dev.azure.com/\u003corg\u003e/\u003cproject\u003e/_settings/adminservices) in Azure Devops. NOTE: Project settings is the gear in the bottom left corner of the UI as of April 2019!\n\nIn this example, I'm using the endpoint name **`github`**\n\n**Add this to the beginning of your `azure-pipelines.yml`**\n\n```yaml\nresources:\n  repositories:\n    - repository: poshcode\n      type: github\n      endpoint: github\n      name: PoshCode/Azure-Pipelines\n      ref: refs/tags/1.0.0\n```\n\nThis will make the templates in this repository available in the `poshcode`\nnamespace, so you can run use our GitVersion-job to version your builds by referencing the template `GitVersion-job.yml@poshcode` following these steps:\n\n1. Copy our [GitVersion.yml](GitVersion.yml) into the _root_ of your project. You _can_ modify it, but be aware that as of GitVersion 4.0.0 there's a bug in the \"Mainline\" mode which requires you to manually specify the \"increment\" setting for each branch.\n\n2. Use the GitVersion version number in your build name. I use the `InformationalVersion` (which is the most verbose string), you could use `SemVer` instead...\n\n```yaml\nname: $(Build.DefinitionName)_$(GitVersion_InformationalVersion)\n```\n\n3. Call the template as the _first_ job in your azure-pipelines:\n\n```yaml\njobs:\n  - template: GitVersion-job.yml@poshcode\n```\n\n4. Use the `GitVersion.outputs` in your build job by creating and using a `variable`:\n\n```yaml\n  - job: Build\n    dependsOn: GitVersion\n    variables:\n      SemVer: $[dependencies.GitVersion.outputs['GitVersion.SemVer']]\n    steps:\n    - powershell: Build-Module -SemVer $(SemVer) -Verbose\n      displayName: 'Build-Module'\n```\n\n\nSee the Azure [docs for Templates](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates) and the [YAML schema](https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposhcode%2Fazure-pipelines","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposhcode%2Fazure-pipelines","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposhcode%2Fazure-pipelines/lists"}