pipeline-npm-artifactory /

Filename Size Date modified Message
img
test
1.7 KB
updated pipeline
1.6 KB
scanning build before promoting
3.6 KB
bitbucket-pipelines.yml edited online with Bitbucket
129 B
Added test
1.0 KB
1.2.1
706 B
1.2.1

Artifactory Integration with Bitbucket Pipeline

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

Steps to Integrate Bitbucket Pipeline with Artifactory.

Step 1: copy bitbucket-pipeline.yml file to your project.

Step 2: Enable Pipeline in Bitbucket Repository.

Step 3: add Environment Variables ARTIFACTORY_URL, ARTIFACTORY_USER and ARTIFACTORY_PASSWORD, NPM_DEV_REPO, NPM_STAGE_REPO, NPM_PROD_REPO and NPM_DISTRIBUTION_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

NPM_DISTRIBUTION_REPO -> Artifactory distribution repo to push artifacts to Bintray.
e.g NPM_DISTRIBUTION_REPO -> npm-distribution

screenshot

Step 4: You should be able to see published artifacts and build info in artifactory. screenshot