I'm aware that there is the possibility of 
the workflow-cps-global-lib-plugin but I like to now if it's possible 
without it or is that another groovy restriction for pipeline scripts like 
Closures?

Am Mittwoch, 8. Juni 2016 12:08:37 UTC+2 schrieb Lars Meynberg:
>
> We want to group some information in an object rather then have multiple 
> variables in the main pipeline script. 
> I tried to create a class (First Java then Groovy) but every time when I 
> try to init it in the script I got following error:
>
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> WorkflowScript: 1: unable to resolve class classes.BuildEnvironment
>  @ line 1, column 1.
>    import classes.BuildEnvironment
>
> The folder looks like this
> simple_pipeline.groovy
> external.groovy
> classes/BuildEnvironment.groovy
>
> The pipeline setup is attached.
>
> Maybe someone can point out what I'm doing wrong.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/fd89a901-5ead-4e4e-aeb5-7ae1612f140b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to