I have a similar problem with an enum class. 
Has anyone a solution or a hint to solve that issue.

Am Mittwoch, 8. Juni 2016 22:06:46 UTC+2 schrieb Lars Meynberg:
>
> 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/2e3b1860-f750-4288-b31f-ecdcef8494cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to