Add regex replace support in claim template, introducing more possibility to claims, like extract repo and org name from it
fix #34
This could be a good supplement for #6 , allowing users to replace and recreate claims using existing environments.
Known issues, I'm still figuring out how to fix:
[x] 1. I dont know what should I do to make regex optional, since the signature of the ClaimTemplate Constructor is fixed and cannot create a second constructor
[x] 2. The default value did not show in the settings box.
Any suggestions are welcomed!
Testing done
unit test has been added
tried using the plugin in my jenkins
it can replace the claim correctly, presenting jwt like
Add regex replace support in claim template, introducing more possibility to claims, like extract repo and org name from it
fix #34
This could be a good supplement for #6 , allowing users to replace and recreate claims using existing environments.
Known issues, I'm still figuring out how to fix:
Any suggestions are welcomed!
Testing done
it can replace the claim correctly, presenting jwt like
it can fulfill my requirements.
Submitter checklist