bitbucket-pipelines

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

|▌冷眼眸甩不掉的悲伤 提交于 2020-08-20 18:08:27
问题 I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my changes and push to BitBucket repo I log into my server using Terminal: ssh root@ipaddress I cd to the correct directory: cd /var/www/html/app/ I then pull from my BitBucket repo: git pull origin master I then run some commands: composer install ,

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

情到浓时终转凉″ 提交于 2020-08-20 18:07:34
问题 I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my changes and push to BitBucket repo I log into my server using Terminal: ssh root@ipaddress I cd to the correct directory: cd /var/www/html/app/ I then pull from my BitBucket repo: git pull origin master I then run some commands: composer install ,

Using BitBucket Pipelines to Deploy onto VPS via SSH Access

旧时模样 提交于 2020-08-20 18:05:32
问题 I have been trying to wrap my head around how to utilise BitBucket's Pipelines to auto-deploy my (Laravel) application onto a Vultr Server instance. I have the following steps I do manually, which I am trying to replicate autonomously: I commit my changes and push to BitBucket repo I log into my server using Terminal: ssh root@ipaddress I cd to the correct directory: cd /var/www/html/app/ I then pull from my BitBucket repo: git pull origin master I then run some commands: composer install ,

Memory quota exceeded after angular bitbucket heroku deployment

被刻印的时光 ゝ 提交于 2020-06-01 06:44:05
问题 I am trying to make a Bitbucket pipeline which will deploy the app to the Heroku. It deploys but on Heroku I am getting 2019-04-01T19:47:11.305401+00:00 app[web.1]: [34mℹ[39m [90m「wdm」[39m: Compiled successfully. 2019-04-01T19:47:18.311170+00:00 heroku[web.1]: Process running mem=571M(111.6%) 2019-04-01T19:47:18.311170+00:00 heroku[web.1]: Error R14 (Memory quota exceeded) 2019-04-01T19:47:40.049088+00:00 heroku[web.1]: Process running mem=558M(109.0%) 2019-04-01T19:47:40.049160+00:00 heroku

Testcontainer issue with Bitbucket pipelines

三世轮回 提交于 2020-06-01 05:25:46
问题 I configured bitbucket-pipelines.yml and used image: gradle:6.3.0-jdk11 . My project built on Java11 and Gradle 6.3. Everything was Ok till starting test cases. Because I used Testontainers to test the application. Bitbucket could not start up the Testcontainer. The error is: org.testcontainers.containers.ContainerLaunchException: Container startup failed How can be fixed the issue? 回答1: If used Testcontainers inside the Bitbucket pipelines, There might be some issues. For instance, some

Getting fatal: Dirty repository: Having uncommitted changes. Exiting… in Pipelines with git ftp push

微笑、不失礼 提交于 2020-05-30 03:19:31
问题 I have a Pipelines setup with automatic processing/building of CSS files. Some of the time I get this error when doing git ftp push : fatal: Dirty repository: Having uncommitted changes. Exiting... bitbucket-pipelines.yml image: php:7.2.7 pipelines: branches: staging: - step: name: Deploy to staging deployment: staging script: - curl -sL https://deb.nodesource.com/setup_8.x | bash - - apt-get install -y nodejs - npm install - npm run build-css - apt-get update - apt-get -qq install git-ftp -

How to save artifacts in Bitbucket-Pipelines

爱⌒轻易说出口 提交于 2020-02-27 06:24:06
问题 I am new to bamboo. What I try to do is collecting all .dacpac files that are created during the build process. image: microsoft/dotnet:latest pipelines: default: - step: script: # Modify the commands below to build your repository. - cd BackgroundCode - dotnet restore - dotnet run artifacts: - '../**/*.dacpac' The directory structure would be 'agent/build/Projects/[Projectname]/[Projectname].dacpac'. The output of the pipeline says Successfully generated zip archive /opt/atlassian/pipelines

How to build dependent projects using Bit Bucket pipeline

荒凉一梦 提交于 2020-01-16 10:30:17
问题 I am trying to get my build working with pipeline using maven . I have two bit bucket repositories for two maven projects. repository1 -> project1 repository2 -> project2. project2 has dependency on project1. Now I dont have problem in building project1 as it doesn't has dependency on any projects. But when I try to build project2 using pipeline build is failing because maven is not finding the project1 artifact. I got to know that every pipeline runs within a docker image. So my guess is

npm command is not found when ssh with bitbucket pipelines on shared hosting

白昼怎懂夜的黑 提交于 2020-01-05 04:56:09
问题 I've installed nodejs as described here. Everything works fine when I ssh to the server myself. But I've created a script that deploys my application and call it via bitbucket pipelines. Everything else works fine ( composer install , php artisan migrate etc.), except npm install . The error message is ./deploy: line 26: npm: command not found In bitbucket-pipelines.yml I call my script like this: - step: script: - ssh user@ip_address ./deploy When I call the script by myself everything works

How to get gradle to output dependency hash for each dependency

橙三吉。 提交于 2019-12-23 19:50:41
问题 I am seeing, for the first time in my life, a situation where gradle compileJava check runs fine locally but when I try to run the same commands with bitbucket pipelines I get NoSuchClassDefError I do gradle user-login-server:dependencies locally and on pipelines and the versions for the artifacts I suspect are identical So the only explanation I can come up with is that the actual artifacts are different. Hence: How can I force gradle to output the hash of every dependency so I can trackdown