bitbucket-pipelines

Bitbucket webhook trigger after pipeline completes successfully

随声附和 提交于 2021-02-18 12:33:30
问题 I'd like to trigger a webhook after a pipeline completes successfully, I looked in the trigger list and didn't find any, is there a workaround to trigger webhook manually via pipeliens? 回答1: You can use the Build status updated trigger to trigger a webhook based on a pipelines build. However, this will also be triggered by the INPROGRESS or FAILED state, and there is no possibility to specify a pipeline. If you only want to trigger a webhook from when a specific pipeline completes succesfully

Bitbucket Pipelines - No Application Version named found

余生颓废 提交于 2021-02-11 14:53:29
问题 I'm trying to deploy django project to elasticbeanstalk using bitbucket pipelines. Here's my config image: python:3.7.2 pipelines: branches: master: - step: script: - pipe: atlassian/aws-elasticbeanstalk-deploy:0.2.5 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION APPLICATION_NAME: $APPLICATION_NAME COMMAND: $COMMAND ENVIRONMENT_NAME: $ENVIRONMENT_NAME VERSION_LABEL: ${ENVIRONMENT_NAME}_${BITBUCKET_COMMIT:0

Pipelines and git-ftp dirt repository error

一世执手 提交于 2021-01-28 09:22:19
问题 I am trying to use Pipelines with git-ftp to push files to my remote server. Error message: fatal: Dirty repository: Having uncommitted changes. Exiting... YML file: image: php:7.1.1 pipelines: default: - step: caches: - composer script: - apt-get update && apt-get install -y unzip - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer - composer install - apt-get -qq install git-ftp - git ftp init --user USER --passwd PASSWORD ftp://user

Bitbucket Pipelines - How to use the same Docker container for multiple steps?

穿精又带淫゛_ 提交于 2021-01-26 09:28:59
问题 I have set up Continuous Deployment for my web application using the configuration below ( bitbucket-pipelines.yml ). pipelines: branches: master: - step: name: Deploy to production trigger: manual deployment: production caches: - node script: # Install dependencies - yarn install - yarn global add gulp-cli # Run tests - yarn test:unit - yarn test:integration # Build app - yarn run build # Deploy to production - yarn run deploy Although this works, I would like to increase the build speed by

codecov.io gives error in combination with Bitbucket pipelines

浪尽此生 提交于 2021-01-03 06:36:17
问题 I did set up a private repo on Bitbucket to host a PHP project. For this project I also use the pipelines integration. This is the content of my pipelines yaml file: image: php:7.1.4 pipelines: default: - step: script: - ./install_xdebug.sh - ./install_mailhog.sh - ./install_composer.sh - composer install - vendor/bin/phpunit --coverage-clover=coverage.xml - if [ $? -eq 0 ]; then bash <(curl -s https://codecov.io/bash); fi I'm able to generate a code coverage file with Xdebug: Generating code

Make variable visible across steps in Bitbucket pipelines?

喜夏-厌秋 提交于 2020-12-29 02:46:47
问题 I would like to share a variable across two steps. I define it like: - export MY_VAR="FOO-$BITBUCKET_BUILD_NUMBER" but then when I try to print it in other step: - echo $MY_VAR it's empty. How I can share such variable? 回答1: I'm afraid, but it seems impossible to share environment variable from one step to another, BUT you can define global environment variables for all steps in the settings of the project under pipelines category. Settings -> Pipelines -> Repository Variables 回答2: For some

Embedded container tests Spring Boot fail on bitbucket pipeline

半世苍凉 提交于 2020-12-15 05:16:42
问题 Running Playtika embedded postgres container cause bitbucket pipeline to fail with com.github.dockerjava.api.exception.DockerException: Status 403: {"message":"authorization denied by plugin pipelines: Invalid content length provided"} The full stacktrace is on the zip file test.zip I'm kinda new on create these pipelines, I don't know what to do exactly. I tried to do a lot of things that I've found, like this https://github.com/testcontainers/testcontainers-java/issues/3296 And some others

Embedded container tests Spring Boot fail on bitbucket pipeline

こ雲淡風輕ζ 提交于 2020-12-15 05:15:50
问题 Running Playtika embedded postgres container cause bitbucket pipeline to fail with com.github.dockerjava.api.exception.DockerException: Status 403: {"message":"authorization denied by plugin pipelines: Invalid content length provided"} The full stacktrace is on the zip file test.zip I'm kinda new on create these pipelines, I don't know what to do exactly. I tried to do a lot of things that I've found, like this https://github.com/testcontainers/testcontainers-java/issues/3296 And some others

How to use VPN with Bitbucket Pipelines

霸气de小男生 提交于 2020-11-30 06:07:30
问题 I need to access a remote server from Bitbucket Pipelines. This remote server is available only to a specific host which has its IP address whitelisted. Here is what I want: Pipelines <---> The gateway host <---> The remote server I was trying to use sshutle to setup an ssh-based VPN to forward all network traffic via the gateway host, but it looks like Pipelines don't allow containers to run VPN (see issue #12753). What can I do to access the remote server? 回答1: There is a solution if

Run pipeline only on changes in one dir

烂漫一生 提交于 2020-08-27 21:33:42
问题 So I've got a project with some structure. And whenever I push changes to any file pipeline is run. But I want it to run only when there are changes in particular directory. Is it even possible? 回答1: This may help you: Determine If Any File Changed In Directory For Latest Git Commit that way if there are no changes in your directory you could finish the build early. 回答2: The JIRA issue that refers to this situation was recently updated with the following solution that can be straightforward