vsts-task-lib

Libraries for writing VSTS and TFS build tasks

  • 所有者: microsoft/azure-pipelines-task-lib
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Azure Pipelines Task SDK

Libraries for writing Azure Pipelines tasks

Reference examples of our in the box tasks are here

Status, Build & Test, ---, :-----:, Win-x64 Windows, ![Build & Test][win-build-badge], macOS macOS, Build & Test, Linux-x64 Linux, Build & Test, [win-build-badge]: https://dev.azure.com/mseng/PipelineTools/_apis/build/status/azure-pipelines-task-lib-ci?branchName=master&jobname=windows

Highlights

  • Breaks coupling with agent: This lib is decoupled and ships with the task and the agent is just an engine to run tasks.
  • Testability: Aims to offer the ability to actually run your task scripts under all scenarios without a server or an agent.
  • Localization: The lib provides a mechanism for storing your localized strings with your task, and loading the correct set at run-time.
  • Consistent API: The TypeScript and PowerShell libs are largely consistent. They only differ where it makes sense (being true to the platform).
  • Tracing for free: Tracing has been built-in to many of the commands. Use the SDK and get some debug tracing for free.

TypeScript Tasks

Cross platform tasks are written in TypeScript. It is the preferred way to write tasks once.

NPM version VSTS

Documentation: Creating Node Tasks with the Typescript API

PowerShell Tasks

A task which automates Powershell technologies can be written with our Powershell SDK. These only run on Windows.

Documentation: PowerShell API

Notes on authoring Tasks

Starting from version v2.141.0, the agent can now run on three OS architectures: x86, x64, and 32-bit ARM. When authoring a new task, you can check agent variable: Agent.OSArchitecture (possible values: X86, X64, ARM) to restrict running said task to a particular set of OS architectures.

Security issues

Do you think there might be a security issue? Have you been phished or identified a security vulnerability? Please don't report it here - let us know by sending an email to secure@microsoft.com.

主要指标

概览
名称与所有者microsoft/azure-pipelines-task-lib
主编程语言TypeScript
编程语言JavaScript (语言数: 7)
平台
许可证MIT License
所有者活动
创建于2015-07-06 22:13:57
推送于2025-04-21 08:01:07
最后一次提交2025-04-17 14:39:00
发布数0
用户参与
星数434
关注者数103
派生数278
提交数730
已启用问题?
问题数385
打开的问题数9
拉请求数456
打开的拉请求数49
关闭的拉请求数175
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?