yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #14892
Re: gitlab artifacts missing
-
From:
"Janek Kozicki (yade)" <jkozicki-yade@xxxxxxxxx>
-
Date:
Thu, 14 Nov 2019 13:52:04 +0100
-
Cc:
Bruno Chareyre <bruno.chareyre@xxxxxxxxxxxxxxx>, Yade developers <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
Face:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEUBAQEtLS1KSkpRUVFXV1dYWFhjY2Nzc3N3d3eHh4eKioqdnZ24uLjLy8vc3NxVIagyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2AIVEzgS1fgQtQAAAjRJREFUOMtt1DFv00AUAOAzFQNbjigSyoQaRaBMhKgLUyKXpVNNeUpk9vyDqFJhQ1kiBuaqAwJCqvPtSLY7RlTn5+5IdnYkkt/AOyfxXVLe5vf53Z1875kd34tOEax8djmj6GyjhB5bxz50GdsVZr9fqRjZwAtKOJw5Wqs2MMZ16ALHsaDncF7xAHix1oEFHAB8f+pRjcO4gfZDykcYzbiucRolOLUJ6kjA0xtVt+A6TySlM0RajIpK6DzwKZ/nOYbF/gclHMo1ZOHYY/+Ha+AWuM+3oMS4eeqYzZ8FiCltgUqI8cd2wwAVpJk+8LWYjBtnJdQpHQqJMd4Oxt4bU9ESiFGc5hkqaH74asAX4iabP5I5gZ+qjgGlJCqZa3h3lxhoeVcSE1qLQC4sqKOK9MGW9E3izFqqHokoztLFEgXg31sbZEKnWi2T74A4NxfVQqlkjKtcAWD+zcArFEES01dR0E/nnV0IgugmDd/2L84sOAouRBBHEc7gtc8teDkRlE0iNQPo2w3Xhh/D4TCIQ4LRLoTvgwjj6RRgavdurxYGMaIuGOyAW/PpNlCcU9/93AHenAWYjPoAwa+G3e3to/MgFNTAEKvKDjzuCzHTnY3qqdXtx24VijzQfZ0yewZ5cwRFQaa+mIYr1uI0I76+3W4xhlvoVRwOA0Fdl64HlJnxP6T8YpX/Lga4Wv4A3ErrU5oTfN7Mu/llXMl8RXEPji/lQkN3H7qXqgC2By47EXeU/7PJ/wPxRKMnuZwIeAAAAABJRU5ErkJggg==
-
In-reply-to:
<CALF6qJ=f6Wgvrq66FT5Zxkcm2P+PGz6pmmpEg2Cdk0-qaC6X9A@mail.gmail.com>
-
Organization:
Gdańsk University of Technology, YADE software
A very simple explanation of how && works: do this command:
ls && ls /wrongdir && ls
Then do this command:
ls && ls && ls
You will see that in the first case the failure of 'ls /wrongdir'
prevented execution of last 'ls'. That's how && works. The next
command is executed only if the previous one was a success.
cheers
Janek
Anton Gladky said: (by the date of Wed, 13 Nov 2019 20:33:14 +0100)
> Hallo Bruno,
>
> could you please send me a script, which is doing the download/upload?
>
> Actually, when I do
>
> "wget https://gitlab.com/yade-dev/trunk/-/jobs/artifacts/master/download?job=pages"
>
> I get right now the error code 8.
>
> Actually, if you use the symbol &&, it will not execute the next step,
> if the previous one failed.
>
> Something like:
>
> wget https://gitlab.com/yade-dev/trunk/-/jobs/artifacts/master/download?job=pages
> && rm -rf /var/www/yade-dem.org && cp * /var/www/yade-dem.org
>
> should solve the problem. If wget fails, like in this case - rm and cp
> will not be executed. And we get old documentation,
> but in any case - not the empty pages.
>
> I hope, my writings can be understood :)
>
> Regards
>
> Anton
>
> Am Mi., 13. Nov. 2019 um 18:05 Uhr schrieb Bruno Chareyre
> <bruno.chareyre@xxxxxxxxxxxxxxx>:
>
> >
> > Hi there,
> > yade-dem.org is currently down while yade-dev.gitlab.io/trunk/ is not.
> >
> > The reason is that yade server is downloading the gitlab artifacts like this:
> > wget https://gitlab.com/yade-dev/trunk/-/jobs/artifacts/master/download?job=pages,
> > but at the moment that url returns nothing. Hence empty website.
> >
> > Obviously our script should test the output of wget, to not replace the content by nothing. We can fix this. Even so, I would like to understand why the artifacts are not there. They usually are. Is it because they expired on gitlab? Is it because of a failed pipeline?
> > Maybe we should form another url to try and get the content of yade-dev.gitlab.io/trunk/ (if possibe) instead of checking out an artifact.
> > I don't have time to check more right now so in case someone has inspiration, let me know:
> > - if you know how to make wget conditional
> > - if you know a better target url
> >
> > Cheers
> >
> > Bruno
> >
> > --
> > --
> > _______________
> > Bruno Chareyre
> > Associate Professor
> > ENSE³ - Grenoble INP
> > Lab. 3SR
> > BP 53
> > 38041 Grenoble cedex 9
> > Tél : +33 4 56 52 86 21
> > ________________
> >
> > Email too brief?
> > Here's why: email charter
> > _______________________________________________
> > Mailing list: https://launchpad.net/~yade-dev
> > Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~yade-dev
> > More help : https://help.launchpad.net/ListHelp
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help : https://help.launchpad.net/ListHelp
--
--
Janek Kozicki, PhD. DSc. Arch. Assoc. Prof.
Gdańsk University of Technology
Faculty of Applied Physics and Mathematics
Department of Theoretical Physics and Quantum Information
--
http://yade-dem.org/
http://pg.edu.pl/jkozicki (click English flag on top right)
References