Jenkins.getInstance() is safe to assume non-null
- Only ever called after extensions are on the classpath and before termination - If it were somehow or other called after `Jenkins.theInstance == null` then at that point the queue has already been persisted so the trigger could have no effect anyway... much better to surface in the shutdown logs about the missed trigger than either return false or incorrectly report the job as triggered
Loading
Please register or sign in to comment