question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multi-module Gradle builds in Jenkins broken since 4.16.0

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yahavicommented, Sep 30, 2020

@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!

0reactions
jackwhelptoncommented, Oct 1, 2020

We’ve just performed the plugin upgrade, and builds this morning are looking good. Thanks for diagnosing that for us!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found