[squeak-dev] First green ball

Frank Shearar frank.shearar at gmail.com
Wed Aug 1 19:07:38 UTC 2012


On 1 August 2012 18:26, Chris Cunnington <smalltalktelevision at gmail.com> wrote:
>
> [root at server1 Squeak]# pwd
> /home/teamjenkins/workspace/Squeak
> [root at server1 Squeak]# ls -la
> total 67632
> drwxr-xr-x 4 teamjenkins teamjenkins     4096 Aug  1 13:00 .
> drwxr-xr-x 3 teamjenkins teamjenkins     4096 Jul 31 13:04 ..
> -rwxr-xr-x 1 jenkins     jenkins          373 Aug  1 13:00 builtastic.sh
> drwxr-xr-x 6 jenkins     jenkins         4096 Jul 31 13:04 coglinux
> drwxr-xr-x 8 jenkins     jenkins         4096 Aug  1 13:00 .git
> -rw-r--r-- 1 jenkins     jenkins         1828 Jul 31 13:04
> HelpSystem-Tests-Test.xml
> -rw-r--r-- 1 jenkins     jenkins          209 Aug  1 13:00 README.md
> -rw-r--r-- 1 jenkins     jenkins      7214653 Jul 31 13:04
> Squeak4-2012-07-31T13:04:46.33+00:00.changes
> -rw-r--r-- 1 jenkins     jenkins     18002240 Jul 31 13:04
> Squeak4-2012-07-31T13:04:46.33+00:00.image
> lrwxrwxrwx 1 root        root               9 Aug  1 13:00
> Squeak4.4-12053.changes -> /dev/null
> -rw-r--r-- 1 jenkins     jenkins     17999888 Aug  1 13:00
> Squeak4.4-12053.image
> -rw-r--r-- 1 jenkins     jenkins     25999800 Aug  1 13:00 SqueakV41.sources
> -rw-r--r-- 1 jenkins     jenkins         2595 Aug  1 13:00 tests.st
> [root at server1 Squeak]# su -s /bin/sh -c "git reset --hard" - jenkins
> fatal: Not a git repository (or any of the parent directories): .git
>
>
> Two things.
>
> The first is I don't use sudo on Linux, as it's usually just me on the box.
> As such, I've used "su -s /bin/sh -c..." instead.
>
> The second is are you sure you want /home/teamjenkins/workspace/Squeak? And
> not:
>
> /var/lib/jenkins/workspace/Squeak
>
> A symbolic link from one to the other gives an appearance of things but not
> a permission of things.
>
> Actually, I did it in that dir and got the same response:
>
> [root at server1 Squeak]# pwd
> /var/lib/jenkins/workspace/Squeak
> [root at server1 Squeak]# su -s /bin/sh -c "git reset --hard" - jenkins
> fatal: Not a git repository (or any of the parent directories): .git
>
>
> I'm back in front of the computer now, so I can respond more quickly.

I may have to take breaks now & then and son-wrangle. It's definitely
a permissions thing.

Regarding symlinks, I can git log in both
/var/lib/jenkins/workspace/Squeak/ and in
/home/teamjenkins/workspace/Squeak/, so I would expect the su'd
commands to work too. Weird that it's not. Also weird that the changes
file symlink's now root:root, when you clearly ran the command as
jenkins.

frank

> Chris
>


More information about the Squeak-dev mailing list