Re: Declarative Pipeline: Add trigger only on when condition

2021-11-19 Thread 'Björn Pedersen' via Jenkins Users
You can't do it on the triggers level ( the trigger config only can affect the next run, as the job is already triggered), but you can wrap the whole work in the pipeline in a when, so if the branch is a userbranch this run is mostly a do-nothing. Björn sverr...@gmail.com schrieb am Mittwoch

Trigger (and track) a build promotion from an unrelated job (using Groovy script)

2021-11-19 Thread 'Dirk Heinrichs' via Jenkins Users
Hi, given 2 (non-pipeline) jobs, A and B, where B needs to automatically update the version of A's built software on a branch which is then consumed by job C. In order to do this, B would need to 1. Check whether A's latest successful build has also been successfully promoted (say by promotion

Error updating plugins from Jenkins

2021-11-19 Thread Tamás Németh
Hello, When I try updating plugins, the very first plugin gets downloaded successfully, but the subsequent ones fail to download. [image: Jenkins.png] According to *Details* the SSL handshake fails due to a certificate error: [...] Caused: javax.net.ssl.SSLHandshakeException: PKIX path building

Re: Error updating plugins from Jenkins

2021-11-19 Thread Mark Waite
I think that the output of https://updates.jenkins.io/latest/antisamy-markup-formatter.hpi?mirrorlist will show that your location may be served by multiple Jenkins mirrors. You can then check each of the mirrors to identify if one of them is responding with an incorrect SSL certificate. It co

Re: Error updating plugins from Jenkins

2021-11-19 Thread Tamás Németh
Mark, Thank you for your response. Yes I'm running Linux. (sorry for missing this information) I suspected the Let's Encrypt certificates earlier, so I've already added ISRG Root X1 (the issuer of Let's Encrypt) to the cacerts file. Nevertheless I just replaced my cacerts file with the one in t

Re: Error updating plugins from Jenkins

2021-11-19 Thread Mark Waite
On Friday, November 19, 2021 at 12:35:36 PM UTC-7 you wrote: > Mark, > > Thank you for your response. > > Yes I'm running Linux. (sorry for missing this information) > > I suspected the Let's Encrypt certificates earlier, so I've already added > ISRG Root X1 (the issuer of Let's Encrypt) to the

Re: Limiting jenkinks job

2021-11-19 Thread Jan Monterrubio
Would a cron expression do what you want ? https://www.freeformatter.com/cron-expression-generator-quartz.html On Wed, Nov 17, 2021 at 08:13 Lalchand Rajak wrote: > Hello, > > Is it possible to limit the jenkinks job to run at 5 or 10 days. > > > Thanks,Lalchand > > -- > You received this mes

Re: Error updating plugins from Jenkins

2021-11-19 Thread 'Daniel Beck' via Jenkins Users
> On 19. Nov 2021, at 20:52, Mark Waite wrote: > > I thought that certificate could be reported when a request is made to the IP > address of an HTTP server hosted in Kubernetes. The Kubernetes server needs > the hostname in order to use the correct SSL certificate (or something like > tha