bitbucket-cloud

Bitbucket cloud webhook Does not trigger Jenkins Build: No branch information

守給你的承諾、 提交于 2020-02-25 04:13:47
问题 I am trying to integrate Bitbucket cloud with Jenkins. I have Bitbucket plugin installed in Jenkins. I have configured the webhook in bitbucket cloud for the repository with url http://<jenkins_url>/bitbucket-hook/ I set up Jenkins job (I tried both pipeline and multibranch pipeline). In the Pipeline I have selected "Build when a change is pushed to BitBucket" and In the pipeline I have stages to fetch from bitbucket and build. I have specified to get from branch develop. case 1: After I set

Can “if” statements be used in bitbucket pipelines?

痞子三分冷 提交于 2019-12-10 13:04:27
问题 Im trying to run the following step, but it does not execute the "if" steps (lines 5 and 6) (I'm pretty sure they should as the directory tested for does not exist, i tried in multiple formats of bash if, but all of them fails. Is there a way to test for a condition than the one I'm using? - step: name: Google Cloud SDK Installation caches: - pip - cloudsdk script: - export ENV=dev - source scripts/setenv.sh - export CLOUDSDK_CORE_DISABLE_PROMPTS=1 - SDK_FILENAME=google-cloud-sdk-$SDK_VERSION