Comments (3)
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.
It builds correctly on the same machine without Docker for JDK 17 and 21. ๐ค
from plugin-installation-manager-tool.
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 theENV
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 theENV
variable declaration. - After this correction, everything began functioning properly.
Lessons Learned
- Pay close attention to syntax in Dockerfile
ENV
declarations. - Avoid using
{}
inENV
variables within Dockerfiles.
Next Steps
- We can consider closing this issue.
- 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)
- Dependency Dashboard
- Port already in use when jmx enabled HOT 3
- Improve plugin not found error message
- Changing user/group causes strange NoSuchFileException HOT 5
- Release 2.12.12 incomplete (JAR file not published) HOT 12
- jenkins-plugin-cli --plugins ansicolor is not working HOT 4
- plugin-x requires a greater version of Jenkins when using internal remote repository as mirror of jenkins UC HOT 3
- Write checksum to output list
- Sample command in README.md misses download directory option HOT 2
- Improve the CLI output when the plugin is already present in the directory HOT 9
- Improve the console log after downloading the plugin HOT 2
- Plugin dependencies not properly downloaded HOT 1
- CLI tool does not return an error code when it says "War not found"
- Allow Jenkins plugin to downgrade package
- Trying to download a plugin version that has not yet been published but is on github HOT 6
- Added in different repo deleting it
- org.jenkins-ci.plugins.workflow:workflow-aggregator:2.6 : Not able to build with UAT enabled. (Java Version Incompatibility) HOT 9
- `/experimental` UC receiving the same amount of requests than normal UC
- Output a useful URL to download each plugin HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-installation-manager-tool.