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

💣 Bug: Jenkins Installation Failed with Plugins Dependencies Error #1094

Closed
daniel-hutao opened this issue Sep 15, 2022 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@daniel-hutao
Copy link
Member

What Happened?

  • kubectl logs -f -n jenkins jenkins-0 -c init
io.jenkins.tools.pluginmanager.impl.AggregatePluginPrerequisitesNotMetException: Multiple plugin prerequisites not met:
Plugin workflow-aggregator:581.v0c46fa_697ffd (via pipeline-model-definition:2.2114.v2654ca_721309->git-client:3.12.0) depends on configuration-as-code:1512.vb_79d418d5fc8, but there is an older version defined on the top level - configuration-as-code:1429.v09b_044a_c93de,
Plugin git:4.11.3 (via git-client:3.12.0) depends on configuration-as-code:1512.vb_79d418d5fc8, but there is an older version defined on the top level - configuration-as-code:1429.v09b_044a_c93de
	at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:240)
	at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:189)
	at io.jenkins.tools.pluginmanager.cli.Main.main(Main.java:52)
	Suppressed: io.jenkins.tools.pluginmanager.impl.PluginDependencyException: Plugin workflow-aggregator:581.v0c46fa_697ffd (via pipeline-model-definition:2.2114.v2654ca_721309->git-client:3.12.0) depends on configuration-as-code:1512.vb_79d418d5fc8, but there is an older version defined on the top level - configuration-as-code:1429.v09b_044a_c93de
		at io.jenkins.tools.pluginmanager.impl.PluginManager.resolveRecursiveDependencies(PluginManager.java:1125)
		at io.jenkins.tools.pluginmanager.impl.PluginManager.findPluginsAndDependencies(PluginManager.java:692)
		at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:232)
		... 2 more
	Suppressed: io.jenkins.tools.pluginmanager.impl.PluginDependencyException: Plugin git:4.11.3 (via git-client:3.12.0) depends on configuration-as-code:1512.vb_79d418d5fc8, but there is an older version defined on the top level - configuration-as-code:1429.v09b_044a_c93de
		at io.jenkins.tools.pluginmanager.impl.PluginManager.resolveRecursiveDependencies(PluginManager.java:1125)
		at io.jenkins.tools.pluginmanager.impl.PluginManager.findPluginsAndDependencies(PluginManager.java:692)
		at io.jenkins.tools.pluginmanager.impl.PluginManager.start(PluginManager.java:232)
		... 2 more
Multiple plugin prerequisites not met:
Plugin workflow-aggregator:581.v0c46fa_697ffd (via pipeline-model-definition:2.2114.v2654ca_721309->git-client:3.12.0) depends on configuration-as-code:1512.vb_79d418d5fc8, but there is an older version defined on the top level - configuration-as-code:1429.v09b_044a_c93de,
Plugin git:4.11.3 (via git-client:3.12.0) depends on configuration-as-code:1512.vb_79d418d5fc8, but there is an older version defined on the top level - configuration-as-code:1429.v09b_044a_c93de

How to Reproduce?

  • config-jenkins.yaml
---
# core config
varFile: "" # If not empty, use the specified external variables config file
toolFile: "" # If not empty, use the specified external tools config file
pluginDir: "~/.devstream/plugins"
state: # state config, backend can be local or s3
  backend: local
  options:
    stateFile: devstream.state

---
tools:
  # name of the tool
  - name: jenkins
    # id of the tool instance
    instanceID: default
    # format: name.instanceID; If specified, dtm will make sure the dependency is applied first before handling this tool.
    dependsOn: [ ]
    # options for the plugin
    options:
      # Helm repo information
      repo:
        # name of the Helm repo
        name: jenkins
        # url of the Helm repo
        url: https://charts.jenkins.io
      # Helm chart information
      chart:
        # local path of the chart; if chartPath != "", repo.name and repo.url will be ignored. e.g. "foo.tgz", "./foo.tgz", "/tmp/foo.tgz"
        chartPath: ""
        # name of the chart
        chartName: jenkins/jenkins
        # k8s namespace where jenkins will be installed
        namespace: jenkins
        # whether to wait for the release to be deployed or not
        wait: true
        # the time to wait for any individual Kubernetes operation (like Jobs for hooks). This defaults to 5m0s
        timeout: 5m
        # whether to perform a CRD upgrade during installation
        upgradeCRDs: true
        # custom configuration. You can refer to [Jenkins values.yaml](https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/values.yaml)
        valuesYaml: |
          serviceAccount:
            create: true
            name: jenkins
          controller:
            adminUser: "admin"
            adminPassword: "changeme"
            serviceType: NodePort
            nodePort: 32000
          additionalPlugins:
            # install "GitHub Pull Request Builder" plugin, see https://plugins.jenkins.io/ghprb/ for more details
            - ghprb
            # install "OWASP Markup Formatter" plugin, see https://plugins.jenkins.io/antisamy-markup-formatter/ for more details
            - antisamy-markup-formatter
          # Enable HTML parsing using OWASP Markup Formatter Plugin (antisamy-markup-formatter), useful with ghprb plugin.
          enableRawHtmlMarkupFormatter: true
          # Jenkins Configuraction as Code, refer to https://plugins.jenkins.io/configuration-as-code/ for more details
          # notice: All configuration files that are discovered MUST be supplementary. They cannot overwrite each other's configuration values. This creates a conflict and raises a ConfiguratorException.
          JCasC:
            defaultConfig: true

Anything else

No response

DevStream Version

latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant