//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" //Actual checks assert config.debug == false } //Important thing that breaks everything if removed. Java..... return this;