Jenkins Gradle Plugin Issue

Several of our users have reported issues with the gradle plugin.  Specifically using the plugin results in a 403:

[Gradle] - Launching build.
Unpacking http://services.gradle.org/distributions/gradle-2.3-bin.zip to /opt/bitnami/apps/jenkins/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.3 on Jenkins
FATAL: Failed to install http://services.gradle.org/distributions/gradle-2.3-bin.zip to /opt/bitnami/apps/jenkins/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.3
java.io.IOException: Failed to install http://services.gradle.org/distributions/gradle-2.3-bin.zip to /opt/bitnami/apps/jenkins/jenkins_home/tools/hudson.plugins.gradle.GradleInstallation/Gradle_2.3
	at hudson.FilePath.installIfNecessaryFrom(FilePath.java:831)
	at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:70)
	at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:68)
	at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:107)
	at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:205)
	at hudson.plugins.gradle.GradleInstallation.forNode(GradleInstallation.java:98)
	at hudson.plugins.gradle.Gradle.performTask(Gradle.java:209)
	at hudson.plugins.gradle.Gradle.perform(Gradle.java:116)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
	at hudson.model.Build$BuildExecution.build(Build.java:203)
	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
	at hudson.model.Run.execute(Run.java:1751)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-2.3-bin.zip

 

It appears to be an issue with the gradle jenkins plugin reporting the wrong URL. This is shown on the servers with a CURL command:

curl http://services.gradle.org/distributions/gradle-2.3-bin.zip

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>301 Moved Permanently</title>

</head><body>

<h1>Moved Permanently</h1>

<p>The document has moved <a href="http://downloads.gradle.org/distributions/gradle-2.3-bin.zip">here</a>.</p>

<hr>

<address>Apache/2.2.3 (CentOS) Server at services.gradle.org Port 80</address>

</body></html>

 

We are following up with that plugin but in the meantime please contact us if you run into this issue as the work around would be to manually install gradle on the server.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk