Comments
-
Hi @DmytroS, Sure! I've opened a ticket you can follow: https://bitbucket.org/site/master/issues/15508/allow-mounting-subdirectories-of Thanks, Phil
-
We now display the successful tests too. But don't generate a full report. Is there anything specific you'd want to see in a larger report for a 100% tests passing?
-
Hi @DmytroS, I had a quick chat with my teammates. Right now you can *only* mount the $BITBUCKET_CLONE_DIR. None of the subdirectories. So instead you will need to run something like this: - docker run -name mysql -v="$BITBUCKET_CLONE_DIR:/app" -d -p 3327:3306 mysql:5.7.18 Let me know if that works. I've opened an internal…
-
Hi Sandeep, You can follow this guide to deploy to your Swarm cluster: https://docs.docker.com/swarm/swarm_at_scale/deploy-app/ You will also need to update the DOCKER_CERT_PATH to point at the API keys of your Swarm cluster, mentioned here: https://docs.docker.com/engine/reference/commandline/cli/#description I don't have…
-
Hi Sandeep, I'm not fully sure what Geoff had in mind as a workaround here. He's on leave until next week so I can't ask him until then. As far as I know this isn't possible as Swarm commands aren't available at the moment. But, I'll check with Geoff when he's back. Thanks, Phil
-
Is the generation of the tool done in the docker container? Or in your regular build container? If it's the build container you should be good. Docker container then not so good. As far as I know there's no immediate plans to remove the current restrictions. I'll raise this with the PMs, just so they know about the…
-
Can you verify that the: "<span>/packer-tmp/packer-docker516303980" </span>directory exists before you execute the docker run command. See my other answer below for details on this if the directory does not exist.
-
Hello, Does the "test-results" directory already exist when you use the "docker run" command? Docker run is unable to create directories in Bitbucket Pipelines as that requires some escalated privileges we cannot expose for security purposes. (Whereas locally it is able to do so without much hassle.) To resolve this, you…
-
Can you add some more information about your project? What languages/frameworks are you using? How do you run your Selenium tests locally? Is this any specific point that it's problematic to set up Selenium tests in Bitbucket Pipelines?
-
Alternatively, you might need to use artifacts: - projectname/target/**
-
Hi Pravin, Can you try replace: artifacts: - $BITBUCKET_CLONE_DIR/projectname/target/project.war With artifacts: - projectname/target/project.war The artifacts are assumed to already be under the $BITBUCKET_CLONE_DIR. So, you including that is probably resulting is some weird behaviour causing your artifacts to not…
-
Hi Al, Bitbucket Pipelines allows for configuring pipelines based on tags being pushed, rather than commits. See here for documentation: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html#Configurebitbucket-pipelines.yml-ci_tags The $BITBUCKET_TAG variable will only be populated on…
-
Hi Patrick, I have two possible solutions for you here. -------------- First option. If you want to replicate what you are doing on your own machine, you will need to clone the common package into your pipeline as well. As we will only clone the main java application repository. You'll need to set up access keys and ssh…
-
Hi Mykhailo, It appears that your connection to the maven repository timed out, causing your build to fail. This could be for a number of factors. Rerunning your pipeline should be sufficient to resolve this though. If this continues to be a persistent problem, you can look into increasing your timeout for retrieving…
-
Hi Andres, Sorry for the inconvenience. Are you still encountering a problem with this? Do you see any errors in the console of your browser? Here's guides on how to open it. You don't need to investigate too much, the text should be an obvious red error if there is a problem. * Chrome:…
-
Hi Robert, At the moment an artifact can only be defined on a step, as shown here: https://confluence.atlassian.com/bitbucket/using-artifacts-in-steps-935389074.html It's worth noting that artifacts that are created in a step are available to *all* the following steps in a pipeline. So you only need to define each artifact…
-
Hello Brendan, We'll be looking into ways to solve this problem natively in Pipelines later this year. I suggest you following this ticket for updates: https://bitbucket.org/site/master/issues/12821/limit-concurrent-pipelines-so-deployment In the meantime, if you need this functionality now, you can use the Bitbucket…
-
Awesome! :)
-
How are you verifying the contents of the file? If you're running "$ cat .env" (or something similar) within Pipelines, then we will be masking the variable when it is printing from the file. But it should still be in the file as the correct value. I've tested out a similar example here:…
-
Can you explain more on the problem you're having with the secured variables? Are you getting an error when you write it into the file? Thanks, Phil
-
Hi Dean, If you'd like to use environment variables for your ECR image you need to change your YAML to look like this: image: name: <imagename> aws: access-key: $AWS_ACCESS_KEY_ID secret-key: $AWS_SECRET_ACCESS_KEY pipelines: default: - step: script: - echo 'Hello world' ... Specifically removing the curly braces around…
-
Hi Jorge, The repo:commit_status_updated event should have a refname field within the commit_status object. This will be the name of the branch that triggered the pipeline (if it was triggered by a branch commit. Pipelines can also be triggered by tags, and manually). Do you see this field in the webhooks you have…
-
Hi Pete, Which pom.xml file is in the base of your repo? Since your pipelines will be executing in that directory (by default) it may be missing settings that you have defined in other pom.xml files. Have you also tried running your build locally inside of a Docker…
-
Hi Ankit, You're on the right track! All that's really left for you to figure is to find the directories which contain the files you wish to cache. Then you can create another cache in your definitions section. definitions: caches: cache1: ~/path1 cache2: ~/path2 You can find more information…
-
Excellent! Glad to hear you resolved things. :)
-
Excellent! I'll open an internal issue for adding the validation logic. And I'll bring up the empty variable use-case with our PMs. Glad to see you got things working. :)
-
Hello, The issue is that you have an empty string for the value of the MYSQL_ROOT_PASSWORD. Pipelines fails to parse this as it is a string with no content. An alternate way of setting the MYSQL_ROOT_PASSWORD variable to an empty string is to set MYSQL_ROOT_PASSWORD="\0". Thanks, Phil
-
Hello, Is this still an issue for you? Can you add some more details about the errors you're seeing inside the logs of Bitbucket Pipelines and Salesforce. Thanks, Phil
-
Hello, Is your internal pip server somehow accessible via the public internet? Here's how you can add a private git repository as a dependency. Maybe this can get your started on the right track? https://stackoverflow.com/questions/4830856/is-it-possible-to-use-pip-to-install-a-package-from-a-private-github-repository…