Jenkins: cannot automatically install gradle. No version list from Gradle.org - jenkins

in Jenkins, I have always used the option to install Gradle automatically from the Gradle.org server (Manage Jenkins -> Configure System -> Gradle Installations.
Now I have set up a new Jenkins installation on an Ubuntu 14 System.
I installed the Gradle plugin, but now, when I choose "Install automatically" in the Gradle configuration, I am not able to choose the Gradle version that should be downloaded. Usually you get a select box with all available Gradle versions, but in my case, I only get an empty text field under "Install from Gradle.org".
Please see the screenshot
http://i.imgur.com/BxpxwgQ.png

The list of available Gradle versions shown in that UI is download perodically by Jenkins.
However, for Jenkins versions older than 1.619, the list was not fetched after installing a plugin for the first time.
So if you just have the empty text field, most likely the downloading has failed, or you have an older Jenkins version.
As a workaround, you can visit Manage Jenkins > Manage Plugins > Advanced, and click on Check now at the bottom of the page. This will trigger an update of the Gradle versions.

Using Check now button did not work for me.
Nor re-installing the Gradle plugin.
I only got an empty text field under "Install from Gradle.org".
Although, changing browser from Firefox to Chrome helped.
I've lost 2 hours with this when I've finally figured this out. :)

Related

Jenkins plugin updates are unavailable

I have updated my jenkins server and see the following message for some plugins. I am not sure how to fix this. I looked at the dependencies section for that plugin and I see they are already installed. Not sure what else is missing so I can see the update available. Dependency for this is Mailer which is already installed on my server.
That is frustrating but you can try uploading plugins manually.
You can download plugins from here link to plugin storage.
Of course you have to roughly see what version of the plugin goes with your jenkins version.
Once you downloaded 'proper' plugin version, you go to manage plugins, advanced tab and there you can upload the plugin file. After that restart jenkins and check changes. You should really go to manage plugins, updated plugin tab and update selected plugins...
It could be guess work, but I'm sure after a couple of guesses you'll get to the version of Jenkins you have.
You might need to upgrade jenkins.. here are all jenkins war files:
https://get.jenkins.io/war-stable/
Last but not least... don't try to fix all dependencies.. fix those you use, rest is optional.

Some plugins could not be loaded due to unsatisfied dependencies. Fix these issues and restart Jenkins

I was working on jenkins and working fine but i don't know what happened Jenkins shows following errors and no jobs are visible to me after that:
I am new in jenkins please help me to solve this.
As I understand the problem it could happened in cause of downgrading jenkins version or updating plugins "Pipeline: Node and Processes".
You need to restore previous jenkins version or downgrade plugin.
Additionally you can configure jenkins to get plugins' versions which fit your jenkins version in "Manage Jenkins" -> "Manage plugins" -> "Advanced" -> "Update site" and set the version you are currently using (for example https://updates.jenkins.io/stable-2.176/update-center.json)
Jenkins plugins are dependent on Jenkins LTS versions in use. Best way is while installing the Jenkins take latest (but stable) version of plugins.
Since you are using 1.176 version and trying to upgrade the plugins, the latest plugins do not support the older version of Jenkins (since Jenkins follow Parallel incremental development).
You can resolve the problem in 2 ways.
1. Downgrade the plugins and keep the LTS Jenkins version as it is. (not preferred solution since you will not be able to use latest functionality of the plugins and using old plugins is not secured).
Downgrade of plugins will also be suggested by Manage Jenkins --> Manage Plugins --> Installed
2. Upgrade Jenkins version (LTS 2.24x.x)
It is time taking option, but if you are heavely using jenkins for your work it is more suggested to upgrade the version. Besides new plugins have more secured and vast functionalities.
You can check the Changelog and can decided which version is good for you.
Take a reference of Upgrading Jenkins link.
To understand plugins and Jenkins LTS version dependency, use Jenkins wiki(Confluence Page).
e.g. Pipeline:Node and Processes plugin wiki indicates that for version 2.29 you need to have Jenkins version 1.150.1 or higher.
Note: Latest Jenkins version supports HTTPS instead of HTTP URL for advanced proxy options under Manager Jenkins.

jenkins 2 dependency errors loading some plugins

I have a newly intalled jenkins v 2.36 on ubuntu 14.04 LTS. during the installation process jenkins installed all plugins except pipeline and got stuck on installation. After that i restarted jenkins with
service jenkins restart and was able to create new administrative user, Here is the screen shot of error on jenkins dashboard, the correct button doesnt fix this error.
what should i do to resolve this error ?
The error is
There are dependency errors loading some plugins:
Pipeline: Stage View Plugin v2.4
pipeline-rest-api v2.4 is missing. To fix, install v2.4 or later.
Pipeline v2.4
Pipeline: Stage View Plugin v2.4 failed to load. Fix this plugin first.
It is always good to install the plugin via "Manage Jenkins -> Plugin Manager" , so that the plugin will install its dependencies automatically.
But sometimes due to slow internet connection or other reasons, it fails to do automatically. In that case, we need to do it manually under the Manage Plugins -> Advances Option -> Upload plugin.
So, in your case, it is failing for the below two dependent plugins:
pipeline-rest-api v2.4 is missing. To fix, install v2.4 or later.
Please install the pipeline-rest-api plugin. Also, please install other dependent plugins too for safer side.
List of dependent plugins for any Jenkins plugin.:
https://plugins.jenkins.io/workflow-aggregator
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Stage+View+Plugin
Helpful link jenkins_dependency_error that helped me solve this issue
Download the plugin from here latest pipeline.
Go to jenkins dashboard > Manage jenkins> Manage Plugin > [select Advanced Tab]
select upload plugin file (select the option "restart after installation" )

Jenkins Grails plugin does not list lastest versions of Grails

When installing a new Grails from Jenkins web UI, a user is given the choice of some versions - up to 2.4.4 and 3.0, but 2.4.5 and 2.5 are missed.
How to add 2.4.5 to that list?
P.S. Jenkins 1.598, Grails plugin 1.7 (latest)
There is an automated process within the Jenkins project infrastructure which updates the list of available versions daily.
Your Jenkins installation periodically downloads this file and uses it to populate the version list in the web UI.
Unfortunately, at the time of asking this question, that automated process was broken.
You can either wait for the bug to be fixed (it is now), or there should be the option to "Install from .zip/.tgz" instead of "Install from mirrors", where you can enter the URL to the Grails 2.4.5 zip file.
You have to go to "Manage Jenkins"/"Configure System"/"Grails installations" and put there the path where your installation is.

Updating jenkins plugin from source

I currently have Build User Vars Plugin 1.1 installed in my Jenkins. Since version 1.1 of the plugin, there has been some important changes to the plugin code, and I want to pick them up. The question is what is the least amount of work to package up the hpi/jpi file that I can push on my Jenkins install that will contain latest changes.
It's fairly easy to build a plugin locally; you can then upload the hpi/jpi file to Jenkins via the Advanced tab in the plugin manager.
See the Jenkins plugin tutorial for detailed steps.

Resources