Hi,
Here's basically what is configured on
https://ci-builds.apache.org/job/Allura/job/Allura/
Have an "execute shell" step with:
#!/bin/bash
# need to specify the shell, else Jenkins will quit after the first non-zero
exit
rm -rf ".allura-venv"
virtualenv .allura-venv
. .allura-venv/bin/activate
git clean -f -x # remove test.log, nosetest.xml etc (don't use -d since it'd
remove our venv dir)
pip install -r requirements.txt
pip install nose-xunitmp
./rebuild-all.bash
npm install
LANG=en_US.UTF-8 ./run_tests --with-xunitmp
retcode=$?
exit $retcode
And a publish junit reports step, with file pattern "**/nosetests.xml"
I am not sure about a webhook exactly, the jenkins configs I've set up just poll
SCM. But you could probably find some online examples of how to do it, since
that is a general git + jenkins thing, not limited to Allura.
The Docker config for allura is designed for development or a production setup
with local source code files. That is, right now the Dockerfile won't build an
image that includes the code. I think it would need an "ADD" line, might not be
too hard to do. Let us know if you try it out. But also allura needs multiple
docker images to fully run. Web & taskd maybe could run off of the same image.
But there's also solr, mongo and likely mail handling, so I'm not sure how
useful a Docker image of just allura would be.
-Dave
On 11/11/20 7:49 AM, Vrinda A M (RBEI/EMT2) wrote:
Hello,
I would like to setup continuous integration, testing and deployment of Allura
in Jenkins. Can you please give me some hints on what needs to be configured in
Jenkins?
Also what should be configured in the webhook of Allura project so that a build
is triggered each time a push happens on the master branch?
Can a docker image be created after the build goes through? If so, do I need to
make any configurations in the docker-compose.yml file?
Regards,
Vrinda.
--
Dave Brondsema : d...@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><