my build keeps on failing, in the configuration under build script i have:
if [ ! -d "./.git" ]; then
git init
git remote add origin git@github.com:miranetworks/rainbow_code
fi
git fetch -q origin
git reset -q --hard $JANKY_SHA1
if [ -f script/cibuild ]; then
script/cibuild
else
bundle install --path vendor/gems --binstubs
bundle exec rake
fi
i am also building without parameters
the failed build log shows the following:
Started by user helloise smit
Building remotely on i-61a1df04 in workspace /var/lib/jenkins/workspace/rainbow_code
Checkout:rainbow_code / /var/lib/jenkins/workspace/rainbow_code -
hudson.remoting.Channel@72bbffd:i-61a1df04
Using strategy: Default
Last Built Revision: Revision 9f9d6f94c220a1ae079fded09c4d23d9c1b1801d (origin/HEAD,
origin/master)
Checkout:rainbow_code / /var/lib/jenkins/workspace/rainbow_code -
hudson.remoting.LocalChannel@142b716
Fetching changes from 1 remote Git repository
Fetching upstream changes from git@github.com:miranetworks/rainbow_code.git
Commencing build of Revision 9f9d6f94c220a1ae079fded09c4d23d9c1b1801d (origin/master)
Checking out Revision 9f9d6f94c220a1ae079fded09c4d23d9c1b1801d (origin/master)
[rainbow_code] $ /bin/sh -xe /tmp/hudson1783123371374377301.sh
+ [ ! -d ./.git ]
+ git fetch -q origin
+ git reset -q --hard
+ [ -f script/cibuild ]
+ bundle install --path vendor/gems --binstubs
/tmp/hudson1783123371374377301.sh: 1: bundle: not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
what does this all mean?
anyone that can help please?
thanks
It means that Hudson could not find the
bundlecommand. It looks like it is not part of the path during hudson execution. Try supplying the full path in your script (you can find out wherebundleis located withwhich bundle.