With Jenkins, I'm checking out a project that later it builds using SBT. But when it tries to execute the sbt-release plugin, it complains:
No tracking branch is set up. Either configure a remote tracking branch, or remove the pushChanges release part
This is my Jenkins GIT plugin configuration:
I set those items following the guide that answers this question.
I think the SBT-release plugin needs the remote tracking in order make a tag on the branch.
Assuming you want to build from master.
In Jenkins in GIT section select:
Branches to build: master
also add:
Additional Behaviours:
Check out to specific local branch: master
Build step
Execute Shell:
git branch --set-upstream-to=origin/master master
And then add your SBT build step
sbt "release with-defaults"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With