jenkinsci / jenkinsci/workflow-cps-global-lib-plugin
[JENKINS-47108] Automatically execute global library step before every pipeline run
- Dominant language
- Java
- Stars
- 227
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
I would like to run some security/sanitation checks before every pipeline that gets run. It would do things like:
- Check for certain files existing in the repository.
- Check the contents of some files to validate certain conditions are met with those contents.
The above could be accomplished (as well as arbitrarily many other things) if a library is able to define a default step to run from the global pipeline library before every pipeline run for all projects and branches.
This is different than JENKINS-45415">JENKINS-45415 because it could show up in user pipeline visualizations as an actual pipeline stage.
---
Originally reported by
sag47, imported from: Automatically execute global library step before every pipeline run
Raw content of original issue
I would like to run some security/sanitation checks before every pipeline that gets run. It would do things like:
- Check for certain files existing in the repository.
- Check the contents of some files to validate certain conditions are met with those contents.
The above could be accomplished (as well as arbitrarily many other things) if a library is able to define a default step to run from the global pipeline library before every pipeline run for all projects and branches.
This is different than JENKINS-45415 because it could show up in user pipeline visualizations as an actual pipeline stage.
Contributor guide
Assessment
This issue has not been assessed yet.