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.