java.io.IOException: error=2, No such file or directory
Hello, We're facing the problem that jobs are failing with such errors: ... [SLNPBasicMvn] $ mvn clean install findbugs:findbugs pmd:pmd checkstyle:checkstyle FATAL: command execution failed java.io.IOException: error=2, No such file or directory at java.base/java.lang.ProcessImpl.forkAndExec(Native Method) at java.base/java.lang.ProcessImpl.(ProcessImpl.java:314) at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:244) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1110) Caused: java.io.IOException: Cannot run program "mvn" (in directory "/appdata/sisis/jenkins/workspace/SLNPBasicMvn"): error=2, No such file or directory at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143) at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073) at hudson.Proc$LocalProc.(Proc.java:254) at hudson.Proc$LocalProc.(Proc.java:223) at hudson.Launcher$LocalLauncher.launch(Launcher.java:997) at hudson.Launcher$ProcStarter.start(Launcher.java:509) at hudson.Launcher$ProcStarter.join(Launcher.java:520) at hudson.tasks.Maven.perform(Maven.java:369) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:164) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:526) at hudson.model.Run.execute(Run.java:1900) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Build step 'Invoke top-level Maven targets' marked build as failure [FindBugsPMDCheckStyle] Skipping execution of recorder since overall result is 'FAILURE' Sending e-mails to: g...@oclc.org thomas.glom...@oclc.org clemens.rein...@oclc.org Finished: FAILURE A jenkins restart fixes the issue without any other changes. There is nothing visible in /var/log/jenkins/jenkins.log. This is with version 2.401.3 on RH 8.9 (Ootpa). Any ideas? matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub I am not at war with Russia. Я не воюю с Россией. Ich bin nicht im Krieg mit Russland. -- 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/ZemIPOpvaG5bmHw9%40pureos.
Re: Jenkins && access to ant and maven disappeared
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. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZNHho5rUSs/lmlKD%40pureos.
Jenkins && access to ant and maven disappeared
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, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZNDQNglgO1u8Gp4B%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día miércoles, julio 26, 2023 a las 11:49:51a. m. +0200, 'Daniel Beck' via Jenkins Users escribió: > On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz wrote: > > > The jenkins server itself is requesting data from two servers in > > Internet: > > > > … > > > > The first I have no idea, where is this configured. > > > > That's google.com, something set up long ago as an attempt to determine > whether there's any internet connectivity. See > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateCenter.java#L1414 > or > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateSite.java#L437 > (the amount of unused/legacy code in this area makes it difficult to tell > at a glance which is called) or an equivalent field in the JSON data > retrieved from updates.jenkins.io. I've pulled the sources from github.com because I was curious and because the Java code uses HTTP, while the problem was with HTTPS. It must come from this entry in the JSON file: updateCenter.post( {"connectionCheckUrl":"https://www.google.com/","core":{"buildDate":"Jul 24, 2023","name":"core","sha1":"U9iGDX21CIj9lQ1P/ejIS1F/GRY=","sha256":"zrPBceJXKLR2RYSNriY+QaEsSRGscRVJhfBlPn+iEcg=","size":89541474, ... matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMiZThMEoDc2zkDT%40c720-r368166.
Re: fresh Jenkins installation does not present the dashboard
At the end of the day it turned out that IT had to enable a service "app google-base" to let curl and openssl to www.google.com working as they should, dont know what the diff is between HTTPS and "google-base" is and dont have access to the firewall. Daniel, thanks for your helping hints; -- Matthias Apitz E-mail: g...@unixarea.de WWW: http://www.unixarea.de/ phone: +49-170-4527211 Am 28.07.2023 12:32, schrieb 'Daniel Beck' via Jenkins Users: On Fri, Jul 28, 2023 at 11:21 AM Matthias Apitz wrote: * TLSv1.3 (OUT), TLS handshake, Client hello (1): it hangs. Sould it says '404 bla not found" This indicates that something other than Jenkins is broken, so it's a system/environment issue. Fix that first, then try again with Jenkins. -- 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/CAMo7Pt%2Bx9SKZcEifv4JPOJBNBd1WydQYcaMGcrXfBiNGwKWi%2Bg%40mail.gmail.com [1]. Links: -- [1] https://groups.google.com/d/msgid/jenkinsci-users/CAMo7Pt%2Bx9SKZcEifv4JPOJBNBd1WydQYcaMGcrXfBiNGwKWi%2Bg%40mail.gmail.com?utm_medium=email_source=footer -- 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/2b47a1482f742fb78a1beb623cd911bf%40unixarea.de.
Re: fresh Jenkins installation does not present the dashboard
El día viernes, julio 28, 2023 a las 10:37:54 +0200, 'Daniel Beck' via Jenkins Users escribió: > > Our IT department will say: 443 outbound is all open > > > > Can you curl from the Jenkins controller system to e.g. google.com? > > Any exceptions getting logged? Please be more specific what you want me to test from the Jenkins controller. When I curl from the Linux cmd line: $ curl --verbose https://www.google.com/bla * Trying 142.250.186.100... * TCP_NODELAY set * Connected to www.google.com (142.250.186.100) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * TLSv1.3 (OUT), TLS handshake, Client hello (1): it hangs. Sould it says '404 bla not found" the JSON is downloaded fine and fast: $ curl https://updates.jenkins.io/current/update-center.json | wc -c % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 2770k 100 2770k0 0 2823k 0 --:--:-- --:--:-- --:--:-- 2820k 2836543 matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMOIgkB2dSnaoPGr%40pureos.
Re: fresh Jenkins installation does not present the dashboard
I used the moment when Jenkins in the browser said to me, that I'm offline and if I want to continue without updating the plugins. I created an account and when I now update plugins manually, some work fine, sometimes it fails with a message in the log file, like: [2023-07-28 09:50:31][SEVERE][hudson.model.UpdateCenter$DownloadJob run] Failed to install scm-api java.io.IOException: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2204) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1850) ... It even says sometimes in the browser (like right now) that the update of a given plugin was successful, but that a test to Google.com failed: Download progress Preparation Checking internet connectivity Checking update center connectivity Success Failed to connect to https://www.google.com/. Perhaps you need to configure HTTP proxy? Mina SSHD API :: Core Downloaded Successfully. Will be activated during the next boot When I watch such a plugin update with tcpdump for all traffic to/from port 443 such fetch is very slow and lazy. I looked in the file for the update: the JSON file in https://updates.jenkins.io/update-center.json it has 3413 URLs for downloading and I understand now why this took always so long in the first initialization of Jenkins. What should I do. Our IT department will say: 443 outbound is all open ... Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMN8geHLnjhh1NAx%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día jueves, julio 27, 2023 a las 11:00:12 +0200, 'Daniel Beck' via Jenkins Users escribió: > On Thu, Jul 27, 2023 at 10:15 AM Matthias Apitz wrote: > > > I don't get why I'm not able to get all logs into the configured file > > /var/log/jenkins/jenkins.log; my used log configuration is: > > > > cat logging.properties > > .level=DEBUG > > > > DEBUG isn't a legal level. There should be a corresponding error logged. What would be a legal level? matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMI3JGXlf2JW3oUU%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día miércoles, julio 26, 2023 a las 11:49:51 +0200, 'Daniel Beck' via Jenkins Users escribió: > On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz wrote: > > > The jenkins server itself is requesting data from two servers in > > Internet: > > > > … > > > > The first I have no idea, where is this configured. > > > > That's google.com, something set up long ago as an attempt to determine > whether there's any internet connectivity. See > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateCenter.java#L1414 > or > https://github.com/jenkinsci/jenkins/blob/7fb5f24efd92eda2461e9bf2f1fdc50295e12573/core/src/main/java/hudson/model/UpdateSite.java#L437 > (the amount of unused/legacy code in this area makes it difficult to tell > at a glance which is called) or an equivalent field in the JSON data > retrieved from updates.jenkins.io. If I look into the above Java files, they have a lot of log statements, like LOGGER.log(Level.FINE, "Failed to parse releaseTimestamp for " I don't get why I'm not able to get all logs into the configured file /var/log/jenkins/jenkins.log; my used log configuration is: cat logging.properties .level=DEBUG handlers=java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=ALL # java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.SimpleFormatter.format = [%1$tF %1$tT][%4$-6s][%2$s] %5$s %6$s %n hudson.security.csrf.CrumbFilter.level = DEBUG hudson.plugins.git.GitStatus.level = DEBUG and for 'FINE' I only see: grep FINE /var/log/jenkins/jenkins.log [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Using JAVA_HOME=/usr/lib/jvm/java-17-openjdk-17.0.7.0.7-1.el8_7.x86_64 [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] No common lib folder found [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Deploying host found at default [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] ArgumentsRealm initialised: users: 0 [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] The webroot supplied already exists - overwriting where newer (/var/cache/jenkins/war) [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Access logging disabled - no logger class defined [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Initialized 1 webapps: prefixes - [/] [2023-07-27 08:39:06][FINER ][winstone.Logger logInternal] Initialized in non-virtual-host mode Something must be missing in the log config. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMInkXRNj1EgGxYE%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día miércoles, julio 26, 2023 a las 11:49:51 +0200, 'Daniel Beck' via Jenkins Users escribió: > On Wed, Jul 26, 2023 at 11:21 AM Matthias Apitz wrote: > > > The jenkins server itself is requesting data from two servers in > > Internet: > > > > … > > > > The first I have no idea, where is this configured. > > > > ... > > > > The box is sitting in some data center and is not fully connected to > > Internet... How could those external request to Internet be switched off? > > > > This looks like a bug. The setup wizard should identify that the requests > fail, and offer to configure a proxy, or let you skip plugin installation. > Do some of the requests pass? If so, it might be different from a basic "no > networking" situation in ways not anticipated. Thanks for your kind and helping reply. Jenkins tries more servers with HTTPS (grepped from a tcpdump file): 142.250.186.100.https: Flags [S] 162.159.140.26.https: Flags [S] 193.149.136.101.https: Flags [S] 193.149.136.134.https: Flags [S] 193.149.136.16.https: Flags [S] 193.149.136.168.https: Flags [S] 34.226.68.35.https: Flags [S] 34.236.161.191.https: Flags [S] 52.202.51.185.https: Flags [S] 52.203.25.223.https: Flags [S] 54.183.140.32.https: Flags [S] 54.241.197.58.https: Flags [S] 54.67.26.184.https: Flags [S] 54.67.54.116.https: Flags [S] 54.67.92.206.https: Flags [S] >From the TCP/IP it looks like the connections get established and data is >coming down. Due to HTTPS I can say what's in the packages. In any case, the directory plugins remains empty. Because I spent some time reading the tcpdump, I see now that the browser shows a page saying: Offline Offline This Jenkins instance appears to be offline. For information about installing Jenkins without an internet connection, see the Offline Jenkins Installation Documentation. You may choose to continue by configuring a proxy or skipping plugin installation. ... Is there a way to see in logs what is missing? I have already level set to 9. The last line in the log is: [2023-07-26 14:14:16][INFO ][hudson.lifecycle.Lifecycle onReady] Jenkins is fully up and running before typing in the password into the browser. I'd need this to talk to Internal IT Departement. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMEZ1OMTzjRIaBYt%40pureos.
Re: fresh Jenkins installation does not present the dashboard
El día Monday, July 24, 2023 a las 01:30:56PM +0200, Matthias Apitz escribió: > > Hello, > > I've installed a fresh Jenkins jenkins-2.401.2-1.1.noarch.rpm on a RH8 > server without the old jobs and config (not moved from the old server). > > The server starts fine and when I connect with the browser to port 8080, > I'm asked for a first administrator password from the file > /var/lib/jenkins/secrets/initialAdminPassword > When I provide it, the page in the browser only presents some ongoing > pattern, three small vertical bars which are moving up and down, but > nothing more. > > ... UPDATE: I spent a lot of time in tracing with tcpdump and Linux' strace to understand what is going on between the browser and Jenkins, and also between Jenkins and resources in Internet: After providing the initial admin password from the browser to Jenkins, there is some HTTP dialog between the browser and Jenkins server; the browser sends a lot of all the same requests of the form GET /updateCenter/connectionStatus?siteId=default... # egrep 'HTTP: GET /update' tcp2 | wc -l 2283 i.e. thousands of such requests! The jenkins server itself is requesting data from two servers in Internet: # grep 142.250.181.228 tcp2 | grep '\[S' 10:51:26.222340 IP 10.201.64.28.48674 > 142.250.181.228.https: Flags [S], seq 2438595054, win 29200, options [mss 1460,sackOK,TS val 1475725650 ecr 0,nop,wscale 7], length 0 # grep 52.202.51.185 tcp2 | grep '\[S' 10:51:26.236951 IP 10.201.64.28.41834 > 52.202.51.185.https: Flags [S], seq 3893898537, win 29200, options [mss 1460,sackOK,TS val 1476244307 ecr 0,nop,wscale 7], length 0 10:51:26.327508 IP 52.202.51.185.https > 10.201.64.28.41834: Flags [S.], seq 351494233, ack 3893898538, win 62643, options [mss 1460,sackOK,TS val 3802601119 ecr 1476244307,nop,wscale 7], length 0 11:07:24.055143 IP 10.201.64.28.46718 > 52.202.51.185.https: Flags [S], seq 3933852832, win 29200, options [mss 1460,sackOK,TS val 1477202126 ecr 0,nop,wscale 7], length 0 11:07:24.146115 IP 52.202.51.185.https > 10.201.64.28.46718: Flags [S.], seq 2048943343, ack 3933852833, win 62643, options [mss 1460,sackOK,TS val 3803558940 ecr 1477202126,nop,wscale 7], length 0 The latter is to be configured in the file: # cat hudson.model.UpdateCenter.xml default https://updates.jenkins.io/update-center.json The first I have no idea, where is this configured. The box is sitting in some data center and is not fully connected to Internet... How could those external request to Internet be switched off? The browser is still sending those GET requests, already 3181 for 30 minutes or so. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZMDll1OgbasQDa7d%40pureos.
Jenkins && DEBUG logging
Hello, This is with jenkins-2.401.2-1.1.noarch.rpm on a RH8. I'm in the need to debug the start of Jenkins, but get only INFO messages. I'm using as config: # grep -- -D /usr/lib/systemd/system/jenkins.service Environment="JAVA_OPTS=-Dlog4j.debug -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties -Djava.awt.headless=true" # cat /var/lib/jenkins/logging.properties .level=TRACE handlers=java.util.logging.ConsoleHandler java.util.logging.ConsoleHandler.level=FINEST java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter The started Jenkins runs with the correct -D... flags: # ps ax | grep java 2666762 ?Ssl0:27 /usr/bin/java -Dlog4j.debug -Djava.util.logging.config.file=/var/lib/jenkins/logging.properties -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 But the file /var/log/jenkins/jenkins.log does not contain any DEBUG log lines, only the lines shown below. What I do wrong? matthias Jul 25, 2023 2:53:35 PM winstone.Logger logInternal INFO: Beginning extraction from war file Jul 25, 2023 2:53:35 PM org.eclipse.jetty.server.handler.ContextHandler setContextPath WARNING: Empty contextPath Jul 25, 2023 2:53:35 PM org.eclipse.jetty.server.Server doStart INFO: jetty-10.0.13; built: 2022-12-07T20:13:20.134Z; git: 1c2636ea05c0ca8de1ffd6ca7f3a98ac084c766d; jvm 17.0.7+7-LTS Jul 25, 2023 2:53:36 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart INFO: Session workerName=node0 Jul 25, 2023 2:53:36 PM hudson.WebAppMain contextInitialized INFO: Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME") Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.handler.ContextHandler doStart INFO: Started w.@5ca17ab0{Jenkins v2.401.2,/,file:///var/cache/jenkins/war/,AVAILABLE}{/var/cache/jenkins/war} Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.AbstractConnector doStart INFO: Started ServerConnector@33b37288{HTTP/1.1, (http/1.1)}{0.0.0.0:8080} Jul 25, 2023 2:53:36 PM org.eclipse.jetty.server.Server doStart INFO: Started Server@6b1274d2{STARTING}[10.0.13,sto=0] @1686ms Jul 25, 2023 2:53:36 PM winstone.Logger logInternal INFO: Winstone Servlet Engine running: controlPort=disabled Jul 25, 2023 2:53:37 PM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Jul 25, 2023 2:53:37 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: System config loaded Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: System config adapted Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Jul 25, 2023 2:53:38 PM jenkins.InitReactorRunner$1 onAttained INFO: Configuration for all jobs updated Jul 25, 2023 2:53:38 PM jenkins.install.SetupWizard init INFO: * * * Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 74565d94443f4ed08790bf86da7953fd This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword * * * Jul 25, 2023 2:53:51 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Jul 25, 2023 2:53:51 PM hudson.lifecycle.Lifecycle onReady INFO: Jenkins is fully up and running -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZL/J6kYrC2/z0lLE%40pureos.
fresh Jenkins installation does not present the dashboard
Hello, I've installed a fresh Jenkins jenkins-2.401.2-1.1.noarch.rpm on a RH8 server without the old jobs and config (not moved from the old server). The server starts fine and when I connect with the browser to port 8080, I'm asked for a first administrator password from the file /var/lib/jenkins/secrets/initialAdminPassword When I provide it, the page in the browser only presents some ongoing pattern, three small vertical bars which are moving up and down, but nothing more. The configured log shows: ... Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 74565d94443f4ed08790bf86da7953fd This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword * * * 2023-07-24 11:04:09.232+ [id=34]INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization 2023-07-24 11:04:09.251+ [id=23]INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running 2023-07-24 11:05:32.147+ [id=17]WARNING h.i.i.InstallUncaughtExceptionHandler#handleException java.lang.IllegalStateException: Response is committed at org.eclipse.jetty.server.Request.getSession(Request.java:1549) at org.eclipse.jetty.server.Request.getSession(Request.java:1531) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ... at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:934) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1078) at java.base/java.lang.Thread.run(Thread.java:829) (end of log) What is missing or what I could have done wrong? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZL5g7s6pqSUJMSAr%40pureos.
Re: moving jenkins to a new RH server
El día miércoles, julio 05, 2023 a las 08:37:15 +0200, Thomas Markus escribió: > > 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 > > > > ... > 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 I looked into the build directory (and Jenkins was not running): # ls -l jobs/SunRise-WMS-Migration-Tools/builds/ ... drwxr-xr-x 2 jenkins jenkins 4096 10. Sep 2021 998 drwxr-xr-x 2 jenkins jenkins 4096 10. Sep 2021 999 lrwxrwxrwx 1 jenkins jenkins4 21. Okt 2021 lastFailedBuild -> 1361 lrwxrwxrwx 1 jenkins jenkins4 23. Jan 15:01 lastStableBuild -> 5583 lrwxrwxrwx 1 jenkins jenkins4 23. Jan 15:01 lastSuccessfulBuild -> 5583 lrwxrwxrwx 1 jenkins jenkins2 22. Apr 2021 lastUnstableBuild -> -1 lrwxrwxrwx 1 jenkins jenkins4 21. Okt 2021 lastUnsuccessfulBuild -> 1361 it looks like the symlink 'lastUnstableBuild' -> -1 just means, no information available; as well it is not shown in the dashboard of the job; there are only: Permalinks Last build (#5583), 5 mo 12 days ago Last stable build (#5583), 5 mo 12 days ago Last successful build (#5583), 5 mo 12 days ago Last failed build (#1361), 1 yr 8 mo ago Last unsuccessful build (#1361), 1 yr 8 mo ago Last completed build (#5583), 5 mo 12 days ago I will just ignore the errors. As well the following cmd shows that all 'lastUnstableBuild' are symlinks to -1: find -L jobs -name lastUnstableBuild -exec ls -l {} \; | grep -v -- '-1' Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZKUi1Fl53R4DHJ3Q%40pureos.
Re: moving jenkins to a new RH server
El día lunes, julio 03, 2023 a las 08:28:30a. m. +0200, Thomas Markus escribió: > > > for me it was sufficient to clone jenkins home. In detail I copied folders > fingerprints, plugins, secrets, users, jenkins-jobs, jobs > > hth > Thomas 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 -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZKUNiJMawEATFp5I%40c720-r368166.
moving jenkins to a new RH server
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 -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/ZKJonrV%2BXkciLg%2BT%40c720-r368166.
Re: Trouble using JenkinsRule with PluginManager
Thanks for the reply. It looks like your repo is similar to https://github.com/sheehan/job-dsl-gradle-example/, which is the example that our repo is based on as well. We've got Specifications that test the job DSL syntax and other job configuration stuff. And I see how the resolveTestPlugins task in build.gradle saves plugins to the build/resources/test/test-dependencies folder that the Jenkins test harness will look in to get the plugins with which to load the in-memory Jenkins instances. What I want to do is load those in-memory Jenkins instances spun up by the Jenkins test harness with different plugins, depending on the Specification being run. So for most Specifications, I'll use one set of plugins, but for another set of Specifications, I'd like to use another... I thought that `new JenkinsRule().with(MyPluginManager.INSTANCE)` or something like that would solve this issue for me, but I'm having trouble with it. I'm seeking help on how to get this to work. I've updated my StackOverflow question with a link to a GitHub repo that reproduces the problem I'm seeing: https://github.com/matthiasdenu/plugin-manager-bug/tree/main Help is appreciated! On Wednesday, June 30, 2021 at 12:15:42 PM UTC-4 kuisat...@gmail.com wrote: > We do not use Spock, but we have a process to test jobDSL definitions > before applying changes see > https://github.com/elastic/apm-pipeline-library/tree/master/.ci/jobDSL it > test that the syntax is correct and test that you can create the job. > Probably the class that helps you is > https://github.com/elastic/apm-pipeline-library/blob/master/.ci/jobDSL/src/test/groovy/JobScriptsSpec.groovy > > , also it is really tricky to configure the plugins you need on > https://github.com/elastic/apm-pipeline-library/blob/master/.ci/jobDSL/build.gradle#L29-L68 > > El miércoles, 30 de junio de 2021 a las 16:33:56 UTC+2, > matthi...@outlook.com escribió: > >> Hi, I'm trying to use a different set of plugins for different Spock >> Specifications. I've posted a more detail question here: >> https://stackoverflow.com/questions/68196423/trouble-using-a-base-spock-specification-and-jenkinsrule-with-pluginmanager >> >> I'm hoping that someone might be able to provide some insight. Thank you. > > -- 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/5b3b417f-0a03-4882-a559-30f9dda05e4fn%40googlegroups.com.
Trouble using JenkinsRule with PluginManager
Hi, I'm trying to use a different set of plugins for different Spock Specifications. I've posted a more detail question here: https://stackoverflow.com/questions/68196423/trouble-using-a-base-spock-specification-and-jenkinsrule-with-pluginmanager I'm hoping that someone might be able to provide some insight. Thank you. -- 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/4f148db0-39c1-4d17-9d21-3fc2fdeaef5dn%40googlegroups.com.
How to avoid upstream trigger build cascade
Hi! Sorry, I have a question. We have some (not crazy, but still) number of jobs, that have dependencies to other jobs. The final job has about 15-20 deps. All those dependencies may have dependencies among each other. I added those dependencies to the "upstream trigger". Now, when the first job runs, it triggers jobs, that depend on it, *and* the final job. When those finish, they trigger other jobs *and* the final job. This ends in a cascade, which leads to 6-8 rebuilds of the final job. I would not like to hardcode the chain into the project, since the dependencies for example may change or are also used in other projects. I have seen, that other people suffered the same problem. One Solution, it seems, is the BlockBuildJob Plugin. But how can I activate it from a Jenkinsfile (declarative pipeline)? I tried it through options, but it does not seem to support this field. Any help is appreciated, Java / groovy is not my strong suit, I am more the C++ guy ;-) My other idea was to scan the Queue myself, but I have not seen where query the Queue properly. Or to have a Seed job, that scans all jenkins jobs and builds MultiJob Jobs from it via jobDSL, but I did not succeed here either. Regards, Matthias -- 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/89da2046-a89a-4e91-a0d2-f70d0fe0f2c7o%40googlegroups.com.
configuration of jobs maintained in SVN
Hello, I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in: $ ls -l /var/lib/jenkins/jobs/ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0 drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build ... $ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml -rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml I'd like to edit the jobs with the normal editor in Linux, esp. the sometimes complex build step script written in shell or perl, and have all this, at least the config.xml file of each of my 50 jobs, under SVN version control. After modifying any jobs config.xml, the Jenkins server process must be restarted to get the changes in effect (and visible in the browser interface). Is there any other way to inform Jenkings about the change and let it reload the modified job config? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/20190228183259.GA2927%40c720-r342378. For more options, visit https://groups.google.com/d/optout.
configuration of jobs maintained in SVN
Hello, I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in: $ ls -l /var/lib/jenkins/jobs/ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0 drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build ... $ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml -rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml I'd like to edit the jobs with the normal editor in Linux, esp. the sometimes complex build step script written in shell or perl, and have all this, at least the config.xml file of each of my 50 jobs, under SVN version control. After modifying any jobs config.xml, the Jenkins server process must be restarted to get the changes in effect (and visible in the browser interface). Is there any other way to inform Jenkings about the change and let it reload the modified job config? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/20190228181816.GA2643%40c720-r342378. For more options, visit https://groups.google.com/d/optout.
configuration of jobs maintained in SVN
Hello, I've setup a Jenkins server on SuSE Linux SLES12 and have the jobs in: $ ls -l /var/lib/jenkins/jobs/ total 12 drwxr-xr-x 3 jenkins jenkins 4096 Feb 23 00:00 Jerome_Head drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 Statistic-Installation-Job-V7.0 drwxr-xr-x 3 jenkins jenkins 4096 Feb 28 01:00 TPv70-nightly-build ... $ ls -l /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml -rw-r--r-- 1 jenkins jenkins 3162 Feb 27 11:40 /var/lib/jenkins/jobs/TPv70-nightly-build/config.xml I'd like to edit the jobs with the normal editor in Linux, esp. the sometimes complex build step script written in shell or perl, and have all this, at least the config.xml file of each of my 50 jobs, under SVN version control. After modifying any jobs config.xml, the Jenkins server process must be restarted to get the changes in effect (and visible in the browser interface). Is there any other way to inform Jenkings about the change and let it reload the modified job config? Thanks matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub -- 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/20190228055907.GA2945%40c720-r342378. For more options, visit https://groups.google.com/d/optout.
Re: Job DSL: How to Use Credentials Store for authenticationToken
Thanks for the idea! In the meantime I also thought of a different idea: 1. having global properties for the auth token, e.g. Name: MY_TOKEN Value: 123 2. Access the token directly from the job dsl, e.g. authenticationToken(MY_TOKEN) Since the seed-job has access to the environment you from the job-dsl have access too. Best, Matthias On Friday, 25 August 2017 11:44:32 UTC+2, Steffen Elste wrote: > > Hi, >> > to a certain extent it depends on how paranoid You allow yourself to get > ;-) > > One solution could be to use indirection, e.g. via the Config File > Provider Plugin. > Use an arbitrary token in your job description, and in an additional build > step access a configuration file to read the actual access token that is > necessary ... via simple properties. > That way You could use different IDs for each Jenkins instance, if that is > a requirement, and the mapping is done via the configuration file. > Cheers, > > Steffen > > -- 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/54223c4f-4a18-4474-97e2-c6fc62ad74c4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Job DSL: How to Use Credentials Store for authenticationToken
Hi, I store the job specifications via job DSL on github. For one job I need an authentication token. The docu of authenticationToken mentions: "... For security reasons, do not use a hard-coded token. See Handling Credentials <https://github.com/jenkinsci/job-dsl-plugin/wiki/Handling-Credentials> for details about handling credentials in DSL scripts." But I could not find any details on the "Handling Credentials" page related to authenticationToken. Could you please help me out how to store and access the tokens securely, so that I can upload the job definitions on github? Best, Matthias -- 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/7c296fa6-4f7b-41ed-bcc2-6a28d986d10d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Periodically build specific branch
Hi ! We are using multiple branches. Changes to those branches correctly trigger a new build. However, in addition to this we also have a daily, period build. I have noticed that the periodic build uses the branch that was last updated. Is it possible to periodically only build a specific branch, for instance just the master branch ? Thanx, matthias -- 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/19bb804f-1eb6-495b-8660-986c8a8a419e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Slave dies because of non-readable settings
no clue at all? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Nunit multiple report files
Can no one help me with this Issue? Am Freitag, 17. Januar 2014 11:11:24 UTC+1 schrieb Matthias: Hello We are using Jenkins to build a Delphi Job. This Job builds an x64 and x86 Tests.exe. Both of them excecute fine and also generate a seperate dunit-report.xml and dunit-report-x64.xml file. If we insert only one of these two files into the Publish NUnit test result report Plugin everything works fine. But if we insert both of them only one is used. No matter how we insert them into the Publish NUnit test result report Plugin. I have tried: **/*report*.xml **/*.xml dunit-report.xml,dunit-report-x64.xml *.xml Every time only one of the two reports is used. Are we doing antyhing wrong? Are we expecting the wrong result? We want to get a second Test Result at the Job Dashboard, so one can see both testresults. Thanks for your help! Regards Matthias -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Nunit multiple report files
Hi, Thanks for your Answer.. But, why is there a help text, telling me that multiple files are supported? Isn't that a Bug? For now, my workaround looks like this: i have 2 separate jobs, building the x86 and x64 part of the Project. Regards 2014-02-05 Mark Waite mark.earl.wa...@gmail.com: My last experience with the plugin was that it only supports a single results file. You will need to find a way to make one file rather than two. On Feb 5, 2014 3:45 AM, Matthias napo...@gmail.com wrote: Can no one help me with this Issue? Am Freitag, 17. Januar 2014 11:11:24 UTC+1 schrieb Matthias: Hello We are using Jenkins to build a Delphi Job. This Job builds an x64 and x86 Tests.exe. Both of them excecute fine and also generate a seperate dunit-report.xml and dunit-report-x64.xml file. If we insert only one of these two files into the Publish NUnit test result report Plugin everything works fine. But if we insert both of them only one is used. No matter how we insert them into the Publish NUnit test result report Plugin. I have tried: **/*report*.xml **/*.xml dunit-report.xml,dunit-report-x64.xml *.xml Every time only one of the two reports is used. Are we doing antyhing wrong? Are we expecting the wrong result? We want to get a second Test Result at the Job Dashboard, so one can see both testresults. Thanks for your help! Regards Matthias -- 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. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/reuu1O6y0lQ/unsubscribe. To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Nunit multiple report files
Hello We are using Jenkins to build a Delphi Job. This Job builds an x64 and x86 Tests.exe. Both of them excecute fine and also generate a seperate dunit-report.xml and dunit-report-x64.xml file. If we insert only one of these two files into the Publish NUnit test result report Plugin everything works fine. But if we insert both of them only one is used. No matter how we insert them into the Publish NUnit test result report Plugin. I have tried: **/*report*.xml **/*.xml dunit-report.xml,dunit-report-x64.xml *.xml Every time only one of the two reports is used. Are we doing antyhing wrong? Are we expecting the wrong result? We want to get a second Test Result at the Job Dashboard, so one can see both testresults. Thanks for your help! Regards Matthias -- 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. For more options, visit https://groups.google.com/groups/opt_out.
JENKINS-17684 || Dashboard web pages don't render correctly in Chrome because of bad cache/session
Hi I have Jenkins Version 1.537 installed on a Windows Server 2008 R2 and still get this Error. But not only with Chrome. It occurs also with IE 9 and Firefox 23. Normally its every morning if nobody access the Server at all. The workaround with [Shift]+[F5] does not work for me. Is there another Solution for this problem? Regards. Matthias -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins slave node management with VM snapshots
Hi, have you managed to get this working? Am Freitag, 28. Juni 2013 09:58:15 UTC+2 schrieb Yves Goergen: We're running a Jenkins server on one machine that monitors the SVN repository and performs the complete build of the project. It's using a custom PowerShell script which basically just finds and runs MSBuild, Dotfuscator and InnoSetup. The resulting setup executable shall then be transfered to a number of slave nodes which are Hyper-V virtual machines, for GUI testing under different operating systems. I've already set up the slave node and after a lot of guesswork and tryerror, it finally copies over the setup.exe and runs it. We don't have a GUI test tool yet, so that's still left to be done. Now the problem lies in the VM management. I've just tried it once to revert the slave VM to a clean snapshot - with the computer in running state and the Jenkins agent also running - and then wanted the Jenkins slave work to start right afterwards. But the problem is that after reverting the VM, while the Jenkins agent is still running, all external resources like network connections are broken and nobody knows. And it takes a lot of time for both to recover from that. The server still thinks for a while that the client is still there, and the client still thinks that it's connected. But nothing works and the job eventually fails with a Jenkins internal exception that seems to come from the broken network connection. A while after that, the connection recovers and the node comes back available again. This doesn't exactly seem to work. I've found some hint on the web to tell the Jenkins server via its web API to doDisconnect a certain slave node, but that URL is only 404'd. Since there is virtually no API documentation of Jenkins at all, I cannot correct this method or even tell whether it was entirely made up. So, with the workflow: * Build on the master * Revert the slave VM (Hyper-V) to a running snapshot * Start another job on a slave What would be the suggested process? How can I get Jenkins to work in this environment? Does it even work at all? We're all Windows, with scripting in CMD or PowerShell, no Bash supported. I still need to find an automation script for Hyper-V control, but that should be possible. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Is there a chance to get Subversion 1.8.x running with jenkins?
For me it worked to delete all SVN checkouts that where checked out with SVN 1.8x and let Jenkins download the projects from the SVN Server. greetings Matthias Am Freitag, 2. August 2013 08:47:55 UTC+2 schrieb cjs1976: Hi! I made a mistake: I updated our lokal svn-server to the newest version (= Subversion 1.8.x). The update worked fine (no errors), and while the update process all files were automatically changed to the new format of Subversion 1.8.x. If we do a checkout (or whatever) from our svn-server to our local IDEs, everything workes fine. Only Jenkins (also the newst version) seems to have a problem with the new svn format. I found out, that the SVNKit version used in the actual Jenkins version doesn't support Subversion 1.8.x. There is an alpaha version of the newxt SVNKit version wthich would support the new format, but not all new Subversion 1.8.x features. But I don't know how I can manually change to the alpha version of the SVNKit. Here a part of the error messages from Jenkins: *** [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: E155036: Please see the 'svn upgrade' command svn: E155036: The working copy at ' http://my.server.org/jenkins/job/mysoftware/org.company.my$mysoftware/ws/'http://glassfish.software-agentur.com:8080/jenkins/job/saAVA/biz.soag.saava$saAVA/ws/' is too old (format 29) to work with client version '1.8.0 (r1490375)' (expects format 31). You need to upgrade the working copy first. *** Any idea? Greetings, Christian. Am Mittwoch, 31. Juli 2013 15:33:55 UTC+2 schrieb Kevin Fleming: Are you saying that SvnKit in Jenkins can't talk to a Subversion 1.8 server? That would be quite surprising, so I suspect that you are having problems because you are sharing a Subversion checkout (working copy) between Jenkins jobs and other uses, and they are using different versions of Subversion. If so, don't do that! The Jenkins workspace should be used only by Jenkins. - Original Message - From: jenkins...@googlegroups.com To: jenkins...@googlegroups.com At: Jul 30 2013 17:03:54 Hi! I made a big mistake. I changed our subversion to the newest version. Everything works fine. All our IDEs and tools are able to handle it, but not Jenkins. As I understood, Jenkins uses SVNKIT. There is an alpha version of SVNKIT which supports the subversion 1.8.x format. Is there a chance for me, to get this alpha version running in our Jenkins installation? Thanks, Christian. -- 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-use...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Jenkins slave node management with VM snapshots
If I try to start a Hyper-V VM with a powershell script all i get is: Could not load file or assembly 'TraceWrapper, Version=1.0.523.0, Culture=neutr al, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format. The script looks like this: Import-Module C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\virtualmachinemanager\virtualmachinemanager.psd1; Get-VMMServer hades $VM = Get-SCVirtualMachine -Name Windows Server 2008 R2 Start-SCVirtualMachine -VM $VM Why does Jenkins fail with this script? if i execute it in a normal powershell, started as admin and also non admin, it works just fine. Greetings Matthias 2013/10/31 Yves Goergen yves.goer...@gmail.com Yes, it's working now. I figured out that I had some URL entered wrong. But I can't remember the details anymore. We're using two separate jobs after the build has completed: Prepare-Test and test. The first one restores the VM and disconnects the client from the Jenkins server. The VMM API is synchronous, but a little more delay was necessary to stabilise it. Then, the slave is started on that VM through remote execution of a Windows scheduled task. The second job then does the actual work. Transferring the build files (setup etc.) to the slave is still complicated though. I played with diverse settings and plug-ins and eventually made it work with the help of additional batch script copying of files through the public userContent directory. Not nice but working. A truly integrated solution would offer me this out of the box. About the VMM control: Nothing else worked reliably or satisfactory than installing the VMM console on the Jenkins host and using the PowerShell commands locally. It takes about 1 GB disk space, which is more bloat than anything else on that machine, but at least it works easily. (I hope this reply goes in the right direction. I don't know where I originally posted it and just found this message in my inbox, using the Gmail reply function...) 2013/10/31 Matthias napo...@gmail.com Hi, have you managed to get this working? Am Freitag, 28. Juni 2013 09:58:15 UTC+2 schrieb Yves Goergen: We're running a Jenkins server on one machine that monitors the SVN repository and performs the complete build of the project. It's using a custom PowerShell script which basically just finds and runs MSBuild, Dotfuscator and InnoSetup. The resulting setup executable shall then be transfered to a number of slave nodes which are Hyper-V virtual machines, for GUI testing under different operating systems. I've already set up the slave node and after a lot of guesswork and tryerror, it finally copies over the setup.exe and runs it. We don't have a GUI test tool yet, so that's still left to be done. Now the problem lies in the VM management. I've just tried it once to revert the slave VM to a clean snapshot - with the computer in running state and the Jenkins agent also running - and then wanted the Jenkins slave work to start right afterwards. But the problem is that after reverting the VM, while the Jenkins agent is still running, all external resources like network connections are broken and nobody knows. And it takes a lot of time for both to recover from that. The server still thinks for a while that the client is still there, and the client still thinks that it's connected. But nothing works and the job eventually fails with a Jenkins internal exception that seems to come from the broken network connection. A while after that, the connection recovers and the node comes back available again. This doesn't exactly seem to work. I've found some hint on the web to tell the Jenkins server via its web API to doDisconnect a certain slave node, but that URL is only 404'd. Since there is virtually no API documentation of Jenkins at all, I cannot correct this method or even tell whether it was entirely made up. So, with the workflow: * Build on the master * Revert the slave VM (Hyper-V) to a running snapshot * Start another job on a slave What would be the suggested process? How can I get Jenkins to work in this environment? Does it even work at all? We're all Windows, with scripting in CMD or PowerShell, no Bash supported. I still need to find an automation script for Hyper-V control, but that should be possible. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/Cuhykr4bXco/unsubscribe . To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to a topic in the Google Groups Jenkins Users group. To unsubscribe from this topic, visit
Re: shell execution produces couldn't flush stdout error
Hello, thank you for the suggestion - but I already tried that but it didn't change the behaviour. On Thursday, September 5, 2013 8:52:54 PM UTC+2, John Russell wrote: I find I have much better luck in Execute shell build steps if I put #!/bin/bash at the top. It tends to make the behavior much more consistent. YMMV On Wednesday, September 4, 2013 4:30:04 AM UTC-4, Matthias wrote: Hello, when using pipes in shell scripts I often get the error mentioned in the subject line. To reproduce the issue add an execute shell build step to a new job and run the following: echo replace e by a | sed 's_e_a_g' | echo done This might not make much sense - but it generates the error couldn't flush stdout while this does not happen when executing the same in a terminal. The jenkins console output produces: [EnvInject] - Loading node environment variables. Building on master in workspace /home/jenkins/build-server/jobs/test.sed/workspace [workspace] $ /bin/sh -xe /tmp/hudson7236481234921041257.sh + echo replace e by a + echo done done + sed s_e_a_g sed: couldn't flush stdout: Broken pipe Finished: SUCCESS best regards, Matthias -- 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. For more options, visit https://groups.google.com/groups/opt_out.
shell execution produces couldn't flush stdout error
Hello, when using pipes in shell scripts I often get the error mentioned in the subject line. To reproduce the issue add an execute shell build step to a new job and run the following: echo replace e by a | sed 's_e_a_g' | echo done This might not make much sense - but it generates the error couldn't flush stdout while this does not happen when executing the same in a terminal. The jenkins console output produces: [EnvInject] - Loading node environment variables. Building on master in workspace /home/jenkins/build-server/jobs/test.sed/workspace [workspace] $ /bin/sh -xe /tmp/hudson7236481234921041257.sh + echo replace e by a + echo done done + sed s_e_a_g sed: couldn't flush stdout: Broken pipe Finished: SUCCESS best regards, Matthias -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Crash Dump of Unit Tests
Hi Is there a plugin to get a Crash Dump of a crashed job? If we run our Unit tests and they crash it would be nice if we could get a Crash Dump of this process. We run Jenkins on a Windows Server 2008 R2. Only Delphi and C# Jobs. Thanks for your help! Regards. -- 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. For more options, visit https://groups.google.com/groups/opt_out.