Open javaworkinggirl opened 1 year ago
@javaworkinggirl Hi! I don't know gitlab much, maybe you could setup a gitlab example repo and give me access to check it out?
The issue is that GitLab by default checkouts the code in detached mode.
@javaworkinggirl
I was able to make versionCreator("versionWithBranch")
work correctly with these additions to gitlab configuration:
some_job:
...
variables:
GIT_STRATEGY: clone
script:
- git checkout -b $CI_COMMIT_BRANCH
...
or simply add
-Prelease.overriddenBranchName=${CI_COMMIT_BRANCH}
to gradle publishing commands
Hi. I am using gradle kotlin DSL v8.0.2 and GitLab and I have a feature branch named "feature/foo-7". When I push code on that feature branch to remote, how can I create a "snapshot" version with the branch name in the version. So how can I have the result of the version being:
OR
I tried the following code and I am not getting the branch name in the version:
Here's a snippet of the build.gradle.kts:
And here's a snippet of the .gitlab-ci.yml:
What are your insights? Thank you.