-
Notifications
You must be signed in to change notification settings - Fork 301
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
Development
: Directly access Jenkins REST API for all interactions
#10084
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
also exclude a few now unused dependencies try out RestClient instead of RestTemplate for Apollon
github-actions
bot
added
tests
server
Pull requests that update Java code. (Added Automatically!)
core
Pull requests that affect the corresponding module
exam
Pull requests that affect the corresponding module
exercise
Pull requests that affect the corresponding module
modeling
Pull requests that affect the corresponding module
programming
Pull requests that affect the corresponding module
labels
Dec 27, 2024
github-actions
bot
added
the
lecture
Pull requests that affect the corresponding module
label
Dec 27, 2024
krusche
temporarily deployed
to
artemis-test5.artemis.cit.tum.de
December 27, 2024 16:34 — with
GitHub Actions
Inactive
github-actions
bot
added
the
config-change
Pull requests that change the config in a way that they require a deployment via Ansible.
label
Dec 27, 2024
src/main/java/de/tum/cit/aet/artemis/programming/service/jenkins/jobs/JenkinsJobService.java
Dismissed
Show dismissed
Hide dismissed
src/main/java/de/tum/cit/aet/artemis/programming/service/jenkins/jobs/JenkinsJobService.java
Dismissed
Show dismissed
Hide dismissed
b-fein
reviewed
Jan 2, 2025
src/main/java/de/tum/cit/aet/artemis/programming/service/jenkins/JenkinsEndpoints.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/cit/aet/artemis/programming/service/jenkins/JenkinsXmlFileUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/de/tum/cit/aet/artemis/programming/service/jenkins/jobs/JenkinsJobService.java
Outdated
Show resolved
Hide resolved
It was an identical copy of testImportBuildPlansThrowsExceptionOnGivePermissions before that had absolutely nothing to do with deleting.
If we send an invalid XML to the API endpoint, then an exception is thrown. The type-system enforces already that the exception is caught and wrapped into some exception that bubbles up all the way. I don’t think it makes sense to test this behaviour here.
…gExercise_asPartOfExamImport
…tUpdatesSubmissionCount
b-fein
approved these changes
Jan 17, 2025
b-fein
removed
the
deployment-error
Added by deployment workflows if an error occured
label
Jan 17, 2025
krusche
changed the title
Jan 17, 2025
Development
: Remove jenkins client and access Jenkins REST API directlyDevelopment
: Directly access Jenkins REST API for all interactions
krusche
added
ready to merge
maintainer-approved
The feature maintainer has approved the PR
labels
Jan 17, 2025
HawKhiem
approved these changes
Jan 17, 2025
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.
Reapprove
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.
Re-approval
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
config-change
Pull requests that change the config in a way that they require a deployment via Ansible.
core
Pull requests that affect the corresponding module
exam
Pull requests that affect the corresponding module
exercise
Pull requests that affect the corresponding module
lecture
Pull requests that affect the corresponding module
maintainer-approved
The feature maintainer has approved the PR
modeling
Pull requests that affect the corresponding module
programming
Pull requests that affect the corresponding module
ready for review
ready to merge
server
Pull requests that update Java code. (Added Automatically!)
tests
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.
Summary
This PR unifies the interaction with the Jenkins REST API by removing the dependency on the outdated Jenkins client library. Instead, it implements a streamlined and more modern approach to interact directly with the REST API.
Key Changes
Benefits
Impact
This change is backward-compatible. Extensive testing has been conducted to ensure seamless integration and consistent functionality.
Checklist
General
Server
Changes affecting Programming Exercises
Steps for Testing
Prerequisites:
Exam Mode Testing
Prerequisites:
Testserver States
Note
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.
Review Progress
Code Review
Manual Tests
Exam Mode Test
@coderabbitai ignore