You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by Robert Middleton <os...@gmail.com> on 2020/02/19 23:49:09 UTC

[log4cxx] Jenkinsfile and tests

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

Re: [log4cxx] Jenkinsfile and tests

Posted by Matt Sicker <bo...@gmail.com>.
Oh yeah that might be a little harder. No wonder Rust and Go are taking
off! ;-)

For getting results outside the container, typically I publish artifacts at
that point. You could upload to Nexus or something maybe?

On Wed, Feb 19, 2020 at 21:19 Robert Middleton <os...@gmail.com> wrote:

> 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 <bo...@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 <os...@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 <bo...@gmail.com>
>
-- 
Matt Sicker <bo...@gmail.com>

Re: [log4cxx] Jenkinsfile and tests

Posted by Robert Middleton <os...@gmail.com>.
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 <bo...@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 <os...@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 <bo...@gmail.com>

Re: [log4cxx] Jenkinsfile and tests

Posted by Matt Sicker <bo...@gmail.com>.
Some of the Jenkins nodes have Docker available which makes building
simpler here.

On Wed, Feb 19, 2020 at 17:49 Robert Middleton <os...@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 <bo...@gmail.com>

Re: [log4cxx] Jenkinsfile and tests

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Robert Middleton,
am Donnerstag, 20. Februar 2020 um 00:49 schrieben Sie:

> 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)

That should be fixed now, I misinterpreted that name as some file.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow