Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for gitlab tags and custom values #264

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bdemers
Copy link
Member

@bdemers bdemers commented Dec 11, 2024

Builds run on GitLab CI via Docker containers might not have git installed, use the equivalent values from the environment instead

I didn't run this exact code, instead I tested it out via a .mvn/develocity-custom-user-data.groovy

Builds run on GitLab CI via Docker containers might not have `git` installed, use the equivalent values from the environment instead
@bdemers bdemers marked this pull request as draft December 11, 2024 20:44
"Git commit id",
"Git commit id short",
gitCommitShortId));
envVariable("CI_REPOSITORY_URL").ifPresent(gitRepo ->
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could instead by the project URL, which is the browser URL, CI_REPOSITORY_URL is the git remote URL)

Suggested change
envVariable("CI_REPOSITORY_URL").ifPresent(gitRepo ->
projectUrl.ifPresent(gitRepo ->

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant