The default Git username and user email address on our Stacks are the following:
git config --global user.email "email@example.com" git config --global user.name "J. Doe (https://devcenter.bitrise.io/builds/setting-your-git-credentials-on-build-machines/)"
If you want to push back (
git push) any commits to your own repo from Bitrise while running your build, you have to set your own username and the email address. There are two ways to achieve this:
- You can use a custom Script Step to set your credentials with the
- You can use the Set Git Credentials Step.
Let’s go through the latter option in detail:
- Add a Set Git Credentials Step as the very first step in your workflow. The Step has to come first before you’d
git commit. This way you can make sure any changes you make to the current build will be attached to a commit associated with your username and email address.
- In the Git Username field, set the value to your own user name.
- In the Git Email Address field, set the value to your own email address.
- Start a build.
If all went well, you should see the changes in your repository in your Git provider. The new username and email address will be visible for all future commits you push from your builds to your Git provider.
You can trigger and abort builds with the Bitrise API. Define parameters for the build: for example, branch, tag or git commit to use. Custom environment variables can be defined...
If you need to, you can skip a specific commit or pull request. Skipping means, in this context, that a code change will NOT trigger a build on Bitrise, even...
You can cancel running builds or builds on hold automatically. If you turn on the Rolling Builds feature, the previous builds of your app can be automatically aborted once a...