This task extension is publicly available for free. You may add this extension to your DevOps organization directly from the Visual Studio Marketplace.
npm i -g tslint
)npm i -g typescript
)AGENT_TOOLSDIRECTORY
env var to any directory for caching the pulumi tool.npm install
in the buildAndReleaseTask
and the buildAndReleaseTask/tests
folders.buildAndReleaseTask
directory.
npm start
.buildAndReleaseTask
folder, run tsc && node index.js
from the buildAndReleaseTask
directory.INPUT_AZURESUBSCRIPTION=fake-subscription-id npm run test
In a PowerShell window, run:
$env:INPUT_AZURESUBSCRIPTION=fake-subscription-id
npm run test
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
.
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:
https://marketplace.visualstudio.com/manage/publishers/{your_publisher_account_name}
.vss-extension.json
file, modify the value of the name
property to something unique.
galleryFlags
to Private
instead of Public
.publisher
to your publisher account ID instead of pulumi
.buildAndReleaseTask/task.json
, change the value of the id
property to a unique value. You can get a new, unique value from https://www.guidgen.com.name
property to something unique in this file as well.
author
property to be your publisher account ID.npm run package
. This will bump the version number and produce a new package with the .vsix
file extension.https://marketplace.visualstudio.com/manage/publishers/{your_publisher_account_name}
(be sure to replace {your_publisher_account_name}
with the actual value), and click on New Extension > Azure DevOps and drag/drop the VSIX file you generated in the previous step....
button) and click on Share/Unshare.https://dev.azure.com
, and click on the Organization Settings button in the bottom-left corner.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.
npm run package
in the root of this project, and then upload a new build to your publisher account.vss-extension.json
and task.json
as part of generating your private build. However, any other changes you made to those files, that is relevant to any Pull Request you decide to submit can remain intact.Learn more here.
tfx
cli installed by running tfx version
. If it is not installed, then run npm i -g tfx-cli
.vsts-bump
by running npm i -g vsts-bump
.npm run package
from the root directory.