Open StenSoft opened 8 months ago
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?
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.
Describe the bug
With
clientConfig.isIncludeEnvVars = true
set, there are no environment variables in the generated build info JSON. Custom properties added withbuildInfo.addEnvironmentProperty
are not there either. I suspect that the issue is that the environment is not stored inorg.jfrog.build.api.Build
but its parentBaseBuildBean
'sproperties
.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