Skip to content

Store and download last applied configuration snapshot#2819

Closed
somiljain2006 wants to merge 2 commits intojenkinsci:masterfrom
somiljain2006:casc-last-applied-config-download
Closed

Store and download last applied configuration snapshot#2819
somiljain2006 wants to merge 2 commits intojenkinsci:masterfrom
somiljain2006:casc-last-applied-config-download

Conversation

@somiljain2006
Copy link
Copy Markdown
Contributor

@somiljain2006 somiljain2006 commented Apr 7, 2026

Fixes #1023

Allows downloading the last applied configuration

  • Saves the full exported configuration to 'casc-last-applied.yaml' upon successful reload.
  • Adds a "Download last applied configuration" button to the JCasC management UI.
  • Implemented a REST endpoint with SYSTEM_READ permission checks.
  • Ensures failed configuration attempts do not overwrite the last known good state.
  • Includes JUnit tests for the new endpoint and file persistence.
Screenshot 2026-04-08 at 12 01 48 AM

Your checklist for this pull request

🚨 Please review the guidelines for contributing to this repository.

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test case? That demonstrates a feature that works or fixes the issue.

@somiljain2006 somiljain2006 requested a review from a team as a code owner April 7, 2026 19:22
@somiljain2006 somiljain2006 deleted the casc-last-applied-config-download branch April 7, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Store exported configuration after reload for reference

1 participant