//currentProject folder is created during build for project files and has a date stamp in the name. //Needs to be passed from main pipeline def exec(String currentProject){ //load config to check def config = readYaml(file: "${currentProject}/app/config/config.yml") echo "Checking ${currentProject}/app/config/config.yml for enabled debug" //Actuall tests assert config.debug.enabled == false } //Important thing that brakes everything if removed. Java..... return this;