5.0.1 • Published 5 months ago

azure-devops-task-utils v5.0.1

Weekly downloads
39
License
MIT
Repository
github
Last release
5 months ago

Azure DevOps task utils

Library with useful functionalities for azure devops tasks

  • Create client
  • Update variable
  • retries
  • etc

Usage

$ npm install --save azure-devops-task-utils
...
import * as common from 'azure-devops-task-utils';
import * as nodeApi from 'azure-devops-node-api';

async function sample() {

    common.banner('Init Configuration');
    common.heading('Title');


    const webApi: nodeApi.WebApi = common.getWebApi();
    const gitApi: GitApi.IGitApi = await webApi.getGitApi();
    const project: string = common.getProject();

    ///
    await gitApi.
    .
    .
    .
}

To do local tests export the variables y en la variable 'SYSTEM_ACCESSTOKEN' a personal access token

export SYSTEM_ACCESSTOKEN=xxxxx

export SYSTEM_TEAMPROJECTID=xxxxx-xxx-xx

export SYSTEM_TEAMFOUNDATIONCOLLECTIONURI=https://dev.azure.com/xxxxxxxx/

Nota: In Azure DevOps you must activate the option to use auth script in the agents

"Allow scripts to access the OAuth token"

5.0.1

5 months ago

5.0.0

11 months ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.1

3 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.8

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago