jenkinsci / jenkinsci/workflow-cps-global-lib-plugin

[JENKINS-47108] Automatically execute global library step before every pipeline run

Open
#331 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-cps-global-lib-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): workflow-cps-global-lib-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251212-090250

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.