【发布时间】:2015-08-08 03:21:12
【问题描述】:
我想在 chroot 中自动构建所有内容:
sudo chroot mychroot
apt-get install git build-essential make -y
git clone myrepo
cd myrepo/src
make
从这个线程看来,我在 Manage Jenkins -> Configure System 中的配置应该是:
Name: trusty
Tool: pbuilder
Advanced configuration: checked
Additional arguments: --distribution trusty --debootstrapopts --variant=buildd
Shell command:
Repositories:
Name: universe
Repository URL: deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
Keyfile URL: http://archive.ubuntu.com/ubuntu/project/ubuntu-archive-keyring.gpg
我还将 jenkins 添加到 /etc/sudoers 文件中,如 issue 中所述。
谁能分享他们的配置? wiki 很棒,但感觉有点欠缺:
described here 正是我想要的:
Creates a new debootstrap-based chroot.
Installs build-essential, mercurial, etc.
Fetches the shource.
Runs make.
Copies the files produced in ./binary-out/ to a safe location.
Cleans up.
【问题讨论】: