Both the MavenInstaller and GradleInstaller are very similar
public static class MavenInstaller extends DownloadFromUrlInstaller {
public class GradleInstaller extends DownloadFromUrlInstaller {
I thought perhaps they used different implementation, and that was the
reason for why GradleInstaller had problems.
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/Maven.java
https://github.com/jenkinsci/gradle-plugin/blob/master/src/main/java/hudson/plugins/gradle/GradleInstaller.java
Both Jenkins Server and Build agents are behind a firewall. The Jenkins has
proxy configured, but the build agents do not have any proxy configured.
I have same problem using Gradle wrapper, but as mentioned earlier here
gradle wrapper works if I configure proxy properties.
onsdag 25. september 2019 10.41.32 UTC+2 skrev Sverre Moe følgende:
>
> Which projects has the source code for the Maven, Gradle and Groovy Tool
> installers? I want to have a check to see if there is something to be done
> on the Gradle and Groovy tool installers.
>
> onsdag 25. september 2019 10.30.17 UTC+2 skrev Sverre Moe følgende:
>>
>> The Gradle tool installer is not the only tool having this problem. I am
>> getting the same SSL problem with Groovy tool installers.
>>
>> Makes me wonder, what does the maven tool installer do different than the
>> Gradle and Groovy tool installers.
>>
>> mandag 23. september 2019 22.26.10 UTC+2 skrev Sverre Moe følgende:
>>>
>>> I have gotten this problem both for Jenkins running Java 8u221 and Java
>>> 11.0.4+11. The latest for both 8 and 11.
>>>
>>> Maven tool download works just fine, using the same JDK, so why would
>>> the gradle installer have a problem?
>>>
>>> I do not like to check in the gradle wrapper files into version control,
>>> but considering it might ease new developers I am beginning to lean into it.
>>>
>>> mandag 23. september 2019 18.25.04 UTC+2 skrev Jan Monterrubio følgende:
>>>>
>>>> I’ve always relied on projects supplying the gradle wrapper instead...
>>>> that might be a good alternative if you can’t upgrade the JRE
>>>>
>>>> On Mon, Sep 23, 2019 at 05:37 Daniel Beck <[email protected]> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Mon, Sep 23, 2019 at 2:28 PM Sverre Moe <[email protected]> wrote:
>>>>>
>>>>>> ERROR: Failed to download
>>>>>> https://services.gradle.org/distributions/gradle-5.6.2-bin.zip from
>>>>>> agent; will retry from master
>>>>>>
>>>>>> sun.security.provider.certpath.SunCertPathBuilderException: unable to
>>>>>> find valid certification path to requested target
>>>>>>
>>>>>>
>>>>>>
>>>>>> Which makes me believe that the Gradle tool does not use Jenkins
>>>>>> Proxy settings, while Maven tools does use it.
>>>>>>
>>>>>
>>>>> The error means it's an SSL issue. If you're on an old JRE, update it.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Jenkins Users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/CAMo7PtLJW%2BeMQ-509sB%2Bv%2BdAtz_%3DDudWMsiE-eCdZYfduAPcyA%40mail.gmail.com
>>>>>
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMo7PtLJW%2BeMQ-509sB%2Bv%2BdAtz_%3DDudWMsiE-eCdZYfduAPcyA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a8ae71dc-3515-499c-a038-26a80eebc3a0%40googlegroups.com.