Re: variable within a variable

2020-10-26 Thread cw
thank you for the suggestion and the explanation. I'm definitely learning here. slowly, but hopefully learning. I'm also investigating just writing a quick python program that does the work for me and calling that to get the result I need. On Monday, October 26, 2020 at 4:02:13 PM UTC-4 jerem

Re: variable within a variable

2020-10-26 Thread jeremy mordkoff
okay, take this with a grain of salt because this is purely a guess The ssh call is trying to serialize all of the local variables, but it can't serialize the simpleTemplate. So move all the code that touches simpletemplate into a function that's wrapped with the @NONCPS decorator. something l

Re: variable within a variable

2020-10-26 Thread cw
I wondered about that also, but I commented it out and still got the error. Then I moved the defs outside the withCredentials block and now I get a similar but different error. It appears to be erroring at the withCredentials line. I haven't even tried calling these defs yet but am getting t

Re: variable within a variable

2020-10-26 Thread jeremy mordkoff
I think it is failing on this line: echo("MAL is ${MAL}") On Monday, October 26, 2020 at 11:51:19 AM UTC-4 cw wrote: > Also I'm confused why I'm getting a NotSerializableException related to > SimpleTemplateEngine$SimpleTemplate when I'm in a try/except block which is > running an sshCo

Re: How to get command versions supported by Pipeline

2020-10-26 Thread Stuart Rowe
The folder containing the "dotnet" executable/script needs to be added to your PATH environment variable. It's likely that the machine where this command works already has the "dotnet" folder included in the PATH environment variable. On Tuesday, 13 October 2020 at 07:49:25 UTC-7 venh...@gmail.

Re: variable within a variable

2020-10-26 Thread cw
Also I'm confused why I'm getting a NotSerializableException related to SimpleTemplateEngine$SimpleTemplate when I'm in a try/except block which is running an sshCommand which is not trying to call the SimpleTemplateEngine. On Monday, October 26, 2020 at 10:04:59 AM UTC-4 cw wrote: > The code

Get Pipeline Stage Details in another Plugin

2020-10-26 Thread Sourabh Jain
Hi Team, I am a maintainer of SumoLogic-Publisher plugin. Currently, I am using pipeline stage view plugin to get the Pipeline Stage information, but seems like it provides data without any processing (like duration of a main stage is not calculated based on all internal parallel stages). Is

Build status UX survey

2020-10-26 Thread Joseph Brueggen
Hello Jenkins users, My name is Joe—I'm a designer at CloudBees. I'm gathering some feedback about the user experience of the Jenkins user interface. This survey is about the build status page in the Jenkins UI. It takes only 5-10 minutes to complete, and your feedback would be greatly apprecia

Re: variable within a variable

2020-10-26 Thread cw
The code block I pasted is exactly the pipeline steps I am running so I don't think I'm running it in a function? On Monday, October 26, 2020 at 9:41:08 AM UTC-4 jeremy@riftio.com wrote: > Are you running this in the main thread of the enkinsFile itself or in a > function? I suspect that

Re: failed build

2020-10-26 Thread cw
Looks like this is part (or all) of the problem: Server returned HTTP response code: 401 for URL: http://ec2138-86-151.us-east-2.compute.amazonaws.com:8080/manager/text/list ... *The username and password you pro

Re: variable within a variable

2020-10-26 Thread jeremy mordkoff
Are you running this in the main thread of the enkinsFile itself or in a function? I suspect that you are in a function and you may need to use the @NONCPS decorator On Friday, October 23, 2020 at 4:31:55 PM UTC-4 cw wrote: > That's great, thank you very much. I was able to take your code, >

failed build

2020-10-26 Thread Francis Maduka
hi guys please i am having issues with deployments ,please any help would be appreciated . this is my console output Started by user maduka francis Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/myauto

How to run a visual studio CMD command in a pipeline?

2020-10-26 Thread jesus fernandez
I need to run a elevated x64 Native Tools Command Prompt fro VS 2019 command ("vcperf /start session") within my pipeline. I have tried different ways but I cannot make it work. This is what I tried last: pipeline { agent any stages { stage('test') { steps {

hudson.triggers.TimerTrigger.run() spent too much time

2020-10-26 Thread Jani R
Has anyone runned into following issue with Jenkins? hudson.triggers.TimerTrigger ... Trigger hudson.triggers.TimerTrigger.run() triggered by hudson.model.FreeStyleProject@... spent too much time (5 min 4 sec) in its execution, other timers can be affected varies, when this happen, all jobs st