-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Update to Jenkins LTS version 2.375 #696
Update to Jenkins LTS version 2.375 #696
Conversation
These modules were removed and converted into plugins with JEP-230 https://github.com/jenkinsci/jep/tree/master/jep/230
Initial try to go to next LTS version. Jetty dependency might cause some issue. Vanilla package had to loose as severely outdated plugin (incl. a test).
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.
Everything looks good, thanks you! I would likely go straight to Jetty 11 but it is a separate topic
Thanks for the approval. Before merging this change, let me remove a change which shouldn't end up in this PR and clean up the commented dependencies. |
This reverts commit 58aefbf.
Done from my side. If I find the time I'll try to look into updating Jetty to version 11, but rather in another PR. |
I've looked into updating to Jetty 11 and straight away the compilation will fail because auf the namespace change from [INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /mnt/c/Users/dev/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/JenkinsLauncher.java:[20,20] error: package javax.servlet does not exist
[ERROR] /mnt/c/Users/dev/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/JenkinsLauncher.java:[21,20] error: package javax.servlet does not exist
[ERROR] /mnt/c/Users/dev/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/JenkinsEmbedder.java:[77,20] error: package javax.servlet does not exist
[ERROR] /mnt/c/Users/dev/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/JenkinsLauncher.java:[80,14] error: cannot find symbol
symbol: class ServletContext
location: class JenkinsLauncher<T>
where T is a type-variable:
T extends JenkinsLauncherCommand declared in class JenkinsLauncher
[ERROR] /mnt/c/Users/dev/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/JenkinsEmbedder.java:[375,23] error: cannot find symbol
symbol: class ServletContext
location: class JenkinsEmbedder
[ERROR] /mnt/c/Users/dev/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/PluginManagerImpl.java:[14,29] error: cannot find symbol
symbol: class ServletContext
location: class PluginManagerImpl
[ERROR] /mnt/c/Users/dev/com/romanisb/jenkinsfile-runner/setup/src/main/java/io/jenkins/jenkinsfile/runner/NoListenerConfiguration.java:[8,20] error: package javax.servlet does not exist
[INFO] 7 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Jenkinsfile Runner 1.0-beta-32-SNAPSHOT:
[INFO]
[INFO] Jenkinsfile Runner ................................. SUCCESS [ 1.422 s]
[INFO] bootstrap .......................................... SUCCESS [ 7.175 s]
[INFO] setup .............................................. FAILURE [ 7.503 s]
[INFO] Jenkinsfile Runner: Plugin dependencies ............ SKIPPED
[INFO] payload ............................................ SKIPPED
[INFO] jenkinsfile-runner ................................. SKIPPED
[INFO] packaging-parent-pom-resources ..................... SKIPPED
[INFO] packaging-parent-pom ............................... SKIPPED
[INFO] packaging-parent-pom-slim .......................... SKIPPED
[INFO] vanilla-package .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.009 s
[INFO] Finished at: 2023-07-17T10:26:19+02:00
[INFO] ------------------------------------------------------------------------ Also I'm not sure if Jetty 11 will somehow work with Jenkins core in the future, but I do not have that much in-depth knowledge in this: |
Sorry for the response delays, is definitely something to look into |
I hope to catch up with the discussions here but it realistically won't happen until August |
Yeah. No worries. Since this discussion is a bit off-topic with this PR, I've created a Github issue (#699), where the discussion could be continued. |
Hi @oleg-nenashev, will there be a new (beta) release soon? I'm hoping for a fix for #686 |
Hi @oleg-nenashev, sorry to ask again, but will there be a new (beta) release soon? We have been unable to execute our pipeline tests for while. |
Sorry, catching up on the technical debt |
Hi @oleg-nenashev is the fix in beta-32? |
@lhupfeldt yes |
This PR is trying to address the current issues were using/building a JFR image with a Jenkins version > 2.346.3 fails (e.g. #686 or #657).
The changes are addressing:
I have commented some dependencies were @oleg-nenashev has added a TODO to remove.
I'm not 100% sure, but they could be safely removed now.
Testing done
Test Image
romanisb/jenkinsfile-runner:jenkins-core-2.375.4
(Build from
packaging/docker/unix/eclipse-temurin-11-jre/Dockerfile
):Test Pipeline
Jenkinsfile
node() { echo("${Jenkins.instance.getVersion()}") }
Command
docker run --rm -v ${pwd}:/workspace romanisb/jenkinsfile-runner:jenkins-core-2.375.4 -ns
Output
Submitter checklist