Jenkins && access to ant and maven disappeared

35 views
Skip to first unread message

Matthias Apitz

unread,
Aug 7, 2023, 7:06:49 AM8/7/23
to jenkins...@googlegroups.com

Hello,

This is with jenkins-2.401.2-1.1.noarch.rpm on a RH8.
We have configured in the tools the access to ant and maven.
For some unknown reason, the jobs failed since last week because they
couldn't access these two tools anymore. I could not see any reason and
just restarted jenkins again and all was file (without any change in
jenkins or jobs!).

What could be the reason for this and where I could find any messages
from jenkins about this problem.

matthias


--
Matthias Apitz, ✉ gu...@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

Thomas Markus

unread,
Aug 7, 2023, 8:55:58 AM8/7/23
to jenkins...@googlegroups.com
Hi,

Am 07.08.23 um 13:06 schrieb Matthias Apitz:
> Hello,
>
> This is with jenkins-2.401.2-1.1.noarch.rpm on a RH8.
> We have configured in the tools the access to ant and maven.
> For some unknown reason, the jobs failed since last week because they
> couldn't access these two tools anymore. I could not see any reason and
> just restarted jenkins again and all was file (without any change in
> jenkins or jobs!).
>
> What could be the reason for this and where I could find any messages
> from jenkins about this problem.
>
> matthias
>
>
have you checked your tools configuration? Are mvn and ant available at
specified location on slave node and executable? I'm sure you checked
this but to be sure ...
For automatic download they should appear in $HOME/tools/

best regards
Thomas
OpenPGP_0x9794716335E9B5AF.asc
OpenPGP_signature

Matthias Apitz

unread,
Aug 8, 2023, 2:33:27 AM8/8/23
to jenkins...@googlegroups.com
El día lunes, agosto 07, 2023 a las 02:55:39 +0200, Thomas Markus escribió:

> > What could be the reason for this and where I could find any messages
> > from jenkins about this problem.
> >
> > matthias
> >
> >
> have you checked your tools configuration? Are mvn and ant available at
> specified location on slave node and executable? I'm sure you checked this
> but to be sure ...
> For automatic download they should appear in $HOME/tools/

The tools configuration in Jenkins is fine. ant and mvn are installed as
packages with 'yum .... install' and are these versions:

root@srrp02dxr1:/appdata/sisis/jenkins# which mvn
/usr/bin/mvn
root@srrp02dxr1:/appdata/sisis/jenkins# /usr/bin/mvn -version
Apache Maven 3.5.4 (Red Hat 3.5.4-5)
Maven home: /usr/share/maven
Java version: 1.8.0_382, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.382.b05-2.el8.x86_64/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "4.18.0-425.19.2.el8_7.x86_64", arch: "amd64", family: "unix"
root@srrp02dxr1:/appdata/sisis/jenkins# which ant
/usr/bin/ant
root@srrp02dxr1:/appdata/sisis/jenkins# /usr/bin/ant -version
Apache Ant(TM) version 1.10.5 compiled on December 13 2018

In jenkins HOME tools is only this:

root@srrp02dxr1:/appdata/sisis/jenkins# ls -l tools
total 4
drwxr-xr-x 3 jenkins jenkins 4096 Jul 31 10:27 hudson.tasks.Ant_AntInstallation

As I said, they worked fine last week and again after a jenkins restart,
without any config change.

Thanks for your feedback.

Thomas Markus

unread,
Aug 8, 2023, 2:39:19 AM8/8/23
to jenkins...@googlegroups.com
Hello,

Am 08.08.23 um 08:33 schrieb Matthias Apitz:
> The tools configuration in Jenkins is fine. ant and mvn are installed as
> packages with 'yum .... install' and are these versions:
>
> root@srrp02dxr1:/appdata/sisis/jenkins# which mvn
> /usr/bin/mvn
> root@srrp02dxr1:/appdata/sisis/jenkins# /usr/bin/mvn -version
> Apache Maven 3.5.4 (Red Hat 3.5.4-5)
> Maven home: /usr/share/maven
> Java version: 1.8.0_382, vendor: Red Hat, Inc., runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.382.b05-2.el8.x86_64/jre
> Default locale: en_US, platform encoding: ANSI_X3.4-1968
> OS name: "linux", version: "4.18.0-425.19.2.el8_7.x86_64", arch: "amd64", family: "unix"
> root@srrp02dxr1:/appdata/sisis/jenkins# which ant
> /usr/bin/ant
> root@srrp02dxr1:/appdata/sisis/jenkins# /usr/bin/ant -version
> Apache Ant(TM) version 1.10.5 compiled on December 13 2018
>
> In jenkins HOME tools is only this:
>
> root@srrp02dxr1:/appdata/sisis/jenkins# ls -l tools
> total 4
> drwxr-xr-x 3 jenkins jenkins 4096 Jul 31 10:27 hudson.tasks.Ant_AntInstallation
>
> As I said, they worked fine last week and again after a jenkins restart,
> without any config change.
>
> Thanks for your feedback.
>
> matthias
>
so check your node configuration. Is there any special/unusual tools
configuration?
Maybe set a proper PATH environment

hth
Thomas

OpenPGP_0x9794716335E9B5AF.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages