-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal node.js version upgrade #2558
base: master
Are you sure you want to change the base?
Conversation
Nice work! I checked and with this PR everything builds for me fine as well on an M1 Mac. |
Thanks for your work.
|
using such patch turns into a lot more problems....
Does BlueOcean really worth such time investment? It's deprecated and just under very low maintenance. |
I'm not sure where is it but @basil have tested and build |
the project should build out of the box without having to use an old frozen build environment. |
@@ -72,7 +72,7 @@ node() { | |||
sh 'id' | |||
//sh 'whoami' | |||
sh 'pwd' | |||
sh "mvn clean install -T2 -Pci -V -B -DcleanNode -ntp -DforkCount=3 -Dmaven.test.failure.ignore -s settings.xml -e -Dmaven.repo.local=/tmp/m2 -Dmaven.artifact.threads=30" | |||
sh "mvn clean install -T2 -Pci -V -B -DcleanNode -ntp -DforkCount=3 -s settings.xml -e -Dmaven.repo.local=/tmp/m2 -Dmaven.artifact.threads=30" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will not change anything for ci.jenkins.io :) You have to change the provided script by ci.j.io.
look at the start of the file
Line 3 in 1ce0c18
if (JENKINS_URL == 'https://ci.jenkins.io/') { |
this Jenkinsfile was only by the dead ci.blueocean.io
(the testMatch changes allow running from jest-cli quicker and easier to work with than gulp
I'll spend a bit more time on it but yeah pretty painful to update =/. |
I am a new user of blueocean, and I pushed the following error when building mvn clean install-DskipTests using 1.27.5.1: [ERROR] Failed to execute goal org.jenkins-ci.tools:maven-hpi-plugin:3.46:run (default-cli) on project blueocean: Unable to parse configuration of mojo org.jenkins-ci.tools:maven-hpi-plugin:3.46:run for parameter webApp: Cannot load implementation hint 'org.eclipse.jetty.maven.plugin.JettyWebAppContext' -> [Help 1] How do I fix it? |
not sure exactly what you are doing, but if you see the change to |
Description
Replaces #2557
Previously it was not possible to build directly on MacOS, for three reasons:
The first issue with the upgrade was "ReferenceError: primordials is not defined".
https://stackoverflow.com/questions/55921442/how-to-fix-referenceerror-primordials-is-not-defined-in-node-js shows that this is an issue with old versions of gulp.
I tried upgrading gulp in #2557, blueocean itself was fine but this project also uses the abandoned https://github.com/jenkinsci/js-builder/, I found the upgrade there non-trivial / non-obvious and I looked to see if there was another approach as a stepping stone.
The stackoverflow link gives a workaround using
overrides
to just upgradegraceful-fs
, that gets past the gulp errors.After that there's issues with jest not working on a new Node.JS version without a version conflict.
I initially tried upgrading jest to the latest but that requires a babel upgrade as well. I went down a long rabbit hole in #2557 trying to do the babel upgrade but that also required changes in js-builder and after making changes there I got weird errors that I didn't manage to figure out.
I found that jest 23 was the latest version that worked with all our dependencies (although other references do say 24 should be able to work I wasn't able to find a dependency set that would work together).
Future work needed
These dependencies all need upgrade work done on them to be able to update dependencies to latest
Submitter checklist
Reviewer checklist