Workflow plugin and backward compatibility

76 views
Skip to first unread message

Zoran Regvart

unread,
Jan 25, 2015, 2:57:58 PM1/25/15
to jenkin...@googlegroups.com
Hi all,
the workflow plugin starting with Jenkins 1.599 will have support for
build wrappers[1], this would make it prime time to implement support
for workflow in build wrappers such as the Xvfb that I'm maintaining.

How would a build wrapper plugin remain backward compatibility with
older Jenkins installations (well older than 1.599 at least)?

One thing that comes to mind is to register a custom XStream converter
that instantiates SimpleBuildWrapper on Jenkins >= 1.599 or
BuildWrapper otherwise. Is that wise? Could some kind of backward
compatibility support/strategy be implemented in core?

Thanks ;)

zoran

[1] https://issues.jenkins-ci.org/browse/JENKINS-24673
--
Human by day user by night

Jesse Glick

unread,
Jan 26, 2015, 8:40:52 AM1/26/15
to Jenkins Dev
On Sun, Jan 25, 2015 at 2:57 PM, Zoran Regvart
<zregvart...@gmail.com> wrote:
> How would a build wrapper plugin remain backward compatibility with
> older Jenkins installations (well older than 1.599 at least)?

Sorry, it is not possible. You can maintain a distinct branch which is
compatible with older core versions and merge unrelated fixes between
the two, if you wish to continue to produce new releases for older
cores. (maven-release-plugin has no trouble releasing from a branch
with major-minor-micro versions.)
Reply all
Reply to author
Forward
0 new messages