Multi-module Gradle builds in Jenkins broken since 4.16.0
See original GitHub issueDescribe the bug A multi-module build performed in Jenkins fails to publish build info (even when configured not to do so), with the following error:
ERROR: Couldn't read generated build info at : /home/jenkins/agent/workspace/dir@tmp/artifactory/generated.build.info8485814835938481452.json
To Reproduce The setup is exactly as in https://github.com/jfrog/build-info/issues/145, however the build is invoked via the Jenkins plugin:
node {
checkout scm
final server = Artifactory.server 'rcp-artifactory'
final gradle = Artifactory.newGradleBuild()
gradle.resolver server: server, repo: 'gradle-dev'
gradle.deployer server: server, repo: 'gradle-dev-local'
gradle.usesPlugin = true
gradle.useWrapper = true
gradle.run buildFile: 'build.gradle', tasks: 'build artifactoryPublish'
}
This breaks from 4.16.0 onwards, with 4.15.2 working, and appears to be be specific to Jenkins builds.
I’ve verified this with Gradle 5.2.1 and 6.6.1.
Expected behavior Artifacts pushed, no errors.
Versions
- Gradle Artifactory plugin version: 4.16.0+
- Jenkins Artifactory plugin 3.6.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Jenkins gradle task configuration for multi module project
I have a multi module gradle project and trying to configure build in Jenkins web interface. Also I need possibility to choose module...
Read more >Gradle - Jenkins Plugins
This plugin allows Jenkins to invoke Gradle build scripts directly.
Read more >Using Gradle & Jenkins on large multi projects - Help/Discuss
When building "multi-module" projects with Jenkins CI, Jenkins, Nexus/Artifactory & Maven cooperate so that only the minimal set of modules ...
Read more >Configure Build Tools in Jenkins and Jenkinsfile - YouTube
Learn how to configure build tools in Jenkins. Configure Gradle and Yarn in Jenkins and use it in Jenkinsfile.▻ Subscribe To Me on...
Read more >Android Jenkins multimodule configuration - Sonar Community
properties file is being taken into account. Only what is set in your build.gradle file or passed as command line parameters ( -Dsonar....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jackwhelpton, Thanks for your input, we managed to successfully reproduce the issue using Jenkins Artifactory plugin 3.6.2. The good news are - The issue disappeared in Jenkins Artifactory plugin 3.7.0 and above.
Please make sure to upgrade your Jenkins Artifactory plugin to the latest version (currently 3.8.1). We’d appreciate your feedback for that!
We’ve just performed the plugin upgrade, and builds this morning are looking good. Thanks for diagnosing that for us!