I looked into using Docker, but I haven't used it enough to know how to actually get it to work correctly for that purpose. All of my personal projects get built as Debian packages, which accomplishes the same thing(with a clean filesystem for each build), but that doesn't work on Windows.
If anybody has an example of how to use docker to do the builds, I'd appreciate it and could use that to create a better build environment. The Jenkins documentation is of limited usefulness, as it doesn't show how to build /inside/ the container and get the results back out while also installing the proper dependencies. -Robert Middleton On Wed, Feb 19, 2020 at 6:53 PM Matt Sicker <boa...@gmail.com> wrote: > > Some of the Jenkins nodes have Docker available which makes building > simpler here. > > On Wed, Feb 19, 2020 at 17:49 Robert Middleton <osfan6...@gmail.com> wrote: > > > I've created a Jenkinsfile for use with log4cxx that can be seen here: > > > > https://github.com/rm5248/logging-log4cxx/blob/f39b1737541ed31b8e56a8f6f550c0797a47bca5/Jenkinsfile > > > > It's fairly complicated, but it does attempt to build log4cxx on both > > Windows and Linux(see the latest build here: > > https://jenkins.rm5248.com/job/log4cxx-pipeline/) > > > > It does this by first downloading the latest APR, APR-util, and expat, > > and then building those in the workspace(so that they need not be > > installed on the build system). However, attempting to configure > > log4cxx at the moment results in an error due to some of the tests, > > due to an extra entry in > > src/test/cpp/xml/CMakeLists.txt( > > https://github.com/apache/logging-log4cxx/blob/76671956437e35864e1a5d843cefdf42c8154b76/src/test/cpp/xml/CMakeLists.txt#L5 > > ) > > > > Anyway, it would be nice to get this running on builds.apache.org, but > > I don't know at the moment a) how to do that, and b) if the Jenkins > > instance there is configured properly in the first place. It seems > > that Jenkins seems to be building only Java applications, while APR > > and other C applications seem to be built on ci.apache.org. What's > > the best way to help with this? > > > > -Robert Middleton > > > -- > Matt Sicker <boa...@gmail.com>