Skip to content

Shahbrothers/travisci-npm-artifactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TravisCI-npm-artifactory

Build Status

Artifactory Integration with Travis Ci

To make this integration work you will need to have running Artifactory-pro/Artifactory SAAS.

NPM Example

This is a sample project that resolve a dependency from Artifactory and deploys the build artifacts to Artifactory.

Step 1:

copy .travis.yml file to your project.

Step 2:

Enable your project in Travis CI .

Step 3:

add Environment Variables ARTIFACTORY_URL, ARTIFACTORY_USER and ARTIFACTORY_PASSWORD, NPM_DEV_REPO, NPM_STAGE_REPO and NPM_PROD_REPO in Repository Settings -> PIPELINES -> Environments Variables.

ARTIFACTORY_URL ->  Artifactory URL 
e.g  ARTIFACTORY_URL -> https://mycompany.jforg.io/mycompany

ARTIFACTORY_USER -> Artifactory User which has permission to deploy artifacts.
e.g ARTIFACTORY_USER -> admin

ARTIFACTORY_PASSWORD -> Password for Artifactory User.
e.g ARTIFACTORY_PASSWORD -> password
 
NPM_DEV_REPO -> Artifactory NPM registry to download and push Artifacts.
e.g NPM_DEV_REPO -> npm-virtual 
 
NPM_STAGE_REPO -> Artifactory NPM registry to download and push Artifacts.
e.g NPM_STAGE_REPO -> npm-stage-local

NPM_PROD_REPO -> Artifactory NPM registry to download and push Artifacts.
e.g NPM_PROD_REPO -> npm-prod-local

Step 4:

Trigger build.

Step 5:

You should be able to see published artifacts in artifactory.

screenshot

Releases

No releases published

Packages

No packages published