Skip to content

elioengcomp/artifactory-vsts-extension

 
 

Repository files navigation

Branch Status
master Build status
dev Build status

Overview

JFrog Artifactory provides tight integration with VSTS and TFS through the JFrog Artifactory VSTS Extension. Beyond managing efficient deployment of your artifacts to Artifactory, the extension lets you capture information about artifacts deployed, dependencies resolved, environment data associated with the build runs and more, that effectively facilitates fully traceable builds. See the full extension documentation at the VSTS and TFS Artifactory Extension User Guide.

Download and Installation

The extension is available for installation on your VSTS organization in the VSTS Marketplace. To install the extension on TFS, see the install extensions for Team Foundation Server (TFS) documentation page.

Building and Testing the Sources

Building

To build and run the extension sources, please follow these steps:

  1. Clone the code from git.
  2. To Build and create the JFrog Artifactory VSTS extension vsix file, run the following command.
    npm run create
    

After the build process is completed, you'll find the vsix file in the project directory. The vsix file can be loaded into VSTS and TFS.

Testing

To run the tests, use the following commands:

  1. Set the VSTS_ARTIFACTORY_URL, VSTS_ARTIFACTORY_USERNAME and VSTS_ARTIFACTORY_PASSWORD environment variables with your Artifactory URL, username and password:

    export VSTS_ARTIFACTORY_URL='http://localhost:8081/artifactory'
    export VSTS_ARTIFACTORY_USERNAME=admin
    export VSTS_ARTIFACTORY_PASSWORD=password
    
  2. Set the VSTS_ARTIFACTORY_DOCKER_REGISTRY and VSTS_ARTIFACTORY_DOCKER_REPO environment variables with your Artifactory Docker registry domain and Artifactory Docker repository name:

    export VSTS_ARTIFACTORY_DOCKER_REGISTRY='localhost:8081/docker-local'
    export VSTS_ARTIFACTORY_DOCKER_REPO=docker-local
    
  3. Run the following commands:

    npm i -g jfrog-cli-go
    npm t
    

Skipping Tests

In order to skip tests, set the VSTS_ARTIFACTORY_SKIP_TESTS environment variable with the tests you wish to skip, separated by commas. The supported values are: maven, npm, nuget and docker.

For example, for setting the nuget and docker tests:

export VSTS_ARTIFACTORY_SKIP_TESTS=nuget,docker

Pull Requests

We welcome pull requests from the community!

Guidelines

  • Before creating your first pull request, please join our contributors community by signing JFrog's CLA.
  • Pull requests should be created on the dev branch.
  • Please make sure the code is covered by tests.

Release Notes

See the release notes here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Python 0.7%
  • HTML 0.6%
  • C++ 0.5%
  • CMake 0.5%
  • C 0.1%
  • Other 0.1%