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