Questions tagged [bitbucket-pipelines]

1

votes
1

answer
478

Views

Bitbucket pipelines webpack build and ftp deploy NO JS OUTPUT on the server

I have my pipelines build settings: branches: production: - step: name: Build and test JS. image: node:8.9.3 script: - npm install - npm test - npm run-script build - step: name: Build and test PHP. image: php:7-fpm script: - echo 'Here will be the Composer build and PHPUnit tests.' - step: name:...
Edenwave
1

votes
1

answer
444

Views

GCloud App deploy using Bitbucket pipeline

I want to deploy my application using bitbucket pipeline in the production environment. I followed the instruction given in https://cloud.google.com/solutions/continuous-delivery-bitbucket-app-engine but this is deploying my application in the staging environment. My Pipeline file is image: pytho...
Prabhat Kashyap
1

votes
0

answer
87

Views

Bitbucket Pipelines case-sensitive filesystem

Tech: gulp, polymer-build, bitbucket pipelines I have a build step as part of a project which copies a bunch of bower_components files into the /dist folder. When run locally this works fine. However when running the same script on Bitbucket, it fails when reaching the module Chart.js Error: ENOENT:...
wazzaday
1

votes
0

answer
171

Views

BitBucket Node.js Pipeline Environment Variables

This may be a stupid question, but is there a standard/best way to control the environments when deploying through a pipeline (for instance to Heroku). I have a Node.js app and, for instance, I use 'nodemon' in the 'npm start' script I specify in my 'package.json' in dev, but need it to run just 'no...
blubberbo
1

votes
2

answer
1.2k

Views

BitBucket Pipelines and DigitalOcean permission denied

Currently getting this everytime I run my Pipeline: Permission denied (publickey). Steps so far: On Mac: cd ~/.ssh ssh-keygen -t rsa -N '' -f my_ssh_key base64 < my_ssh_key ssh-copy-id -i my_ssh_key.pub [email protected] cd /my/repo/path ssh-keyscan -t rsa server.domain.com > my_known_hosts On B...
ngDough
1

votes
0

answer
100

Views

Plugin changing maven coordinates

I'm trying to create a maven script that build an app and deploys to Artifactory (cloud) running from Bitbucket pipelines (cloud). When I build locally, the artifact is stored correctly in the local repository. When the pipeline runs, it adds the repository to the Maven group id. The build then fai...
DJ Spiess
1

votes
0

answer
110

Views

Suppress complexity warning in PHP

I have a legacy code, for which the complexity of the code is higher then 20. My pipelines are failing do to this fact. This is the exact error message from the pipelines: Function's cyclomatic complexity (36) exceeds allowed maximum of 20 I don't have the time to refactor the code so, I am lookin...
Attila Naghi
1

votes
1

answer
293

Views

Error in bitbucket-pipeline: docker stack deploy requires API version 1.25, but the Docker daemon API version is

When I try to deploy from Bitbucket Pipeline: docker stack deploy -c docker-compose.yml --with-registry-auth myapp receive err: docker stack deploy requires API version 1.25, but the Docker daemon API version is On manager: ✗ docker version Client: Version: 18.03.0-ce-rc4 API version: 1.37...
Alukos
1

votes
1

answer
243

Views

Error pushing from BitBucket to CodeCommmit

I've set up a Bitbucket Pipeline to push to CodeCommit per Jay Proulx's instructions at https://medium.com/@jay_proulx/aws-codecommit-from-atlassian-bitbucket-and-bitbucket-pipelines-for-ci-offloading-4f1131695802 I've uploaded an ssh key (generated by puttygen on Windows) to AWS IAM and configured...
Greg Sansom
1

votes
0

answer
76

Views

Choosing yarn version prefix on the fly

I want to tag some of my commits and yarn version does a pretty good job here. By default, the prefix of the git tag is v. I'm curious whether there is a way to choose a prefix whenever yarn version is called. I know I can do this: yarn config set version-tag-prefix 'other-prefix' and switch it when...
dnmh
1

votes
0

answer
401

Views

Bitbucket Pipeline npm install fails with “npm ERR! fatal: unable to access”

I'm trying to run test cases in my node app using Bitbucket pipeline as follows. image: channagayan/node_test:latest pipelines: default: - step: caches: - node script: # Modify the commands below to build your repository. - cd NodeApi && pwd && npm install - npm test But it fails giving following er...
Channa
1

votes
1

answer
229

Views

bitbucket pipeline to heroku auth fail

I'm trying to get my BitBucket Pipeline to deploy to Heroku using the method described here: https://confluence.atlassian.com/bitbucket/deploy-to-heroku-872013667.html but it fails with the error: remote: ! WARNING: remote: ! Do not authenticate with username and password using git. remote: !...
Ben Gannaway
1

votes
0

answer
180

Views

Bitbucket pipeline reactjs build error

I built web app using react.js, and I want to make build and deploy on the server using FTP on every commit. For that purpose, I configure bitbucket pipeline, but I get an error on build react app. I tested my local machine by running 'npm run build' command and it run successfully without any error...
Qamar Azam
1

votes
1

answer
151

Views

Bitbucket Pipelines failing to deploy to Elastic Beanstalk

I have had pipelines working successfully for a while, but it seems to have stopped working on one of my branches (possibly more not tried yet). The logs show: Creating application version archive 'app-f557-180519_203324'. Uploading: [--------------------------------------------------] 0% Uploading...
Kevin
1

votes
0

answer
173

Views

how to deploy war file in tomcat using bitbucket pipeline

How to deploy war file in tomcat using bitbucket pipeline using tomcat user? how can i use SFTP using ssh-key? git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD 'sftp://35.150.122.100/var/lib/tomcat8/webapps/ROOT'
1

votes
1

answer
295

Views

Bitbucket pipelines add additional php extensions

I am using the bitbucket pipelines and use the docker image from garak/docker-php7:7.1 Now I need the php-soap extension, which is not in the image above. How can I install it in runtime? Or is there a possibility to put the whole docker configuration in my pipelines config, whitout to pull it from...
Niko Nik
1

votes
0

answer
57

Views

Test that works on local machine not working on pipelines

So I wrote a test that I want to run and have tested it and it works perfectly on my local machine. I then moved it to the pipeline in bitbucket and I get the following terminal output from my makefile g++ -g -c run_test.cpp g++ -g run_test.cpp -o rund g++ -c -o run_magento_test.o run_magento_te...
1

votes
0

answer
136

Views

Send * .apk by email. Bitbucket pipelines

How to send android apk to email? Bitbucket pipelines. I'm doing bitbucket-pipelines.yml using slack. - curl -F [email protected]'./app/build/outputs/apk/debug/app-debug.apk' -F channels=${SLACK_CHANNEL} -F token=${SLACK_TOKEN} https://slack.com/api/files.upload
nuqss
1

votes
1

answer
194

Views

How to setup Postgres database schema for python Bitbucket Pipeline

I am trying to integrate bitbucket pipeline with my python package that use Postgres database. To achieve this I am using Postgres service but I am not able to find any way in bitbucket-pipelines.yml to populate database schema. Below is my bitbucket-pipeline.yml and now I am getting error 'bash: ps...
Umair Khan
1

votes
1

answer
111

Views

How to create two pipelines in bitbucket?

I have two applications in Heroku. One is staging and another is production. Currently in my BitBucket, the master branch will be deployed to the production server in Heroku. I would like my staging branch to be deployed to the staging server in Heroku. This is my bitbucket-pipelines.yml for produc...
kylas
1

votes
0

answer
75

Views

deploy zip file to ftp with pipelines

I'm using webpack to create a /build folder of my project. The whole project is saved in a bitbucket repo. I can't figure out how to make bitbucket pipelines upload ONLY the .zip file in the /build folder to FTP server? Currently, pipelines save the whole project as .zip and deploys this to the FTP,...
Rasmus Hye
1

votes
0

answer
67

Views

Dynamic or Common bitbucket-pipeline.yml file

I am trying to setup the automated deployment through Bitbucket pipeline , but still not succeed might be my business requirement is not fulfill by the Bitbucekt pipeline. Current Setup : Dev Team push the code to default branch from their local machines. and as Team lead reviews their code and upda...
shahid
1

votes
0

answer
45

Views

Potential pitfalls of Git --force and modified index for integrating Jekyll and Heroku w/ a Bitbucket pipeline?

Task: I want to use a Bitbucket pipeline to deploy a Jekyll site to Heroku without adding the _site folder generated by local Jekyll builds. Possible Solution: Below are my pipeline commands for building a Jekyll _site folder in the Docker container, modifying the git index, and pushing to Heroku. T...
1

votes
2

answer
361

Views

Is there any way to use dotenv with Bitbucket Pipelines?

As the title says, is there any way to use dotenv with Bitbucket Pipelines for CI purposes, while still adding the (perhaps multiple) (.stage).env to .gitignore? I know Pipeline supports environment variables, and that they can be referenced in bitbucket-pipelines.yml, but I can't figure out how to...
jhm
1

votes
0

answer
83

Views

Bitbucket Pipelines .NET Core Test Output

Has any one been able to get test results working with Bitbucket Pipelines. Found a few articles on this, essentially the problem seems to be the inability of the dotnet test runner to output test results into XML format. I'm able to get so far as to output a TRX file as per this answer, but Bitbuck...
Chris
1

votes
0

answer
122

Views

git-ftp with Bitbucket Pipelines doesn't upload any files - “No changed files, Everything up-to-date”

I am trying to build a JavaScript app using webpack and upload the bundle via ftp as one of the steps in Bitbucket Pipelines. Webpack places my code into dist/, and this folder is added into .gitignore. Here is my .git-ftp-ignore: .gitignore bitbucket-pipelines.yml git-ftp-include.js package.json A...
K48
1

votes
2

answer
155

Views

Can't fetch from same repository in Bitbucket Pipelines

I'm trying to do the following with Bitbucket Pipelines when i push to my test brand: - git fetch - git checkout master - git pull origin test - git push origin master But i get the following message on git fetch: Permission denied (publickey). I was following this tutorial https://confluence.atlass...
Ruben Gonzalez
1

votes
1

answer
23

Views

Is it possible to trigger different task for different changed files in bitbucket pipeline?

For example. My repo contains a three folders: 'project1' 'project2' and 'core'. When I change a files under 'core' folder I want trigger 'npm run test Project1' and 'npm run test project2'. If I changed the 'project1' files I want test only 'project 1'. If I changed the 'poject2' - I want test only...
Andrey Tsarenko
1

votes
1

answer
160

Views

Handling ssh/https auth with bitbucket repositories used as a module source

I am trying to consume a Terraform module that I've got in a dedicated private modules repository in BitBucket. I have an app repository in BitBucket that has Terraform templates in there that consumes a module in the modules repository. When I check in changes to the app repository it fires off Bit...
Johnathon Sullinger
1

votes
0

answer
75

Views

jest-puppeteer on bitbucket / no exit, stuck on success

Running jest-puppeteer with the following express config : import express from 'express'; import path from 'path'; import webpack from 'webpack'; import config from '../webpack.config'; const port = 3200; const app = express(); const compiler = webpack(config); app.use(require('webpack-dev-middlewar...
Ben
1

votes
0

answer
60

Views

Using git submodules via bitbucket pipelines

So I have a versioning script that I wanted to share across several of my repos. I decided to use submodules for this purpose–maybe not the brightest idea... I am trying to call the versioning script from BB pipelines in this way: image: python:3.6 pipelines: default: - step: name: Development bu...
Ludo
1

votes
0

answer
165

Views

Could not resolve dependencies in maven on a Bitbucket pipeline

I'm getting the following error when a Bitbucket Pipeline is triggered: [ERROR] Failed to execute goal on project gym: Could not resolve dependencies for project groupId:artifact:jar:4.14.0: Failed to collect dependencies at net.sf.jasperreports:jasperreports:jar:6.2.1 -> com.google.zxing:core:jar:...
ilopezluna
1

votes
0

answer
52

Views

rm -rf inside container via Bitbucket pipeline

we use bitbucket pipelines for our CD to Google cloud. Among others, we build an apache image. Inside it's dockefile we have a step to remove default apache's vhosts: RUN rm -rf /etc/apache2/sites-available/* This worked fine until a few days ago. Now the rm stopped working and after searching we fo...
Tania Petsouka
1

votes
0

answer
51

Views

BitBucket pipeline breaks when new dependency is added to package.lock

Since there is already a saved cache for node_modules when the Pipeline is run, it does not make the npm install so new dependencies are not installed. Because of this, while the Pipeline is still running, it suddenly breaks as project does not find the corresponding package. pipelines: custom: dep...
atopetek
1

votes
1

answer
137

Views

How to configure CI/CD Pipeline from BitBucket to Google Cloud?

We have a NodeJS application which we have deployed on Google Cloud App Engine. The source code is in Bitbucket. What is the best way to configure CI/Cd deployment? We want to deploy code from bitbucket to Google Cloud App Engine as code commit after performing test cases. We want to know what to pu...
Piyush Bansal
1

votes
0

answer
18

Views

how to run pipelines for CI/CD for a specific branch (dev)

I am using the below-mentioned code as my 'bitbucket-pipeline.yml' file image: node:6.9.4 pipelines: branches: dev: - step: script: - npm install At the time of committing the code and pushing to my dev branch, it's not getting triggered to my Pipeline dashboard.
Akshay Gupta
1

votes
1

answer
155

Views

Bitbucket pipeline to build dist and push build with git to deploy

I'm trying to build my React app in a Bitbucket pipeline, and then deploy it using a git push to my production server. This works fine when I put everything in one step, like so: image: node clone: depth: full pipelines: default: - step: name: Build app caches: - node script: - yarn - yarn build - g...
idix
1

votes
1

answer
138

Views

How to install NPM application (inside Docker container) that was separated to Git Submodule

I am facing the problem that i can't beat for about a week. So here is the thing Basic description We have Yii2 application based on Basic Yii2 application template. It's main app. Our repository is hosted on Bitbucket. Also we have Vue.js application that was installed using NPM and that is built u...
MihaOo
1

votes
0

answer
271

Views

Deploy from bitbucket pipelines to server through SSH with ProxyCommand and Gateway

I have a deployment process perfectly working with my computer which i'd like to use in bitbucket pipelines. The SSH Config file defines the connection : Host my-host User my-user Hostname my-host-name IdentityFile ~/.ssh/id_rsa ProxyCommand ssh -v -i ~/.ssh/id_rsa -W %h:%p [email protected] My...
BastienSander
1

votes
0

answer
190

Views

Bitbucket Pipeline, Artifacts between steps

I am trying to use the following pipeline in bitbucket to deploy to gcloud. The rest of the pipeline is missing but I know that works. The issue is when I get to step two the compiled CSS files are no longer existing. It appears to match what bitbucket suggest for using artifacts. I tried the follow...
Robert Estes

View additional questions