Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A GitHub Action that downloads and caches the specified artifact from a given Azure Pipeline

License

NotificationsYou must be signed in to change notification settings

git-for-windows/get-azure-pipelines-artifact

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Use this Action to download an artifact from an Azure Pipeline.

Getting Started

name:Download stuff from an Azure Pipelineon:[push]jobs:build:runs-on:ubuntu-16.04steps:    -name:Download a build artifact from an Azure Pipelineuses:git-for-windows/get-azure-pipelines-artifact@v0with:repository:git/gitdefinitionId:10artifact:sparse    -run:sudo dpkg -i sparse_*.deb

Input parameters

Repository

This Action needs to know in which repository the artifact lives. Example:https://dev.azure.com/git/git/_build shows the Azure Pipelines of thegit/git repository. It can be configured like this:

-uses:git-for-windows/get-azure-pipelines-artifact@v0with:repository:git/git

Pipeline definition ID

Every Azure Pipeline has a numerical identifier that is part of the URL. For example, the "Build sparse for Ubuntu" Pipeline ingit/git athttps://dev.azure.com/git/git/_build?definitionId=10 has the identifier10. It needs to be configured via thedefinitionId key.

-uses:git-for-windows/get-azure-pipelines-artifact@v0with:definitionId:10

Artifact name

Pipelines can have an arbitrary number of artifacts, which are identified by a name. Theartifact parameter specifies which one to download. It can be omitted if the given Pipeline run has only one artifact attached to it.

Build filters

ThereasonFilter parameter can be added to filter by the reason for a build.A list of accepted reasons can be foundhere. This parameter defaults toall if omitted.

Strip prefix

Pipeline artifacts can contain entire directory structures. ThestripPrefix parameter allows filtering by a given path prefix; Any files matching that prefix will be written (after stripping the prefix), all other files will be skipped.

Output location

By default, the artifact files will be stored in the current directory. Thepath parameter can be used to override that.

This directory needs to be unless caching is turned off.

Caching

To accelerate this Action, artifacts are cached once downloaded. This can be turned off by setting the input parametercache tofalse.

Developingthis Action

First, you'll need to have a reasonably modern version ofnode handy, such as Node 12.

Install the dependencies

$ npm install

Build the Action and package it for distribution

$ npm run build&& npm run package

Run the tests ✔️

$ npmtest

About

A GitHub Action that downloads and caches the specified artifact from a given Azure Pipeline

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp