jenkinsci / build-timeout-plugin

Jenkins build-timeout plugin
https://plugins.jenkins.io/build-timeout/
31 stars 80 forks source link

Fix global timeout logging for Abstract Project issue #105

Closed krisstern closed 1 year ago

krisstern commented 1 year ago

Fixes #100

Description

Add overloading of the timeOutFor method for hudson.model.AbstractProject in src/main/java/hudson/plugins/build_timeout/global/GlobalTimeOutConfiguration.java and add corresponding overloading of setUpEnvironment method in src/main/java/hudson/plugins/build_timeout/global/GlobalTimeOutRunListener.java to make sure this does nothing when we have a Matrix job or any job that is inherited from the AbstractProject class. Previous failed attempt to solve this include #104. This will be a more thorough treatment of the issue compared to that superficial one.

Checklist