RDTK / generator

A tool for creating Jenkins jobs and other things from recipes describing software projects
GNU General Public License v3.0
21 stars 3 forks source link

install-jenkins command misinstalls plugins #42

Closed LeroyR closed 5 years ago

LeroyR commented 5 years ago

Which generator version are you using?

build-generator-0.31-x86_64-linux --version
build-generator 0.31.36
asdf            3.3.1
SBCL            1.5.5.0.sbcl-1.5.5.0-8ffc9ea

What did you do?

build-generator-0.31-x86_64-linux install-jenkins -u jenkins -p jenkins -e jenkins@erebos jenkins
[####################] 100.00 % INSTALL/CORE
[                    ] ???.?? % INSTALL/PLUGIN: apache-httpcomponents-client-4-a[####################] 100.00 % INSTALL/PLUGIN
[######              ]  33.33 % INSTALL/CONFIG-FILE: single-user:io.jenkins.plug[##########          ]  50.00 % INSTALL/CONFIG-FILE: single-user:hudson.plugins.[#############       ]  66.67 % INSTALL/CONFIG-FILE: single-user:hudson.plugins.[####################] 100.00 % INSTALL/CONFIG-FILE
[####################] 100.00 % INSTALL/USER

Jenkins settings page now shows errors:

Dependency errors:

Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins to restore the functionality provided by these plugins.

Warnings Plug-in version 5.0.1
    Matrix Project Plugin version 1.4.1 is older than required. To fix, install version 1.13 or later.

Extra Columns Plugin version 1.20
    JUnit Plugin version 1.6 is older than required. To fix, install version 1.11 or later.

xUnit plugin version 2.3.5
    JUnit Plugin version 1.6 is older than required. To fix, install version 1.25 or later.

Warnings Next Generation Plugin version 6.0.3
    OWASP Markup Formatter Plugin version 1.1 is older than required. To fix, install version 1.5 or later.
    Matrix Project Plugin version 1.4.1 is older than required. To fix, install version 1.13 or later.

Jenkins Git plugin version 3.12.1
    mailer version 1.18 is missing. To fix, install version 1.18 or later.
    Matrix Project Plugin version 1.4.1 is older than required. To fix, install version 1.7.1 or later.

Maven Integration plugin version 3.4
    mailer version 1.7 is missing. To fix, install version 1.7 or later.

LDAP Plugin version 1.11
    mailer version 1.8 is missing. To fix, install version 1.8 or later.

Jenkins Mercurial plugin version 2.8
    Matrix Project Plugin version 1.4.1 is older than required. To fix, install version 1.14 or later.

Downstream dependency errors:

These plugins failed to load because of one or more of the errors above. Fix those and these plugins will load again.

GitHub plugin version 1.29.4
    Jenkins Git plugin version 3.12.1 failed to load. Fix this plugin first.
Static Analysis Utilities version 1.96
    Maven Integration plugin version 3.4 failed to load. Fix this plugin first.
PMD Plug-in version 4.0.0
    Maven Integration plugin version 3.4 failed to load. Fix this plugin first.
Warnings Plug-in version 5.0.1
    Warnings Next Generation Plugin version 6.0.3 failed to load. Fix this plugin first.
Checkstyle Plug-in version 4.0.0
    Maven Integration plugin version 3.4 failed to load. Fix this plugin first.
Task Scanner Plug-in version 4.53
    Maven Integration plugin version 3.4 failed to load. Fix this plugin first.

Which behavior did you expect?

Installed jenkins works out of the box

scymtym commented 5 years ago

Fixed in 78602db8.

Installed plugins now use the "jpi" file extension (instead of "hpi").