oab-java6
oab-java6 copied to clipboard
Running without root (e.g. in Jenkins)
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
Yes, please!
+1
any reason you're using perl instead of sed?