gradle-jenkins-plugin icon indicating copy to clipboard operation
gradle-jenkins-plugin copied to clipboard

Provide a way to get change preview

Open zeeke opened this issue 10 years ago • 2 comments

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?

zeeke avatar May 02 '14 14:05 zeeke

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.

ghale avatar May 02 '14 14:05 ghale

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.

zeeke avatar May 02 '14 15:05 zeeke