Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement annotation for allowing higher tier configuration without forcing library loading #157

Open
cokieffebah opened this issue Jan 21, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@cokieffebah
Copy link

Use Case

Allow a tier to define a configuration but not force the library to be loaded by subsequent project

Feature Request

implement '@transient' annotation in pipeline_config such that during configuration aggregration if the affected item is not redefined, the final configuration annotation does not contain the annotated configuration.

the @transient would have to be redefined on each intermediate tier ... the annotation would not automatically cascade through an intermediate tier(s) to the final projects

tier 1 pipeline_config.groovy

...
libraries{
  @transient maven{
      base_command = "mvn"
   }
  ...
}

project1 pipeline_config.groovy

// no libraries.maven
libraries{

}

project2 pipeline_config.groovy


libraries{
  maven{}
}

then the project1 final configuration will not contain libraries.maven and project 2 will have libraries.maven with the base_command

@cokieffebah cokieffebah added the enhancement New feature or request label Jan 21, 2021
@cokieffebah cokieffebah self-assigned this Jan 21, 2021
@cokieffebah cokieffebah changed the title implement annotation for allowing higher tier configuration without requiring library loading implement annotation for allowing higher tier configuration without forcing library loading Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant