pulumi / pulumi-az-pipelines-task

Azure Pipelines task extension for running Pulumi apps.
https://marketplace.visualstudio.com/publishers/pulumi
Apache License 2.0
27 stars 19 forks source link
azure-devops azure-pipelines pulumi

Build Status

Pulumi Azure task extension for Azure Pipelines

Release status

This task extension is publicly available for free. You may add this extension to your DevOps organization directly from the Visual Studio Marketplace.

Prerequisites

Local Development

Tests

macOS

INPUT_AZURESUBSCRIPTION=fake-subscription-id npm run test

Windows

In a PowerShell window, run:

$env:INPUT_AZURESUBSCRIPTION=fake-subscription-id npm run test

Debug Traces

If you wish to enable detailed traces, also set TASK_TEST_TRACE=1 before running test.

On Windows, you can do this using $env:TASK_TEST_TRACE=1.

Testing in your own DevOps Organization

Sometimes unit testing alone isn't sufficient and you may want to test your changes in a real Azure DevOps organization. To do so, however, you will need to change some values in the manifest files so that you can run npm run package to create a VSIX package that you can install privately into your own organization. Follow these steps:

Prerequisites

Updating the manifest files

Generate a private package

Share the private build with your organization

Installing the private build

Once installed, return to your organization and create a new Azure Pipelines build and you should now see the newly installed private build of the task extension.

Uploading new versions of the private build

Completing your testing

Package

Learn more here.