Re: How to add parameters to existing parameters list?

2020-08-04 Thread Stuart Rowe
You can configure the parameters for the current job (in a Scripted Pipeline) with: def parameterList = [stringParam(name: 'Test', value: 'TestValue')] properties(parameters(parameterList) This will replace all parameters of your job with the contents of parameterList. On Monday, 3 August

Re: How to get owner of upstream build in downstream build without using parameter?

2020-08-04 Thread Krish S
You could try this : def owner = currentBuild.getBuildCauses(‘hudson.model.Cause$UserIDCause’) manager.addShortText(“${Approval.userId[0]} ${Approval.userName}”) Thanks, On Tue, Aug 4, 2020 at 2:04 AM Gajanan Mahajan wrote: > I have upstream and downstream pipelines and in downstream

Re: Help required: jenkins SSH connectivity issue

2020-08-04 Thread jeremy mordkoff
You should start a new thread I cannot tell what is happening from this. You should also post the code On Tuesday, August 4, 2020 at 11:03:28 AM UTC-4, Sakshi Rathore wrote: > > yes thanks, it worked but after successful installation and execution of > script i am getting status as Build

Re: Help required: jenkins SSH connectivity issue

2020-08-04 Thread Sakshi Rathore
yes thanks, it worked but after successful installation and execution of script i am getting status as Build failure: Could you please advise here. Below are the logs: Started by user Sakshi Rathore Running as SYSTEM Building in workspace

Re: Jenkins and HTTPS

2020-08-04 Thread 'Mansom, Ewout van' via Jenkins Users
You may want to look at setting up a reverse proxy in front of Jenkins, offloading TLS. https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/ On Mon, 2020-08-03 at 15:08 -0400, Gaiseric Vandal wrote: Changed port to 8443. That seems to have fixed it.

How to get owner of upstream build in downstream build without using parameter?

2020-08-04 Thread Gajanan Mahajan
I have upstream and downstream pipelines and in downstream pipeline, I want to store user, who started upstream build, in downstream build variable. I used following in downstream pipeline but it results into error - `java.lang.NullPointerException: Cannot invoke method getUserId() on null

How to add parameters to existing parameters list?

2020-08-04 Thread Gajanan Mahajan
I get all parameters of a build using - def myparams = currentBuild.rawBuild.getAction(ParametersAction).getParameters() `myparams` is object of `java.util.Collections$UnmodifiableRandomAccessList` hence if try to add another parameter to it like - myparams.add([$class: