-
Notifications
You must be signed in to change notification settings - Fork 34
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
Multiple enhancements #6
Merged
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
This was referenced Nov 14, 2018
Oh man, I just went to solve the same problem :P |
ambakshi
reviewed
Nov 15, 2018
@mlabouardy this PR looks ready. Would you like to draft the new version or should I do it in this PR? |
@mlabouardy Could you take a look please? |
This enables migration of credentials between Jenkins instances. Butler will get the XML config of any folder and will ingest the encrypted secrets. The encrypted secrets are then decrypted via a Groovy script executed on Jenkins master. This needs most of the times admin privileges. In a second step you can pipe in the decrypted credentials and apply them to another folder or even instance. Also a Groovy script is leveraged in order to achieve this.
Previously it was not possible to export and import from and to folders. In order to achieve this a new parameter `--folder` is introduced. Given this parameter it will resolve the URL of the folder and export/import jobs there. In order to achieve this, the API endpoint /api/xml of a folder is used (also the for the "root" folder) instead of /view/all/api/xml in order not to rely on special view, which is only existing in root. Also a bug is fixed if an old version of Jenkins does not support crumb issueing.
This enables migration of credentials between Jenkins instances. Butler will get the XML config of any folder and will ingest the encrypted secrets. The encrypted secrets are then decrypted via a Groovy script executed on Jenkins master. This needs most of the times admin privileges. In a second step you can pipe in the decrypted credentials and apply them to another folder or even instance. Also a Groovy script is leveraged in order to achieve this.
Butler stopped importing jobs if any job was existing already or was malformatted. Now the error is printed out, but the import will keep working.
This was needed, because special characters we're not correctly interpreted.
Can we please merge this !? |
This feature is useful if you want to export a folder tree. Also made the first step into refactoring the HTTP request handling.
This is handy if you want to avoid typing the server name.
is this repo not maintained? |
The pipeline fails, because there are no working credentials for S3 in Circle CI. |
@icereed fixed |
Feature is released :party: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This would solve #4 and #3.
Additionally you may skip folder for exporting.
Summary of new features
Summary of fixes