gradle-jenkins-plugin
gradle-jenkins-plugin copied to clipboard
Provide a way to get change preview
It would be useful to see the changes that a delete or update command would do against the servers.
So, I have in mind the following new tasks:
-
dumpRemoteJenkinsItems: for each defined job and view, dump the relative xml to the folder "$buildDir/remote/
/<job|view>/<itemName>.xml" - diffJenkinsItems (dependsOn: dumpRemoteJenkinsItems, dumpJenkinsJobs): start a configurable external program to see differences in each configuration file.
What do you think about it?
I think that's a great direction. With validateJenkinsJobs and "--info" you do get some detail about what the differences are - it's pretty messy but the information is there. I wonder if it would make sense to dump that into an html report or something to provide a cleaner representation?
I like the external diff idea and I think that would be relatively easy to do.
Yes, we can set a default HTML report with file differences by default and let users use the tool they configure.
I didn't notice the validation tasks, it seems to be the thing i need.