Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Running without root (e.g. in Jenkins) #42

Open
jflemer-ndp opened this issue Jun 29, 2012 · 3 comments
Open

Running without root (e.g. in Jenkins) #42

jflemer-ndp opened this issue Jun 29, 2012 · 3 comments

Comments

@jflemer-ndp
Copy link

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

@mightyiam
Copy link

Yes, please!

@skull-squadron
Copy link

+1

@jab416171
Copy link

any reason you're using perl instead of sed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants