Skip to content

Conversation

@pmarkiewka
Copy link
Contributor

@pmarkiewka pmarkiewka commented Jun 20, 2025

Add skipPlugins and skipRestart flags for Jenkins and SCM-Manager.

  • Update config schema and CLI options
  • Add env var support to feature classes
  • Skip plugin install and restart in init scripts
  • Extract SCM plugin install logic to installScmmPlugins
  • Add tests to verify skipping behavior
    Config:
scmm: 
   skipRestart: true
   skipPlugins: true
jenkins:
    skipRestart: true
    skipPlugins: true

CLI Options:

--jenkins-skip-restart
--jenkins-skip-plugins
--scmm-skip-restart
--scmm-skip-plugins

@schnatterer schnatterer changed the title feat: make Jenkins and SCM plugin install and restart optional Make Jenkins and SCM plugin install and restart optional Jun 20, 2025
@schnatterer schnatterer force-pushed the feature/skipper branch 3 times, most recently from 14931e6 to bf94364 Compare June 20, 2025 16:23
pmarkiewka and others added 2 commits June 20, 2025 19:01
Add skipPlugins and skipRestart flags for Jenkins and SCM-Manager.

- Update config schema and CLI options
- Add env var support to feature classes
- Skip plugin install and restart in init scripts
- Extract SCM plugin install logic to installScmmPlugins
- Add tests to verify skipping behavior

Co-authored-by: Johannes Schnatterer <johannes.schnatterer@cloudogu.com>
This is the right thing to do in regard to GOP modularity.

It also reduces the risk of running into this notorious error:

java.lang.RuntimeException: Cannot enable authentication for prometheus: groovy.lang.MissingPropertyException: No such property: PrometheusConfiguration for class: Script1

Caused by running the Config Script on Jenkins that fails because the
Prometheus APIs are missing there.
@schnatterer schnatterer merged commit 2f3801f into main Jun 20, 2025
1 check passed
@schnatterer schnatterer deleted the feature/skipper branch June 20, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants