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

with "jf gradle clean build artifactoryPublish" buildinfo not published #2773

Open
PeWolf opened this issue Nov 27, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@PeWolf
Copy link

PeWolf commented Nov 27, 2024

Describe the bug

When I use "jf gradle clean build artifactoryPublish" the buildinfo not published.
When I use "gradlew.bat clean build artifactoryPublish" the buildinfo was published.

Current behavior

Log with jf:
2024-11-21T15:28:15.330+0100 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :artifactoryDeploy
2024-11-21T15:28:17.781+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.extractor.GradleBuildInfoExtractor] BuildInfo extracted = BuildInfo{version='1.0.1', name='xxx', number='2', buildAgent=Gradle/8.9, agent=Gradle/8.9, started='2024-11-21T15:26:58.326+0100', durationMillis=79455, principal='xxx', artifactoryPrincipal='jenkins-artifactory-bn', artifactoryPluginVersion='Unknown', url='null', parentName='null', parentNumber='null', vcs='[]', parentBuildId='null', buildRetention=null, runParameters=null, modules=[org.jfrog.build.extractor.ci.Module@8d57777, org.jfrog.build.extractor.ci.Module@c55f3efe, org.jfrog.build.extractor.ci.Module@dfe0adc0, org.jfrog.build.extractor.ci.Module@3c6f9601], statuses=null, buildDependencies=null, issues=null}
2024-11-21T15:28:17.781+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Exporting generated build info to 'C:\xxx\build\build-info.json'
2024-11-21T15:28:17.826+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Exporting generated build info to 'c:\Entwicklung\tools\jfrog\tmp\jfrog\builds\9911f4d2b18457c4726664d309385072d295ca69062e99e66250033c13d09441\temp1642547180'
2024-11-21T15:28:17.840+0100 [LIFECYCLE] [org.gradle.internal.operations.DefaultBuildOperationRunner]
2024-11-21T15:28:17.840+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Execute extractBuildInfoAndDeploy for :artifactoryDeploy'
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Executing task ':artifactoryDeploy''
2024-11-21T15:28:17.824+0100 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger]
2024-11-21T15:28:17.824+0100 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :artifactoryDeploy
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Execute extractBuildInfoAndDeploy for :artifactoryDeploy' completed
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Executing task ':artifactoryDeploy'' completed
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.internal.vfs.impl.AbstractVirtualFileSystem] Invalidating VFS paths: []
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter] Removed task artifact state for task ':artifactoryDeploy' from context.
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Completing Build operation 'Task :artifactoryDeploy'
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationRunner] Build operation 'Task :artifactoryDeploy' completed
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.execution.plan.DefaultFinalizedExecutionPlan] Node :artifactoryDeploy completed, executed: true
2024-11-21T15:28:17.841+0100 [DEBUG] [org.gradle.execution.plan.DefaultFinalizedExecutionPlan] Node :artifactoryDeploy finished executing
....
____________________________________________________________________-
Log without jf:
2024-11-21T15:39:31.059+0100 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] > Task :artifactoryDeploy
2024-11-21T15:39:33.735+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.extractor.GradleBuildInfoExtractor] BuildInfo extracted = BuildInfo{version='1.0.1', name='xxx', number='2', buildAgent=Gradle/8.9, agent=Gradle/8.9, started='2024-11-21T15:37:59.304+0100', durationMillis=94430, principal='xxx', artifactoryPrincipal='jenkins-artifactory-bn', artifactoryPluginVersion='Unknown', url='null', parentName='null', parentNumber='null', vcs='[]', parentBuildId='null', buildRetention=null, runParameters=null, modules=[org.jfrog.build.extractor.ci.Module@9c3893d6, org.jfrog.build.extractor.ci.Module@7b7e1213, org.jfrog.build.extractor.ci.Module@f6b7cc66, org.jfrog.build.extractor.ci.Module@429461a8], statuses=null, buildDependencies=null, issues=null}
2024-11-21T15:39:33.736+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.DeployTask] Exporting generated build info to 'C:\xxx\build\build-info.json'
2024-11-21T15:39:33.764+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.utils.DeployUtils] Publishing build info to artifactory at: 'https://xxxx/artifactory'
2024-11-21T15:39:33.791+0100 [LIFECYCLE] [org.jfrog.gradle.plugin.artifactory.utils.DeployUtils] Deploying build info...
2024-11-21T15:39:33.791+0100 [DEBUG] [org.jfrog.gradle.plugin.artifactory.utils.DeployUtils] Base URL: /api/build?project=hera

Reproduction steps

No response

Expected behavior

Both, "jf gradle ..." and "gradlew.bat ..." do the same.

JFrog CLI version

2.71.5

Operating system type and version

windows11

JFrog Artifactory version

EnterpriseX license 7.90.9 rev 79009900

JFrog Xray version

No response

@PeWolf PeWolf added the bug Something isn't working label Nov 27, 2024
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

1 participant