Is it possible in Bitbucket to have a build status for testing pull, commit, etc. teams? How can I integrate this into the repository?
- Ask the question, what do you want to do? Build the project on the server and the gita commands - how are they connected? - Mira
- It is necessary so that in Bitbucket you can see the build status. - Narine Grigoryan
- Is it important for you that the repository be on the beatback? - Nick Volynkin ♦
- She is already there)) - Narine Grigoryan
2 answers
In bitbucket, you can collect projects and run tests using the plug-in bitbucket pipelines . Now this plugin is in beta testing, so it requires an "invite". on the project’s https://bitbucket.org/product/features/pipelines project just leave a request. Get an invite to the mail. I have not heard that they refused to someone. I received an answer in less than a day.
setting is simple
At the root of the project, drop the build script of bitbucket-pipelines.yml , which works out for each push.
For example:
# You can use a Docker image from Docker Hub or your own container # registry for your build environment. image: maven:3.3.3 pipelines: default: - step: script: # Modify the commands below to build your repository. - mvn --version - mvn clean install - mvn test Also, it is possible to customize certain scripts to specific branches.
- And where is the build performed? Does the bitbucket provide its resources or will it need to configure and provide its runners to it? - Nick Volynkin ♦
- @NickVolynkin You don't need anything other than your build script. On push, pipelines raises the docker and starts the build in it. And judging by the launch command docker run -t --entpoint = / bin / bash --memory = 2048m gives 2 GB generously. (maybe I'm lying, I am not familiar with the docker) - cache
BitBack is a remote git server, repository repository. It has no project build function. To build projects, you need a build-server, which in turn can be integrated with the beatback.
- And examples of these build-server-s can you say, is it about jenkins or something like jenkins? - Narine Grigoryan
- Yes, Jenkins, Hudson, TeamCity - then you can google-choose more. Lots of them :) - Mira
- We tried to implement it with jenkins, and the test shows succes, but in why the bitbucket does not show Builds, as in this photo (added). - Narine Grigoryan
- The @NarineGrigoryan build icon is a bitback function and someone has to tell him that the build has passed. wiki.jenkins-ci.org/display/JENKINS/… - etki
- @ Yoki this is already clear, jenkins works for me, but as shown in the photo, I don’t see these icons in my bitbucket. Why, what else needs to be added? - Narine Grigoryan


