VS Code extension for working with Azure Pipelines YAML files
Перейти к файлу
Matt Cooper b7d6776e17
Merge pull request #314 from lucasmior/patch-1
Updating configuration format
2020-05-19 12:43:00 -04:00
.azure-pipelines CVE-2019-10744 2019-08-19 09:58:32 -04:00
.vscode Features/choose right subscription (#55) 2019-09-04 16:45:18 +05:30
assets add Pipelines icon 2018-08-14 09:11:22 -04:00
examples remove two more bogus test cases 2018-09-11 07:22:06 -04:00
resources Added gif for configure-pipeline (#255) 2019-09-06 17:41:10 +05:30
src Dotnet Core WebApp Templates (#272) 2019-10-23 14:34:49 +05:30
syntaxes minor comment 2018-08-06 14:40:53 -04:00
tools/extract-yaml-testcases WS-2019-0032 2019-08-19 09:58:32 -04:00
.gitattributes generated extension using yo code 2018-08-01 11:00:40 -04:00
.gitignore add updated schema 2019-05-13 11:38:29 -04:00
.vscodeignore ignore correct files in the VSIX 2018-09-11 09:44:43 -04:00
CHANGELOG.md typo in changelog 2020-01-22 15:21:30 -05:00
CONTRIBUTING.md split README and CONTRIBUTING 2018-08-09 11:08:26 -04:00
LICENSE Initial commit 2018-07-31 11:39:51 -07:00
README.md Update README.md 2020-05-05 21:24:00 -03:00
RELEASE.md simplify release instructions 2018-11-26 14:48:40 -05:00
copyStaticFiles.js Bug Fixes and updated README.md file (#250) 2019-09-04 12:34:23 +05:30
language-configuration.json First pass. 2018-08-06 10:36:07 -04:00
package-lock.json update deps 2020-01-22 15:10:51 -05:00
package.json update deps 2020-01-22 15:10:51 -05:00
service-schema.json schema bump 2020-01-22 08:41:27 -05:00
tsconfig.json Add credentialstore back. Fix js output. Fix exe getting copied. 2018-08-23 10:04:14 -04:00
tslint.json generated extension using yo code 2018-08-01 11:00:40 -04:00

README.md

Build Status

Azure Pipelines for VS Code

Get it on the VS Code Marketplace!

This VS Code extension adds syntax highlighting and autocompletion for Azure Pipelines YAML to VS Code. It also helps you set up continuous build and deployment for Azure WebApps without leaving VS Code.

Configure Pipeline Demo

To set up a pipeline, choose Azure Pipelines: Configure Pipeline from the command palette (Ctrl/Cmd + Shift + P) or right-click in the file explorer. The guided workflow will generate a starter YAML file defining the build and deploy process.

You can customize the pipeline using all the features offered by Azure Pipelines..

Once the setup is completed, an automatic CI/CD trigger will fire for every code push. To set this up, the extension will ask for a GitHub PAT with repo and admin:repo_hook scope.

GitHub PAT scope

Basic YAML validation is built in to VS Code, but now you can have syntax highlighting that's aware of the Pipelines YAML schema. This means that you get red squigglies if you saytasks:where you meanttask:. IntelliSense is also schema-aware. Wherever you are in the file, press Ctrl-Space to see what options you have at that point.

By default, the extension will highlight known Azure Pipelines files in the root of your workspace. You can change the language mode at the lower right to work with one file at a time. Click the language picker, then choose "Azure Pipelines". If you have files which should always use this extension, set your user or workspace settings to match those file paths with this extension. For example:

{
    "files.associations": {
        "**/ci/*.yml": "azure-pipelines"
    }
}

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you dont wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.

Troubleshooting failures

  • Selected workspace is not a Git repository: You can configure a pipeline for a Git repository backed by GitHub or Azure Repos. Initialize your workspace as a Git repo, commit your files, and add a remote to GitHub or Azure Repos. Run the following commands to configure git repository:

    git init

    git add *

    git commit -m <commit-message>

    git remote add <remote-name> <remote-url>

  • The current branch doesn't have a tracking branch, and the selected repository has no remotes: You can configure a pipeline for a Git repository backed by GitHub or Azure Repos. To add a new remote Git repository, run git remote add <remote-name> <remote-url>

  • Failed to determine Azure Repo details from remote url: If you're configuring a pipeline for a Git repository backed by Azure Repos, ensure that it has a remote pointing to a valid Azure Repos Git repo URL.

Contributing

See CONTRIBUTING.md if you want to jump in!