Store yarn and nodejs artificat at download.eclipse.org for jenkins build. #1484
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem :
Sometime on CI jenkins instance we face some trouble to download nodejs or yarn with frontend-maven-plugin.
This kind of error :
[ERROR] The archive file /home/jenkins/.m2/repository/com/github/eirslett/node/12.22.5/node-12.22.5-linux-x64.tar.gz is corrupted and will be deleted. Please try the build again.
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.13.4:install-node-and-yarn (install node and yarn) on project leshan-server-demo: Could not download Node.js: Got error code 500 from the server. -> [Help 1]
The solution proposed was to :
This could maybe also make the build faster limiting this old issue.
Solution :
This PR aims to cache yarn and node binaries to https://download.eclipse.org/leshan/build/mirror/.
Documentation: