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

No environment variables in build info JSON #84

Open
StenSoft opened this issue Nov 15, 2023 · 2 comments
Open

No environment variables in build info JSON #84

StenSoft opened this issue Nov 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@StenSoft
Copy link

Describe the bug

With clientConfig.isIncludeEnvVars = true set, there are no environment variables in the generated build info JSON. Custom properties added with buildInfo.addEnvironmentProperty are not there either. I suspect that the issue is that the environment is not stored in org.jfrog.build.api.Build but its parent BaseBuildBean's properties.

Current behavior

There are no environment variables in the generated build info JSON

Reproduction steps

No response

Expected behavior

Environment variables are in the generated build info JSON

Artifactory Gradle plugin version

5.1.10

Operating system type and version

Debian Linux 12.2

JFrog Artifactory version

7.68.7

Gradle version

8.3

@StenSoft StenSoft added the bug Something isn't working label Nov 15, 2023
@yahavi
Copy link
Member

yahavi commented Dec 2, 2023

Thanks for flagging the problem, @StenSoft!
I attempted to recreate it using this example, but the build-info got populated with the environment variables. To further investigate, could you share additional details about your build script?

@StenSoft
Copy link
Author

Hi, our setup is quite complex and uses Kotlin Scripts instead of Groovy. I'll try to reproduce it with a project based on the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants