Coder Social home page Coder Social logo

Comments (3)

gounthar avatar gounthar commented on August 30, 2024

I tried to build the current main branch in my Docker container and got:

247.9 [INFO] Running io.jenkins.tools.pluginmanager.impl.ChecksumTest
247.9 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s -- in io.jenkins.tools.pluginmanager.impl.ChecksumTest
247.9 [INFO] Running io.jenkins.tools.pluginmanager.config.LogOutputTest
247.9 [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s -- in io.jenkins.tools.pluginmanager.config.LogOutputTest
248.2 [INFO]
248.2 [INFO] Results:
248.2 [INFO]
248.2 [ERROR] Failures:
248.2 [ERROR]   CacheManagerTest.cacheManagerWithNonReadableJsonFileForKey:159
248.2 Expecting actual:
248.2   ""
248.2 to start with:
248.2   "Cache ignored file the-cache-key.json because it cannot be read.
248.2 java.nio.file.AccessDeniedException:"
248.2
248.2 [ERROR]   CacheManagerTest.cacheReturnsNullWhenCachedFileCannotBeRead:148
248.2 expected: null
248.2  but was: {}
248.2 [ERROR] Errors:
248.2 [ERROR]   PluginManagerTest.startNoDirectoryNoPluginDirTest:143 ยป ProviderNotFound Provider "jar" not found
248.2 [INFO]
248.2 [ERROR] Tests run: 151, Failures: 2, Errors: 1, Skipped: 3
248.2 [INFO]
248.2 [INFO] ------------------------------------------------------------------------
248.2 [INFO] Reactor Summary for plugin-management-parent-pom 2.13.1-SNAPSHOT:
248.2 [INFO]
248.2 [INFO] plugin-management-parent-pom ....................... SUCCESS [02:21 min]
248.2 [INFO] plugin-management-library .......................... FAILURE [01:33 min]
248.2 [INFO] plugin-management-cli .............................. SKIPPED
248.2 [INFO] ------------------------------------------------------------------------
248.2 [INFO] BUILD FAILURE

from plugin-installation-manager-tool.

gounthar avatar gounthar commented on August 30, 2024

It builds correctly on the same machine without Docker for JDK 17 and 21. ๐Ÿค”

from plugin-installation-manager-tool.

gounthar avatar gounthar commented on August 30, 2024

Thanks to the assistance of @MarkEWaite, we've identified and resolved the issue with the Docker image that was causing problems with the Jenkins WAR file.

Root Cause

The problem stemmed from an incorrect ENV variable declaration in the Dockerfile. Specifically:

  • I mistakenly used {} in the ENV variable declaration.
  • This resulted in an empty WAR file, rendering Jenkins unusable.

Solution

The issue was resolved by correcting the ENV declaration in the Dockerfile:

  • Removed the {} from the ENV variable declaration.
  • After this correction, everything began functioning properly.

Lessons Learned

  1. Pay close attention to syntax in Dockerfile ENV declarations.
  2. Avoid using {} in ENV variables within Dockerfiles.

Next Steps

  1. We can consider closing this issue.
  2. Alternatively, we could keep it open to improve the error message:
    • Current message: "jar: Provider not found"
    • While this gave us some clues, a more descriptive error message could be helpful.

Reflection

Although it's unlikely that others will encounter this specific error, improving error messages can always benefit users and troubleshooting processes.

Acknowledgment

I take responsibility for this oversight. Thank you to everyone involved in helping diagnose and resolve this issue.

from plugin-installation-manager-tool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.