Hi,
Newbie here, newbie on Jenkins and even newbie on Java :)
I'm trying to write a new SCM plugin.
// com.genexus.gxserver/GeneXusServerSCM.java
public class GeneXusServerSCM extends SCM implements Serializable{
[...]
@Override
public DescriptorImpl getDescriptor() {
return (DescriptorImpl) super.getDescriptor();
}
@Extension
public static class DescriptorImpl extends SCMDescriptor<GeneXusServerSCM> {
@Override
public boolean isApplicable(Job project) {
return true;
}
public DescriptorImpl() {
super(GeneXusServerSCM.class, null);
load();
}
[...]
}
My project includes a config.jelly
// com.genexus.gxserver.GeneXusServerSCM/config.jelly
<?xml version="1.0" encoding="UTF-8"?>
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<f:section title="${%GeneXus Server}">
<f:entry field="label" title="${%Label}">
<f:textbox/>
</f:entry>
</f:section>
</j:jelly>
It only includes a simple 'Label' for now, but as I said above it doesn't even appear as an available SCM option ("None" and "Subversion" do appear).
I guess I'm missing some very basic thing, I've been looking at SVN and TFS implementations, but couldn't figure it out.
Any hint? How does Jenkins gets the list of available SCMs? Do I have a chance to debug that code?
Thanks in advance,
--
JLR