Thanks Jesse, I'm thus using setSCM instead of getSCMs.
Le Fri Feb 06 2015 at 4:18:41 PM, Jesse Glick <[email protected]> a écrit : > On Fri, Feb 6, 2015 at 10:02 AM, Ivo Bellin Salarin > <[email protected]> wrote: > > Why am I getting this error? > > Because https://github.com/jenkinsci/jenkins/blob/ > 17baaf7151fb3dbb5c7c79ac61a3bf2769dd82f6/core/src/main/java/ > hudson/model/Project.java#L120 > is intentionally given a signature which makes it impossible to add > anything to the list without @SuppressWarnings("unchecked") (and even > then you would get an UnsupportedOperationException since the list is > immutable). > > If you want this functionality in a freestyle-ish project you must use > multiple-scms-plugin. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-dev/CANfRfr0_Vd9a8-7RMenhfb4iC0p4%2Bo% > 3DmLC92mskzWaGQHjLpMA%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF9sFpbuENYDVAikO%3DX3TGYWTf2EyQFFhYSvcT1wfMPPPw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
