It seems the target site is forcing a redirection to https.

-L will work.

An alternative solution is downloading from the target link, i.e.
https://build.opnfv.org/artifacts.opnfv.org/fuel/latest.properties


On Wed, Nov 16, 2016 at 3:00 PM <[email protected]> wrote:

> I think I find the reason.
> ZTE PODs use URL
> http://build.opnfv.org/artifacts.opnfv.org/fuel/latest.properties to
> fetch latest.properties and ISO file. If use curl to download via this url,
> it should add parameter -L.
> And It doesn't affect PODs which use url
> http://artifacts.opnfv.org/fuel/latest.properties
>
> [opnfvjenkins@server28 ~]$ curl -s -o latest.properties
> http://build.opnfv.org/artifacts.opnfv.org/fuel/latest.properties
> [opnfvjenkins@server28 ~]$ cat latest.properties
> <html>
> <head><title>301 Moved Permanently</title></head>
> <body bgcolor="white">
> <center><h1>301 Moved Permanently</h1></center>
> <hr><center>nginx/1.10.2</center>
> </body>
> </html>
> [opnfvjenkins@server28 ~]$ curl -L -s -o latest.properties
> http://build.opnfv.org/artifacts.opnfv.org/fuel/latest.properties
> [opnfvjenkins@server28 ~]$ cat latest.properties
> OPNFV_ARTIFACT_VERSION=2016-11-16_04-00-10
> OPNFV_GIT_URL=https://gerrit.opnfv.org/gerrit/fuel
> OPNFV_GIT_SHA1=d4b0f79649da3ad7a3f3f59d3b92ea230f5b1826
> OPNFV_ARTIFACT_URL=artifacts.opnfv.org/fuel/opnfv-2016-11-16_04-00-10.iso
>
> OPNFV_ARTIFACT_SHA512SUM=0db27bdd560b58d7c412f3cea10047e7496bbdf2e3be9d1c3c9be0b6438a8c4be7053cf899f54e85cf86d07fce8e9118d460f6f52aa22100fc5983402ba1e20c
> OPNFV_BUILD_URL=
> https://build.opnfv.org/ci/job/fuel-build-daily-master/1301/
> [opnfvjenkins@server28 ~]$
>
>
>
> Br,
> Zhihui
>
> *吴之惠   WuZhihui*
>
> 软件测试工程师   Software Test Engineer
> 虚拟化开发七部 / 无线产品经营部    VI Development Dept.VII/ Wireless Product Operation
>
>
>
> 上海市浦东新区碧波路889号/上研D座2楼
> 2/D, Shanghai R&D Building, ZTE Corporation
> 889# Bibo Rd, Pudong New District,Shanghai, P.R.China, 201203
> T: +86 021 68896651 <021%206889%206651>    M: +86 18121012137
> <181%202101%202137>
> E:Wu.zhihui1 @zte.com.cn
> *www.zte.com.cn* <http://www.zte.com.cn/>
>
>
>
>
> *吴之惠098564/user/zte_ltd*
>
> 2016/11/15 11:16
>
> 收件人
> "[email protected]" <[email protected]>,
>
>
> 抄送
> 主题
> [opnfv-tech-discuss][fuel][CI]Fuel deployment CI job is failed on ZTE PODs
>
>
>
> Hi Fuel team,
>
> Fuel deployment CI job is failed on ZTE PODs. See
> https://build.opnfv.org/ci/job/fuel-deploy-zte-pod1-daily-master/lastBuild/console
>
> [fuel-deploy-zte-pod1-daily-master] $ /bin/bash
> /tmp/hudson6589147116698030944.sh
> Downloading
> *http://build.opnfv.org/artifacts.opnfv.org/fuel/latest.properties*
> <http://build.opnfv.org/artifacts.opnfv.org/fuel/latest.properties>
>
> latest.properties: line 1: html: No such file or directory
> Build step 'Execute shell' marked build as failure
>
> It cause by the path of file "latest.properties". According to
> fuel-download-artifact.sh, latest.properties is downloaded to $WORKSPACE. I
> check the file exists in $WORKSPACE.
> But why check and source latest.properties without path $WORKSPACE?
> And I am curious that this error seems only happen on ZTE PODs. Any idea
> about this problem? Thanks in advance.
>
> Br,
> Zhihui
>
>
>
> *吴之惠   WuZhihui*
> 软件测试工程师   Software Test Engineer
> 虚拟化开发七部 / 无线产品经营部    VI Development Dept.VII/ Wireless Product Operation
>
>
>
> 上海市浦东新区碧波路889号/上研D座2楼
> 2/D, Shanghai R&D Building, ZTE Corporation
> 889# Bibo Rd, Pudong New District,Shanghai, P.R.China, 201203
> T: +86 021 68896651 <021%206889%206651>    M: +86 18121012137
> <181%202101%202137>
> E:Wu.zhihui1 @zte.com.cn
> *www.zte.com.cn* <http://www.zte.com.cn/>
>
>
>
> _______________________________________________
> opnfv-tech-discuss mailing list
> [email protected]
> https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
>
_______________________________________________
opnfv-tech-discuss mailing list
[email protected]
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to