rmohr / chroot-plugin

A Jenkins plugin which adds support for disposable chroot environments, which can be very usefull for C and C++ projects.
GNU General Public License v3.0
6 stars 15 forks source link

chroot2078368272464017165.sh: line 84: unexpected EOF while looking for matching `'' #29

Open peteasa opened 7 years ago

peteasa commented 7 years ago

Question1: Is there a way to get this plugin to use an existing pre-prepared tgz file with the required chroot? In my case even if I replace the tgz file in the workspace it seems that the next run deletes the tgz file I want to use..

Question2: This might be finger trouble but when I attempt to use this plugin this is the message I get. "unexpected EOF while looking for matching " see the Log file output: $ sudo /usr/sbin/pbuilder --update --basetgz /home1/pas/Build/ci/workspace/myschroot/test-pbuilder/test-pbuilder.tgz W: No local /etc/mailname to copy, relying on /home1/pas/Build/pbuilder/build/22005/etc/mailname to be correct debconf: delaying package configuration, since apt-utils is not installed

$ whoami $ id -n -g pas $ id -u pas $ id -g pas $ sudo /usr/sbin/pbuilder --execute --bindmounts /home1/pas/Build/ci/workspace/myschroot --basetgz /home1/pas/Build/ci/workspace/myschroot/test-pbuilder/test-pbuilder.tgz -- /home1/pas/Build/ci/workspace/myschroot/chroot6240260719095386981.sh I: Building the build Environment I: extracting base tarball [/home1/pas/Build/ci/workspace/myschroot/test-pbuilder/test-pbuilder.tgz]

I: copying local configuration W: No local /etc/mailname to copy, relying on /home1/pas/Build/pbuilder/build/22587/etc/mailname to be correct I: mounting /proc filesystem I: mounting /run/shm filesystem I: mounting /dev/pts filesystem I: Mounting /home1/pas/Build/ci/workspace/myschroot I: policy-rc.d already exists I: Obtaining the cached apt archive contents

/home1/pas/Build/ci/workspace/myschroot/chroot2078368272464017165.sh: line 84: unexpected EOF while looking for matching '' /home1/pas/Build/ci/workspace/myschroot/chroot2078368272464017165.sh: line 97: syntax error: unexpected end of file I: Copying back the cached apt archive contents I: unmounting /home1/pas/Build/ci/workspace/myschroot filesystem I: unmounting dev/pts filesystem I: unmounting run/shm filesystem I: unmounting proc filesystem I: cleaning the build env I: removing directory /home1/pas/Build/pbuilder/build/22587 and its subdirectories Build step 'Chroot Builder' marked build as failure Finished: FAILURE

Caught the shell script as well.. this is the offending section in the shell script.. noteCOMP_WORDBREAKS=" is followed by a new line and the ' does not have a matching ': if [ -z ${COMPIZ_CONFIG_PROFILE} ]; then export COMPIZ_CONFIG_PROFILE="ubuntu"; fi; if [ -z ${COMP_WORDBREAKS} ]; then export COMP_WORDBREAKS=" "'><;|&(:"; fi; if [ -z ${CLUTTER_IM_MODULE} ]; then export CLUTTER_IM_MODULE="xim"; fi; if [ -z ${CLASSPATH} ]; then export CLASSPATH=""; fi; if [ -z ${BUILD_URL} ]; then export BUILD_URL="http://localhost/jenkins/job/myschroot/5/"; fi; if [ -z ${BUILD_TAG} ]; then export BUILD_TAG="jenkins-myschroot-5"; fi; if [ -z ${BUILD_NUMBER} ]; then export BUILD_NUMBER="5"; fi; if [ -z ${BUILD_ID} ]; then export BUILD_ID="5"; fi; if [ -z ${BUILD_DISPLAY_NAME} ]; then export BUILD_DISPLAY_NAME="#5"; fi; if [ -z ${_} ]; then export _="/usr/bin/java"; fi; set -e set -x verbose cd /home1/pas/Build/ci/workspace/myschroot