Code Monkey home page Code Monkey logo

vsts-resource's Introduction

VSTS Resource

Links external git commits to VSTS Workitems.

Source Configuration

  • remote_commit_uri: Required. Uri to display the commit information (e.g. https://github.com/weaverb/vsts-resource/commit).

  • vsts_account: Required. The vsts account name (e.g. https://accountname.visualstudio.com).

  • vsts_user: Required. VSTS account user name.

  • vsts_pat: Required. VSTS Personal Access Token.

  • vsts_collection: Optional. The VSTS Collection to use. Defaults to DefaultCollection

  • vsts_api_version: Optional. REST API verison to use. Defaults to 1.0.

  • curl_ntlm: Optional. adds the --ntlm option to the curl commands.

    Note: Althought this resource currently has not been tested with On-Premise TFS, the ntlm option allows the use of windows credentials for authenticating with TFS 2012 - 2015.3. TFS 2017+ has the ability to use Personal Access Tokens like VSTS.

  • curl_insecure: Optional. Adds the -k option to the curl commands to skip ssl verification.

Example

Basic resource configuration for linking a GitHub commit to a VSTS work item:

    resource_types:
    - name: vsts-resource
      type: docker-image
      source:
        repository: bsweaver/vsts-resource
        tag: latest
    resources:
      - name: repo
        type: git
        source: 
          uri: [email protected]:weaverb/flight-school.git
          branch: master
          private_key: {{github-private-key}}
        check_every: 10s
      - name: vsts
        type: vsts-resource
        source:
          remote_commit_uri: https://github.com/weaverb/flight-school/commit    
          vsts_account: bweaver
          vsts_user: {{vsts-user}}
          vsts_pat: {{vsts-pat}}

    jobs:
      - name: link-commit-to-vsts
        public: true
        plan:
          - get: repo
          - put: vsts

Behavior

check:

Not used currently

in:

Not used currently

out: Push hyperlink to the commit to VSTS

When triggered the resource will scan the latest commit message from the git repo looking for a work item id number prefixed with a # (e.g. #177). If found, a hyperlink will be added to the history field of the work item for the target Collection and Project.

Example:

Work item example

Parameters

No parameters currently.

vsts-resource's People

Contributors

weaverb avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.