5.0.1 • Published 1 year ago

azure-devops-task-utils v5.0.1

Weekly downloads
39
License
MIT
Repository
github
Last release
1 year 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

1 year ago

5.0.0

2 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.0.1

4 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago