bitbucket-pipelines

Can I access Bitbucket Pipelines environment variables from my source code?

狂风中的少年 提交于 2019-12-23 17:37:01
问题 I have my sensitive data as environment variables in Bitbucket Pipelines, e.g. database credentials. Is there a way I can access these environment variables from my source code? I do not want to push these sensitive data to my repository. 回答1: Bitbucket Pipelines environment variables are just regular environment variables. You can access them however you normally would; this depends on the programming language you are using. For example, in Python you can use os.getenv(), which lets you

Bitbucket Pipelines - mvn clean install not working with JavaFX

六眼飞鱼酱① 提交于 2019-12-21 17:04:16
问题 I am using Bitbucket Pipelines for building a project from our university. Here is my configuration from bitbucket-pipelines.yml: image: maven:3.3.9-jdk-8 pipelines: default: - step: script: # Modify the commands below to build your repository. - mvn -f EasyDiet_JavaFX_View/pom.xml clean install And here is some of the compilation error -> relates to JavaFX: ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /opt/atlassian/pipelines/agent

Can't see .Net Core bitbucket pipelines test results

假装没事ソ 提交于 2019-12-21 05:45:31
问题 I finally managed to make reports of my tests in bitbucket pipeline by this command: - dotnet test MyTests --logger "trx;LogFileName=test-reports/results.xml" Build Teardown says: Found matching test report file MyPath/test-reports/results.xml Finished scanning for test reports. Found 1 test report files. Merged test suites, total number tests is 0, with 0 failures and 0 errors. However, I can't see these test results file in bitbucket. I know that there should be a new tab in pipeline window

Bitbucket Pipelines - multiple branches with same steps

血红的双手。 提交于 2019-12-20 17:26:13
问题 Is it possible to combine multiple branches that have the same steps within bitbucket pipelines? ex: The teams I work on use one of two names for their review branches, either "rev" or "staging". Either way the same steps are used to publish to our review server. Right now the branches are called out separately. pipelines: branches: rev: steps: - echo 'step' staging: steps: - echo 'step' but could it be something like pipelines: branches: rev|staging: steps: - echo 'step' 回答1: A comma

Android CI using Bitbucket Pipelines and Docker

☆樱花仙子☆ 提交于 2019-12-20 09:35:40
问题 I am trying to set up Continuous Integration (CI) in Bitbucket Pipelines for Android. I have created a sample blank activity using Android Studio 2.1.1. With Pipelines I'm using the uber/android-build-environment Docker container which creates the environment nicely. Here is my bitbucket-pipelines.yml image: uber/android-build-environment:latest pipelines: default: - step: script: - echo y | android update sdk --filter "extra-android-m2repository" --no-ui -a # Grab the Android Support Repo

GIT SCM configuration for bitbucket pull requests checkout using generic Webhook parameters

拈花ヽ惹草 提交于 2019-12-20 07:46:43
问题 This stackoverflow page can help you checkout bitbucket pull requests in Jenkins with Generic webhook trigger. Pre-requisites: Jenkins: 1) Installing Generic Webhook Trigger Plugin and Bitbucket plugin in Jenkins 2) Configuring 'Bitbucket Endpoints' in Jenkins configuration. 3) Creating sample 'Pipeline' job in Jenkins (can configure Generic webhook plugin / configure bitbucket repo / include custom Jenkins file path) Bitbucket: 4) Configuring Webhook in bitbucket repo to connect to Jenkins

Unable to enable Bitbucket pipelines

空扰寡人 提交于 2019-12-13 07:37:59
问题 I'm trying to enable Bitbucket pipelines in a private repository. I go to "Pipelines" tag in the left menu, and then click on "Enable Pipelines" button. Then, a "wait for it" spin icon appears in the middle of the screen.... and nothing more happen. I tried uploading a bitbucket-pipelines.yml file with some apparently correct content, but nothing changed on the Pipelines page. I tried with Chrome and Firefox. Is it a common issue? 回答1: Have not seen that. Even free accounts should have

How to ftp php code including vendor folder using bitbucket pipeline

一世执手 提交于 2019-12-13 03:43:52
问题 I have php project in bitbucket. I am able to install composer and generate vendor folder using pipeline. Currently, there are no unit test cases. Hence, no script added to execute test cases. Further, I need to ftp files and vendor folder both to my server. Below is current bitbucket-pipeline.xml image: php:7.2.0 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

How to increase NodeJS heap (--max-old-space-size) in Bitbucket Pipelines for Typescript/Webpack?

故事扮演 提交于 2019-12-12 20:45:49
问题 I am running into memory issues during the webpack packaging step in a serverless/TypeScript project. I have tried: 'increase-memory-limit' npm package to no avail Calling the following command from an npm run script Calling the following command directly through bitbucket-pipelines.yml. node --max-old-space-size=4096 ./node_modules/.bin/serverless deploy It works fine locally with this command, but in Bitbucket pipelines I get the following output: Serverless: Bundling with Webpack...

Building JavaFx application using Bitbucket pipelines

和自甴很熟 提交于 2019-12-11 15:37:48
问题 I am trying to build JavaFx project using bitbucket pipelines. For that I am using maven:3-jdk-8 docker image. This Docker image uses OpenJDK 8 instead of Oracle's one (due to the lincensing issue) which does not include the JavaFx part. Note that I have to use Java 8 to build my project! Problem that I am getting is that I am not able to build the application using that docker image alone. As proposed in an answer to the same question (https://stackoverflow.com/a/40167253/2000338): I tried