Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Export meteor as artifacts in bitbucket-pipeline

Gnanamadhu
Contributor
March 13, 2019

Hello all, First of all i am new to bitbucket-pipeline

 

My project built on angualr and meteor. I successfully installed meteor on the pipeline. I need to export meteor as artifacts so the next step can use this. Snother way is to cache the meteor (i think?). I saw this documentation about caching. This documentation has preconfigured caching for selected things. And i saw custom caching as well. I need to know the location of meteor installation location in default location. Usually it will be in `~/.meteor`. Is this is the right path?

 

Or is there any other recommended way to export meteor to the following steps!

 

Thanks.

 

here is the sample of my YAML file

 

image: node:8.11.4

pipelines:
branches:
bitbucket-pipeline:
- step:
name: "Client: Install Dependencies"
caches:
- node
script:
- curl https://install.meteor.com/ | sh
- export METEOR_ALLOW_SUPERUSER=true
- npm install
- npm run setup-meteor-client-bundle
- step:
name: "Client: Build for Staging"
caches:
- node
script:
- npm run build-browser:prod // i need meteor to be installed for this.
artifacts:
- dist/**

1 answer

0 votes
mkleint
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 21, 2019

one option is to use a different image that already has meteor installed by default. eg. https://hub.docker.com/r/blakeberg/meteor-nodejs/ or create your custom one. Next to having more stable build environment, you get a faster build overall because meteor doesn't have to be installed everytime.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, bitbucket, ci/cd workflows, scale ci cd, bitbucket webinar, devops pipeline, continuous integration, continuous delivery, atlassian learning, software automation, developer tools, build and deploy, pipeline optimization, atlassian community

Scale CI/CD workflows faster with Bitbucket Pipelines 🪣

Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.

Register today
AUG Leaders

Atlassian Community Events