Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] Install latest nightly from hudson

As a workaround, maybe you can setup proxy manually in build.xml file:

<setproxy proxyhost="proxy.eclipse.org" proxyport="9898" />


On Mon, Sep 12, 2011 at 11:26 AM, Roy Ganor <roy@xxxxxxxx> wrote:
> For some reason, both properties are not set. We need to fix it in the sh script.
>
> check-proxy:
>   [subant] Failure for target 'postFetch' of: /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml
>   [subant] The following error occurred while executing this line:
>   [subant] /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml:22: The following error occurred while executing this line:
>   [subant] /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml:58: Properties 'http.proxyHost' and 'http.proxyPort' are both not set.
>
> Roy
> -----Original Message-----
> From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sergio Mart?n Morillas
> Sent: Sunday, September 11, 2011 7:36 PM
> To: PDT Developers
> Subject: Re: [pdt-dev] Install latest nightly from hudson
>
> Hi Roy,
>
> It seems that cbi-pdt-2.2-helios was the same problem. Comment
> reported by Jacek Pospychala:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=322828#c23
>
> Please add this check to build.xml:
>
> <target name="check-proxy" description="Checks that proxy properties
> are set before proceeding -- fails with diagnosis otherwise.">
>  <condition property="check-proxy.hostAndPortBothNotSet">
>    <and>
>      <not><isset property="http.proxyHost"/></not>
>      <not><isset property="http.proxyPort"/></not>
>    </and>
>  </condition>
>  <fail if="check-proxy.hostAndPortBothNotSet">Properties
> 'http.proxyHost' and 'http.proxyPort' are both not set.</fail>
>
>  <condition property="check-proxy.hostSetOnly">
>    <and>
>      <isset property="http.proxyHost"/>
>      <not><isset property="http.proxyPort"/></not>
>    </and>
>  </condition>
>  <fail if="check-proxy.hostSetOnly">Property 'http.proxyHost' set to
> '${http.proxyHost}' but 'http.proxyPort' not set.</fail>
>
>  <condition property="check-proxy.portSetOnly">
>    <and>
>      <isset property="http.proxyPort"/>
>      <not><isset property="http.proxyHost"/></not>
>    </and>
>  </condition>
>  <fail if="check-proxy.portSetOnly">Property 'http.proxyPort' set to
> '${http.proxyPort}' but 'http.proxyHost' not set.</fail>
>
>  <echo>Property 'http.proxyHost' is set to '${http.proxyHost}' and
> property 'http.proxyPort' is set to '${http.proxyPort}'.</echo>
> </target>
>
> This code is from Virgo project [1], they had a similar problem:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=325824
>
> [1]
> http://git.eclipse.org/c/virgo/org.eclipse.virgo.virgo-build.git/tree/multi-bundle/common.xml
>
>
> On Sun, Sep 11, 2011 at 1:23 PM, Roy Ganor <roy@xxxxxxxx> wrote:
>> After applying the patch I still see that JFlex is not fetched. I think
>> something is still missing in the arguments of the bash scripts to enable
>> the proxy page.
>>
>>
>>
>> getJFlexJar:
>>
>>
>>
>> setHttpProxy:
>>
>>
>>
>> downloadAndUnpack:
>>
>>       [get] Getting: http://jflex.de/jflex-1.4.1.zip
>>
>>       [get] To: /tmp/PDT_JFlex_files/jflex-1.4.1.zip
>>
>>       [get] Error getting http://jflex.de/jflex-1.4.1.zip to
>> /tmp/PDT_JFlex_files/jflex-1.4.1.zip
>>
>>    [subant] Failure for target 'postFetch' of:
>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml
>>
>>    [subant] The following error occurred while executing this line:
>>
>>    [subant]
>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml:22:
>> The following error occurred while executing this line:
>>
>>    [subant]
>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml:34:
>> The following error occurred while executing this line:
>>
>>    [subant]
>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/N201109110403/eclipse/plugins/org.eclipse.php.core/Resources/parserTools/build.xml:19:
>> The following error occurred while executing this line:
>>
>>    [subant]
>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/N201109110403/eclipse/plugins/org.eclipse.php.core/Resources/parserTools/jflex/build.xml:30:
>> The following error occurred while executing this line:
>>
>>    [subant]
>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/N201109110403/eclipse/plugins/org.eclipse.php.core/Resources/parserTools/jflex/build.xml:39:
>> java.net.ConnectException: Connection timed out
>>
>>
>>
>>
>>
>> From: pdt-dev-bounces@xxxxxxxxxxx [mailto:pdt-dev-bounces@xxxxxxxxxxx] On
>> Behalf Of ???
>> Sent: Saturday, September 10, 2011 2:35 PM
>> To: PDT Developers
>> Subject: Re: [pdt-dev] Install latest nightly from hudson
>>
>>
>>
>> thanks very much,I will try it soon!
>>
>> 2011/9/10 Sergio Martín Morillas <smartinmorillas@xxxxxxxxx>
>>
>> Hi Zhao, perhaps it's a proxy problem?
>>
>> http://wiki.eclipse.org/Hudson#Accessing_the_Internet_using_Proxy
>>
>> According to this page, the shell environment variables are set for
>> the Hudson build user.
>>
>> I've seen other projects using SetProxy task Ant to configure the
>> proxy in the build.xml [1]
>>
>> I have written an untested patch (attached) for
>>
>> /org.eclipse.pdt/plugins/org.eclipse.php.core/Resources/parserTools/jflex/build.xml
>>
>> Hope that helps to fix the problem.
>>
>> [1]
>> https://dev.eclipse.org/svnroot/technology/org.eclipse.osee/trunk/releng/org.eclipse.osee.server.releng/build.xml
>>
>> On Sat, Sep 10, 2011 at 11:08 AM, 赵忠伟 <zhaozhongwei@xxxxxxxxxxxxxxxx> wrote:
>>> Sergio is right!
>>>
>>> I will ask my Jacek to help to fix this,it is very easy to fix it,but I do
>>> not know how to do put the jflex.jar to the hudson server,after doing that
>>> I
>>> will change the build script.Sorry for delaying so long to fix it.
>>>
>>> 2011/9/10 Sergio Martín Morillas <smartinmorillas@xxxxxxxxx>
>>>>
>>>> Hi Robert,
>>>>
>>>> The last builds have failed, Hudson can not download the library JFlex
>>>> and fails to compile the code. So is not generated compiled build zip
>>>> :(
>>>>
>>>> It seems there is no internet connectivity available from the server
>>>> Hudson. This is the error:
>>>>
>>>> downloadAndUnpack:
>>>>      [get] Getting: http://jflex.de/jflex-1.4.1.zip
>>>>      [get] To: /tmp/PDT_JFlex_files/jflex-1.4.1.zip
>>>>      [get] Error getting http://jflex.de/jflex-1.4.1.zip to
>>>> /tmp/PDT_JFlex_files/jflex-1.4.1.zip
>>>>   [subant] Failure for target 'postFetch' of:
>>>>
>>>>
>>>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml
>>>>   [subant] The following error occurred while executing this line:
>>>>   [subant]
>>>>
>>>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml:22:
>>>> The following error occurred while executing this line:
>>>>   [subant]
>>>>
>>>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/org.eclipse.pdt.releng/buildExtra.xml:34:
>>>> The following error occurred while executing this line:
>>>>   [subant]
>>>>
>>>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/N201109090312/eclipse/plugins/org.eclipse.php.core/Resources/parserTools/build.xml:19:
>>>> The following error occurred while executing this line:
>>>>   [subant]
>>>>
>>>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/N201109090312/eclipse/plugins/org.eclipse.php.core/Resources/parserTools/jflex/build.xml:28:
>>>> The following error occurred while executing this line:
>>>>   [subant]
>>>>
>>>> /opt/users/hudsonbuild/.hudson/jobs/cbi-pdt-3.0-indigo/workspace/build/N201109090312/eclipse/plugins/org.eclipse.php.core/Resources/parserTools/jflex/build.xml:32:
>>>> java.net.ConnectException: Connection timed out
>>>>
>>>>
>>>>
>>>> On Sat, Sep 10, 2011 at 10:06 AM, Robert Gruendler
>>>> <r.gruendler@xxxxxxxxx> wrote:
>>>> > Hi,
>>>> > until recently the nightly PDT builds were available via the hudson CI
>>>> > tool
>>>> > at https://hudson.eclipse.org/hudson/job/cbi-pdt-3.0-indigo/. Every
>>>> > build
>>>> > produced an artifact named something like
>>>> > pdt-Update-N[TIMESTAMP]>.zip
>>>> >
>>>> > It looks like the structure of the build system has been changed, as
>>>> > those
>>>> > files are not available anymore. Does anyone know
>>>> > how to install the nightly PDT build at the moment?
>>>> >
>>>> > regards
>>>> >
>>>> > -robert
>>>> >
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > pdt-dev mailing list
>>>> > pdt-dev@xxxxxxxxxxx
>>>> > https://dev.eclipse.org/mailman/listinfo/pdt-dev
>>>> >
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Sergio Martín Morillas
>>>> smartinmorillas@xxxxxxxxx
>>>> _______________________________________________
>>>> pdt-dev mailing list
>>>> pdt-dev@xxxxxxxxxxx
>>>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>>>
>>>
>>>
>>> --
>>>
>>> Thanks!
>>>
>>> Best Regards!
>>>
>>> Zhao
>>>
>>> _______________________________________________
>>> pdt-dev mailing list
>>> pdt-dev@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>>>
>>>
>>
>>
>>
>> --
>> Sergio Martín Morillas
>> smartinmorillas@xxxxxxxxx
>>
>> _______________________________________________
>> pdt-dev mailing list
>> pdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>>
>>
>> --
>>
>> Thanks!
>>
>> Best Regards!
>>
>> Zhao
>>
>> _______________________________________________
>> pdt-dev mailing list
>> pdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>>
>>
>
>
>
> --
> Sergio Martín Morillas
> smartinmorillas@xxxxxxxxx
> _______________________________________________
> pdt-dev mailing list
> pdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
> _______________________________________________
> pdt-dev mailing list
> pdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>



-- 
Sergio Martín Morillas
smartinmorillas@xxxxxxxxx


Back to the top