We are using shared library bu some of the teams are not using our shared library. So we are looking for an option where we wanted to append one of the security stage for every pipeline start.
Or we can have one pipeline where it has the security stage, can we trigger that pipeline for every pipeline trigger.
I have been looking for something similar where a library call could be triggered unconditionally for every single pipeline in order to inject bootstrapping or validation logic. So far this seems to be near impossible without the creation of a custom plugin in Java. The best you might be able to do is to add a CI check on all your jenkinsfiles and grep to ensure that the call you require is included in all jenkinsfiles. This is far from being bullet proof, but can help capture most of this.