nadavy
nadavy

Reputation: 1805

Custom Jenkins Plugin - how can I override values loaded from older versions of the plugin?

I'm develping custom Jenkins plugin.

As part of the development I had to make some changes to the classes and fields of my custom build step.

As a result, each client that updates the plugin has to re-enter the configuration of some of the fields.

I wonder if there is a way to load the old values and map them to the new fields?

Any help will be appreciated.

Cheers, Nadv

Upvotes: 0

Views: 118

Answers (1)

daspilker
daspilker

Reputation: 8194

See Hint on retaining backward compatibility in the Jenkins wiki. It covers all relevant cases, e.g. adding/removing/renaming fields.

Upvotes: 2

Related Questions