Hi Jens,
It looks that some interpolations have been performed on Jenkins (during
nightly build).
Let me check.
Thanks
Regards
JB
On 09/08/2016 05:15 PM, Jens Offenbach wrote:
Hallo,
I am working with the current snapshot of Karaf 4.1
(https://repository.apache.org/content/groups/snapshots-group/org/apache/karaf/apache-karaf/4.1.0-SNAPSHOT/apache-karaf-4.1.0-20160817.085104-183.tar.gz).
There seems to be a problem in the shell scripts "/bin/shell", "/bin/start",
"/bin/client"...
These scripts contain the following function:
realpath() {
OURPWD=/home/jenkins/jenkins-slave
cd "$(dirname "${1}")"
LINK=$(readlink "$(basename "${1}")")
while [ "${LINK}" ]; do
cd "$(dirname "${LINK}")"
LINK=$(readlink "$(basename "${1}")")
done
REALPATH="/home/jenkins/jenkins-slave/$(basename "${1}")"
cd "${OURPWD}"
echo "${REALPATH}"
}
Of course "/home/jenkins/jenkins-slave" is not present on my system and the call
"/opt/apache-karaf/bin/shell wrapper:install" fails with:
/opt/apache-karaf/bin/shell: 28: cd: can't cd to /home/jenkins/jenkins-slave
/opt/apache-karaf/bin/shell: 1: cd: can't cd to /home/jenkins/jenkins-slave/
Can someone please have a look!
Thank you very much.
Regards,
Jens
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com