Switch job configuration section to use a checkbox

This pull request changes the plugins job configuration from using a _section_ to an _optionalBlock_. In effect, it makes the plugins configuration fall inline with the convention used by most other plugins.
I agree with Patrik in principle, but please don't put four boolean expressions in a row like that ;)
Don't we have any string util class on the classpath?

And don't forget the tests. 

Marcus Philip
+46 70 767 46 77
Twitter: @marcus_phi

> 22 nov 2014 kl. 13:05 skrev Patrik Boström <notifications@github.com>:
> 
> In src/main/java/se/diabol/jenkins/pipeline/PipelineProperty.java:
> 
> > @@ -52,6 +58,11 @@ public String getTaskName() {
> >      public String getStageName() {
> >          return stageName;
> >      }
> > +    
> > +    @Exported
> > +    public boolean getConfigEnabled() {
> > +    	return configEnabled;
> Thanks for the PR!
> I think it is possible to remove the need for adding a new member for this class than also needs to be serialized to the configuration file of the project. It could break the Jenkins Job builder and Job DSL plugin project generation.
> Is it possible to remove the configEnabled member instead have this in the method?
> 
>         return taskName != null && !taskName.equals("") || stageName != null && !stageName.equals("");
> —
> Reply to this email directly or view it on GitHub.
>