golemfactory / concent-deployment

Scripts and configuration for Concent deployment
5 stars 8 forks source link

Jenkins: Always install specific versions of plugins #287

Open bartoszbetka opened 5 years ago

bartoszbetka commented 5 years ago

The configure-jenkins.yml playbook always installs newest versions of Jenkins plugins. This behaviour can cause errors because newer plugins might not always work with our Jenkins version unless we update it too. We need to install specific versions of plugins. One way to do this is:

           curl                                                                                                               \
              -X POST                                                                                                    \
              --show-error                                                                                              \
              -u $(sudo cat /home/jenkins/concent-secrets/jenkins/.token)                    \
              -d "<jenkins><install plugin="workflow-aggregator@2.6" /></jenkins>"     \
              --header "Content-Type: text/xml"                                                             \
              http://localhost:8080/pluginManager/installNecessaryPlugins

This solution sometimes does not manage to install the plugin successfully and must be investigated.

PaweuB commented 5 years ago

Pivotal: https://www.pivotaltracker.com/story/show/163085467