oab-java6 icon indicating copy to clipboard operation
oab-java6 copied to clipboard

Running without root (e.g. in Jenkins)

Open jflemer-ndp opened this issue 13 years ago • 3 comments

It would be nice to have a command line option to skip the things that need root and just build the packages.

The following allows this, and happens to be suitable for a build step in Jenkins:

mkdir -p $WORKSPACE/tmp
perl -pe 's!^(\s*)(check_root|check_sudo|apt-get)\b!${1}true!g;
          s!^WORK_PATH=.*!WORK_PATH=\$WORKSPACE/oab!g;
          s!^(\s*)spinny\b!${1}true!g;
          s! /tmp! \$WORKSPACE/tmp!g;
         ' < oab-java.sh > oab-java-ci.sh
rm -f oab-java-ci.sh.log
bash ./oab-java-ci.sh -k none

You can tell Jenkins to archive artifacts: oab/deb/*.deb

jflemer-ndp avatar Jun 29 '12 22:06 jflemer-ndp

Yes, please!

mightyiam avatar Jul 04 '12 21:07 mightyiam

+1

skull-squadron avatar Oct 05 '12 20:10 skull-squadron

any reason you're using perl instead of sed?

jab416171 avatar Oct 06 '12 22:10 jab416171