Re: Jenkins && access to ant and maven disappeared

2023-08-07 Thread Thomas Markus

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

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ab942756-ac1f-f2ec-4d5a-9427fa38424b%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Jenkins && access to ant and maven disappeared

2023-08-07 Thread Thomas Markus

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

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5cfeafc1-b3b3-b3e7-51bb-65b0e24a441c%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: fresh Jenkins installation does not present the dashboard

2023-07-27 Thread Thomas Markus

Hi,

Am 27.07.23 um 11:21 schrieb Matthias Apitz:



DEBUG isn't a legal level. There should be a corresponding error logged.

What would be a legal level?

matthias



see java.util.logging.Level

 * SEVERE (highest value)
 * WARNING
 * INFO
 * CONFIG
 * FINE
 * FINER
 * FINEST (lowest value)


best regards
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4a63d2ba-9c3a-e587-fca4-6175a51aeddb%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: moving jenkins to a new RH server

2023-07-04 Thread Thomas Markus

Hi,

Am 05.07.23 um 08:28 schrieb Matthias Apitz:

Thomas,

Thanks for your reply. When I use your dir list as user 'root' with tar:

# tar chzf jenkinsHome.tar.gz fingerprints plugins secrets users jenkins-jobs 
jobs

and I have to use the flag 'h' because some of the dirs are symlinks, I
get a lot of messages like this:

...
tar: jobs/SLNPBasic-V7.1/builds/lastStableBuild: File removed before we read it
tar: jobs/SLNPBasic-V7.1/builds/lastFailedBuild: File removed before we read it
tar: jobs/SLNPBasic/builds/lastUnstableBuild: File removed before we read it
...
and these symlinks all point to nowhere:

# ls -l jobs/SLNPBasic-V7.1/builds/lastStableBuild
lrwxrwxrwx 1 jenkins jenkins 2 Jul 30  2020 
jobs/SLNPBasic-V7.1/builds/lastStableBuild -> -1

What does this mean (the symlink to '-1') and how to deal with this?

Thanks

matthias

It means these files are removed/changed while tar is running. Looks 
like your jenkins instance is running and a build job was executed so 
symlink for last build changes.
Personally I use rsync for sync to remote location. To overcome this you 
can use snapshots on filesystem support or block any filesystem 
modification while tar is running


best regards
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/15db7de1-bf7a-c939-2f98-02803c8d8915%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: moving jenkins to a new RH server

2023-07-02 Thread Thomas Markus

Hi,

Am 03.07.23 um 08:20 schrieb Matthias Apitz:

Hello,

We run jenkins on a RH 7.9 server in version 2.164.1-1.1 and are on the
way to setup a newer version on jenkins on a new RH server 8.7.
What would be the best way to move all the configuration and jobs to the
new server after installing jenkins?

Thanks

matthias

for me it was sufficient to clone jenkins home. In detail I copied 
folders fingerprints, plugins, secrets, users, jenkins-jobs, jobs


hth
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d8eb64b1-dbf7-4136-79f3-8f5d70b6e42c%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Jenkins Agent Java Certificate Error

2023-02-09 Thread Thomas Markus

Hi,

Am 08.02.23 um 23:29 schrieb TJ Patterson:

Hello everyone!

We are running Jenkins Master via Docker (Jenkins/Jenkins:LTS Java 11) 
and then using an NGINX Docker reverse proxy container to provide SSL 
certificate and more security.  We changed the URL in Manage Jenkins > 
Configure System > Jenkins Location from 
"http://jenkinsserver.com:8080"; to "https://jenkinsserver.com";


We are now receiving an error when connecting the nodes to Jenkins.

This is the error from our java  JNLP agent connection (I’ve changed 
server name/node names, etc.):


~ % curl -sO https://jenkinsserveraddress/jnlpJars/agent.jar 



java -jar agent.jar -jnlpUrl 
https://jenkinsserveraddress/manage/computer/nodename/jenkins-agent.jnlp 
 -secret 
secretphrasegoeshere


Exception in thread "main" java.io.IOException: Failed to validate a 
server certificate. If you are using a self-signed certificate, you 
can use the -noCertificateCheck option to bypass this check.


That depends on how old your java setup is. Java uses its own truststore 
to validate server certificates. When installed via system all 
distributions link to generated truststore with system certificates. So 
any system update should update them. For manually installed java setup 
check your truststore. See file $JAVAHOME/lib/security/cacerts


If not a linked to system trustore you can start your agent with

java -Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts 
-Djavax.net.ssl.trustStorePassword=changeit -jar ...


system package ca-certificates (or similiar) must be installed. Verify 
location for that file, it depends on your distribution


best regards
Thomas



--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f6f9aa7b-d2ac-aec0-bf76-f5fac10d53a0%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Building Jenkins-plugins failed in maven enforcer plugins

2023-01-30 Thread Thomas Markus

Hi

Am 30.01.23 um 08:46 schrieb Ullrich Hafner:
Which maven version are you using? The error message says that you 
need to use at least Maven 3.8.1.



Am 30.01.2023 um 07:37 schrieb Ahmed Rafiq :

Hello,
trying to update our inhouse Jenkins plugins. But it gets failed from 
maven-enforcer-plugin at


/[ERROR] Rule 1: 
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with 
message:
3.8.1 required to no longer download dependencies via HTTP (use HTTPS 
instead)./

/
/
In our /settings.xml/ and /POM.xml/ there's no dependencies with HTTP 
url, therefore quite confused where to solve / debug for this error.


Can anyone give me some ideas?

Thanks.
Any dependency or plugin can define its own repositories for its 
dependencies/plugins. I assume any of them has defined such an url.

Check your build log for more details

best regards
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4d4c06d0-a711-b675-da38-81c7e63da56b%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: LDAP security realm / groovy init script issue

2023-01-26 Thread Thomas Markus

Hi,

Am 26.01.23 um 18:14 schrieb geoffroy...@gmail.com:

Hello

i am trying to configure LDAP Security Realm using groovy init script.

So far, it works fine, but i am not able to Disable Role Prefixing 
using the method setDisableRolePrefixing 



Code:
...
instance.securityRealm = new LDAPSecurityRealm(...)
instance.securityRealm.*setDisableRolePrefixing*​(true)
instance.save()

Error is:
groovy.lang.MissingMethodException: N*o signature of method: 
hudson.security.LDAPSecurityRealm.setDisableRolePrefixing​()* is 
applicable for argument types: (java.lang.Boolean) values: [true]
*Possible solutions: setDisableRolePrefixing(boolean)*, 
isDisableRolePrefixing()
        at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)


I'm not fluent with groovy/java, and i don't understand why the method 
is not recognized although given possible solutions actually list the 
method...


Thanks in advance for your help
--
You received this message because you are subscribed to the Google 
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com 
.


maybe the typical confusion between Boolean and boolean, try
instance.securityRealm.setDisableRolePrefixing​(Boolean.TRUE.booleanValue())
instead of
instance.securityRealm.setDisableRolePrefixing​(true)

best regards
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/60120b2a-089a-3023-ece1-0acebfa52369%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

2022-02-21 Thread Thomas Markus

Hello,

Am 22.02.22 um 01:49 schrieb Kamalakannan Anandan:

Hello Everyone,

I am new to Jenkins need help with one of the error message. I am 
trying to Build project when a push operation is done on GitHub. 
Please help me to resolve the issue.


I just created a new project in the GitHub (JenkinsPractice)
Created a new  java program Hello world with Initial commit with the 
code.
I am getting an error message in Jenkins. "ERROR: Couldn't find any 
revision to build. Verify the repository and branch configuration for 
this job."
this looks easy: you specified branch "master" in your jenkins build but 
your repo has only branch "main"

Change "*/master" to "*/main" in branch specifier

best regards
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0ecbee54-5a08-54b2-ba5d-9af89d6b5206%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


howto use library function for parameter list

2022-02-21 Thread Thomas Markus

Hi,

I'm using the extended choice parameter plugin for a selection list made 
by a groovy script.


How can I use a library function for this? Currently I have to copy my 
scipt. I'm to dumb to find that answer myself :(


best regards
Thomas

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/97a97208-e923-1260-2dda-1c1a358a50a6%40proventis.net.


OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature