//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_local.yml-LIVE") echo "Checking ${currentProject}/app/config/config_local.yml-LIVE for enabled debug" //actuall checks assert config.debug.enabled == false } //Important thing that brakes everything if removed. Java..... return this;