Hi Dave, Thank you! We are able to now run the build and tests with the configurations you have provided.
One point that is not clear is the configuration of the 'Latest Test Result' with the consolidated report of all tests run on the platform. https://builds.apache.org/job/Allura/job/Allura/lastCompletedBuild/testReport/ or https://builds.apache.org/job/Allura/job/Allura/31/testReport/ Can you please let me know how this test report can be configured? Regards, Vrinda -----Original Message----- From: Dave Brondsema <d...@brondsema.net> Sent: Thursday, November 12, 2020 1:25 AM To: dev@allura.apache.org; Vrinda A M (RBEI/EMT2) <vrind...@in.bosch.com> Subject: Re: CI for Allura Hi, Here's basically what is configured on https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fci-builds.apache.org%2Fjob%2FAllura%2Fjob%2FAllura%2F&data=04%7C01%7CVrinda.A%40in.bosch.com%7Cdeefa8c02eeb4064792b08d8867b9c43%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637407213189460217%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=E9CyUsICy%2BW3pgiaTDpD5jIK09x%2F8nL19cxGUDjRkiI%3D&reserved=0 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 https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.brondsema.net%2F&data=04%7C01%7CVrinda.A%40in.bosch.com%7Cdeefa8c02eeb4064792b08d8867b9c43%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637407213189460217%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=2OddTqv6dHJupWw4GPqMuEaw0WfSAWy4mF5govNL3oA%3D&reserved=0 : personal https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.splike.com%2F&data=04%7C01%7CVrinda.A%40in.bosch.com%7Cdeefa8c02eeb4064792b08d8867b9c43%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637407213189460217%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6fKZ%2FTYZ8yu9rYcv1RTR8%2Ffjos9QpYWn7ZIuV%2BqGy8A%3D&reserved=0 : programming <><