I want to set up an automatic semantic versioning so that each CI build results in an incremented patch part like in ... I use an ajoberstar/reckon gradle plugin which works flawlessly on a local machine but I'm facing some problems when trying to set this up on Bitbucket Pipelines.
My understanding is that the ajoberstar/reckon works using git tags which have to be pushed to the origin. This fails when using the following bitbucket-pipelines.yml configuration.
options:
docker: true
pipelines:
branches:
master:
- step:
name: Build
image: openjdk:8-jdk
services:
- docker
caches:
- docker
- gradle
- gradlewrapper
size: 2x
script:
- ci/dependencies.sh
- ci/credentials.sh
- git remote set-url origin ${BITBUCKET_GIT_HTTP_ORIGIN}
- ./gradlew build reckonTagPush publish -Preckon.scope=patch -Preckon.stage=final
The error message says:
Execution failed for task ':reckonTagPush'.
> org.eclipse.jgit.api.errors.TransportException: http://bitbucket.org/billtech/sync-manager: Authentication is required but no CredentialsProvider has been registered
Configuring an alternate Git client If you are not using the git CLI provided by Pipelines, we recommend configuring origin using the ${BITBUCKET_GIT_HTTP_ORIGIN} variable. If using the http origin, you will also need to configure your git client to use a proxy. The proxy url is: http://localhost:29418.
I need to either use the git CLI provided by Pipelines or set a proxy for git client used by reckon. I'm failing to get either to work so any help is appreciated.