Re: Email from Jenkins - question

2023-07-24 Thread Ulli Hafner
There is the log parser plug-in for such tasks. Log Parserplugins.jenkins.ioVon meinem iPad gesendetAm 24.07.2023 um 14:52 schrieb Inbar Mizrahi :Hi, I have
a pipeline job that at the end of the run search for a certain sentence in the
log and then:

1. Set the
job to UNSTABLE.

2. Send an
email with the log attached.

 

The
sentence includes problematic disks and may or may not appear. 

 

What I
would like is: 

  
Finding the sentence and putting it in the email body               (I can’t predict the
sentence but I know it contains “XX”.                (this is how I am searching for it)

  
The log is too long and complicated, we don’t need it,                and the reason I
attached it-                was just for the sentence with the problematic disks.

 

Hope it is
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ba7ddfad-6c81-4b8f-aeb4-4985c5b83135n%40googlegroups.com.




-- 
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/6823D2A3-6BDB-4AA3-A701-E96DE968E318%40gmail.com.


Email from Jenkins - question

2023-07-24 Thread Inbar Mizrahi


Hi, I have a pipeline job that at the end of the run search for a certain 
sentence in the log and then:


1. Set the job to UNSTABLE.

2. Send an email with the log attached.

 

The sentence includes problematic disks and may or may not appear. 

 

What I would like is: 

   Finding the sentence and putting it in the email body

   (I can’t predict the sentence but I know it contains 
“XX”.

(this is how I am searching for it)

   The log is too long and complicated, we don’t need it, 

   and the reason I attached it- 

   was just for the sentence with the problematic disks.

 

Hope it is 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ba7ddfad-6c81-4b8f-aeb4-4985c5b83135n%40googlegroups.com.


fresh Jenkins installation does not present the dashboard

2023-07-24 Thread Matthias Apitz


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.