Suddenly Many plugins are throwing errors

2021-04-16 Thread Ven H
I have a Jenkins Controller (Master) running as a docker container in a Linux Host. Everything was working fine until yesterday night. Today, suddenly many plugins are throwing errors. Not sure what is wrong. Although Jenkins is up and running, many plugins are failing to load all of a sudden. Can

Re: Possible bug in EC2 plugin: check of SSH key may be too strict (confirmation needed before filing bug report)

2021-04-16 Thread Amedee Van Gasse
It's not just ed25519. (and you were right about AWS not supporting it) I created a rsa key with length 8192, and the private key was also -BEGIN OPENSSH PRIVATE KEY- This was accepted by Jenkins as a valid key, and also by AWS itself, but it wasn't accepted by the EC2 plugin. So I had

Re: Suddenly Many plugins are throwing errors

2021-04-16 Thread Ven H
We fixed the issue. We installed the plugins which were throwing errors, one by one and restarted Jenkins. On Fri, Apr 16, 2021 at 12:35 PM Ven H wrote: > I have a Jenkins Controller (Master) running as a docker container in a > Linux Host. Everything was working fine until yesterday night. Toda

Re: How to fix workspace deletion on slave node

2021-04-16 Thread 'Björn Pedersen' via Jenkins Users
Best idea is to avoid relying on the workspace being preserved at all . So if you are deplyoing something, then do it by installing/copying/whatever the final artifacts in a place outside the workspace. m.s.sent...@gmail.com schrieb am Freitag, 16. April 2021 um 03:18:23 UTC+2: > This is a

Re: How to fix workspace deletion on slave node

2021-04-16 Thread 'Dirk Heinrichs' via Jenkins Users
Am Donnerstag, den 15.04.2021, 23:39 +0530 schrieb DHAVAL JAISWAL: > Guide me on how can I fix this issuer permanently & save my workspace > and build. Don't do that. Use an "Archive Artifacts" post build step in your job to archive exactly those build artifacts you really need. HTH...

Re: overwrite an environment variable

2021-04-16 Thread 'Harry G.' via Jenkins Users
Yes, a file would be a valid way - still you have to get that file in this pipeline, e.g. by copy artifacts plugin. By far easier would be if you switch to scripted pipeline and run the variable modification directly in this pipeline instead of a separate job. Then you could get a file or simply

Re: Git Plugin Checkout From Branch With Tag

2021-04-16 Thread Eric Fetzer
That's excellent news Dirk! That means the process I want to follow will work perfectly. Since I tag as I checkout from a branch, my tag will apply to that entire branch at that point in time. That way, when I later check out by tag, I will have that branch at that point in time. In the past, w

Issue in pipeline step of jenkinsfile

2021-04-16 Thread spratap singh
registeries = [1,2,3,4] Map tasks = [:] for (j=0;j<=registeries.size();j++) { tasks["Code ${j}"] = { -> sh "touch ${j}" } } parallel(tasks) sh "ls -lrt" Above code should create files 0,1,2,3,4,5 but the last line ls -lrt only prints 5 which means it is only taking the last iterat

Re: Issue in pipeline step of jenkinsfile

2021-04-16 Thread Devin Nusbaum
This is a classic issue that a lot of people run into in various programming languages. https://groovyconsole.appspot.com/script/5078409050849280 shows the same problem and one way to fix it (click "edit in console" and then you can exe

Re: How to fix workspace deletion on slave node

2021-04-16 Thread Senthil Nathan
Agree. You can stash artifacts generated in the workspaces to the controller. Be aware if you are using parallel builds automatic workspace deletion can cause job failures when the

Override Label parameter in Freestyle job

2021-04-16 Thread David Drum
Hello, I am at wit's end trying to make Jenkins run a freestyle job build on a node based on a Label parameter I set using a Groovy script in the job, rather than the value provided by the user who started the build. I will be deeply grateful for (a link to) a working example. Below are things

Re: Override Label parameter in Freestyle job

2021-04-16 Thread Mark Waite
You might investigate the Node and Label Parameters plugin . I don't know that it allows Groovy script evaluation to select the label or node, but it does have many options for node and label usage with Freestyle jobs. On Friday, April 16, 2021 a

Re: Override Label parameter in Freestyle job

2021-04-16 Thread David Drum
Thanks; that is the exact plugin whose Label parameter value I am trying to override and have Jenkins use the updated value to determine node selection. I can update the value and have it propagate to the build, but Jenkins still picks a node from the original value. On Friday, April 16, 2021 a