bitbucket-pipelines

Push a folder from Bitbucket repo to public server using Pipelines

和自甴很熟 提交于 2019-12-04 12:52:27
问题 I have pipelines enabled in my Bitbucket repository and I need to run Angular 2 build and deploy the dist folder (which gets created after the build command is executed) in my server after every build. I have following in my bitbucket-pipelines.yml file: image: node:4.6.0 pipelines: default: - step: script: # Modify the commands below to build your repository. - npm install - npm run build:prod I found this code snippet on the Internet: - apt-get update - apt-get -qq install git-ftp - git ftp

Bitbucket Pipelines - mvn clean install not working with JavaFX

拟墨画扇 提交于 2019-12-04 07:49:26
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/build/EasyDiet_JavaFX_View/src/at/fhv/easyDiet/teamC/presentation/patientFile/PatientFileController.java

Bitbucket Pipelines - multiple branches with same steps

和自甴很熟 提交于 2019-12-03 11:00:53
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' A comma-separated list inside braces appears to work: pipelines: branches: '{rev,staging}': - step: script: - echo 'step'

Push a folder from Bitbucket repo to public server using Pipelines

左心房为你撑大大i 提交于 2019-12-03 08:58:48
I have pipelines enabled in my Bitbucket repository and I need to run Angular 2 build and deploy the dist folder (which gets created after the build command is executed) in my server after every build. I have following in my bitbucket-pipelines.yml file: image: node:4.6.0 pipelines: default: - step: script: # Modify the commands below to build your repository. - npm install - npm run build:prod I found this code snippet on the Internet: - apt-get update - apt-get -qq install git-ftp - git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://123.456.789.123/timount/angular_app I use a pem

SSH into staging machine from docker instance using Bitbucket Pipelines

拈花ヽ惹草 提交于 2019-12-03 03:12:13
Using the new Bitbucket Pipelines feature, how can I SSH into my staging box from the docker container it spins up? The last step in my pipeline is an .sh file that deploys the necessary code on staging, however because my staging box uses public key authentication and doesn't know about the docker container, the SSH connection is being denied. Anyway of getting around this without using password authentication over SSH (which is causing me issues as well by constantly choosing to authenticate over public key instead.)? Matt Bitbucket pipelines can use a Docker image you've created, that has

Android CI using Bitbucket Pipelines and Docker

。_饼干妹妹 提交于 2019-12-02 20:18:28
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 which isn't included in the container - ./gradlew assembleDebug Some changes are needed since uber

How to pass crumb info via bitbucket-hook to jenkins?

℡╲_俬逩灬. 提交于 2019-12-02 18:19:21
问题 curl -X POST http://xxx.yyy.zzz:5555/job/job-name/build --user john-devops-jenkins:11df3ed41129c5c7da1518e9c3149896de -H 'Jenkins-Crumb:31827a74a160347a641c87ddbc8e3b6e' The above curl code with a post request is absolutely working fine in triggering the Jenkins build. Tried: http://xxx.yyy.zzz:5555/bitbucket-hook?token=auth_token&crumb=xyz_crumb http://xxx.yyy.zzz:5555/job/job-name/build?token=auth_token&crumb=xyz_crumb Error: No valid crumb was included in the request No luck still, How to

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

谁都会走 提交于 2019-12-02 13:02:15
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 webhook plugin and checking 'Events' - Push, Comment Added. Now assuming you can trigger Jenkins job

Kubernetes set image missing resource type 'deployment'

ⅰ亾dé卋堺 提交于 2019-12-02 05:29:44
问题 I'm trying to update an image in Kubernetes by using the following command: kubectl set image deployment/ms-userservice ms-userservice=$DOCKER_REGISTRY_NAME/$BITBUCKET_REPO_SLUG:$BITBUCKET_COMMIT --insecure-skip-tls-verify But when I receive the following error: error: the server doesn't have a resource type "deployment" I have checked that i am in the right namespace, and that the pod with the name exists and is running. I can't find any meaningful resources in regards to this error.

Kubernetes set image missing resource type 'deployment'

萝らか妹 提交于 2019-12-02 05:27:27
I'm trying to update an image in Kubernetes by using the following command: kubectl set image deployment/ms-userservice ms-userservice=$DOCKER_REGISTRY_NAME/$BITBUCKET_REPO_SLUG:$BITBUCKET_COMMIT --insecure-skip-tls-verify But when I receive the following error: error: the server doesn't have a resource type "deployment" I have checked that i am in the right namespace, and that the pod with the name exists and is running. I can't find any meaningful resources in regards to this error. Sidenote: I'm doing this through Bitbucket and a pipeline, which also builds the image i want to use. Any