Open
Description
Describe the bug
When publishing build information after publishing the artifact in our pipeline, we encountered the following error.
> Task :artifactoryPublish
> Task :extractModuleInfo
[pool-4-thread-1] Deploying artifact: https://artifactory.***.com/artifactory/libs-staging-local/ca/***/common/servicenow-infra-compcostenv-dc/1.0.0-d3caa64/servicenow-infra-compcostenv-dc-1.0.0-d3caa64.zip
[pool-4-thread-1] Deploying artifact: https://artifactory.***.com/artifactory/libs-staging-local/ca/***/common/servicenow-infra-compcostenv-dc/1.0.0-d3caa64/servicenow-infra-compcostenv-dc-1.0.0-d3caa64.pom
> Task :artifactoryDeploy
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 10s
15 actionable tasks: 10 executed, 5 up-to-date
ERROR: Couldn't read generated build info at : e:\disk1\jenkins\e921a184\workspace\Web\dte-containers\build_servicenow-infra-compcostenv-dc@tmp\artifactory\generated.build.info2240171544815622294.json
build.gradle publishing content
publishing {
publications {
mavenJava(MavenPublication) {
artifact source: distApp, extension: 'zip'
version = version
}
}
}
artifactory {
contextUrl = artifactory_contexturl
publish {
repository{
repoKey = 'libs-snapshot-local'
}
defaults {
publications('mavenJava')
}
}
}
To Reproduce
Declarative pipeline step executing the gradle script execution:
stage('Publish'){
steps{
rtGradleRun(
buildFile: 'build.gradle',
tasks: "immutableSnapshot artifactoryPublish",
deployerId: "GRADLE_DEPLOYER",
resolverId: "GRADLE_RESOLVER",
useWrapper: true,
usesPlugin: true
)
rtPublishBuildInfo(
serverId: "Artifactory Prod"
)
}
}
Expected behavior
Build info is being published correctly to Artifactory.
Versions
- Gradle Artifactory plugin version: 4.18.0, 4.21.0 (tried both versions and ended up with the same error
- Operating system: Linux
- Artifactory Version: 7.10.5