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

2020-08-03 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 obje

How to add parameters to existing parameters list?

2020-08-03 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: 'StringParam

Re: Using git describe in Jenkins differs from regular clones

2020-08-03 Thread Randall Becker
OK: Blame the operator. shallow: true made the difference. It was shallow: false before. So that makes the difference. I'm now getting the desired results inside Jenkins. Randall On Monday, 3 August 2020 17:13:00 UTC-4, Randall Becker wrote: > > I know I should know the answer to this one, but

Using git describe in Jenkins differs from regular clones

2020-08-03 Thread Randall Becker
I know I should know the answer to this one, but it's eluding me. When I run git describe from within a Jenkins pipeline, I am getting different results from when git describe is run from a normal clone/checkout. This happens even if I move to a detached head state. Obviously I'm missing an opt

Required to understand the behavior of project recognissors in GitHub organization project

2020-08-03 Thread kishore babu
Hi Jenkins Users/Development Team, Would like to know the behavior of project recognissors in GitHub organization project. Currently I'm successfully getting triggers and pipelines created for the branch having *jenkinfile, further I *want to have Jenkins file only in master branch and would like

Running parallel kubernetes jobs in Jenkins pipeline

2020-08-03 Thread Alex Taran
I'm running *perfomance tests* on Jenkins. Test that may *include multiple instances of the same container* to generate necessary load. I can't hardcode number of instances as it varies based on params for tests. I've tried to use the following code: pipeline { agent any stages { stage('Run

Re: Jenkins and HTTPS

2020-08-03 Thread Gaiseric Vandal
Changed port to 8443.  That seems to have fixed it. Thanks On 7/24/2020 11:12 AM, Gianluca wrote: Trying to guess: "java.net.SocketException: Permission denied" this smells of Java not running with enough privileges to open ports below 1024 Usually on Linux systems only root can open suc

Calling functions in Jenkins Shared Libraries

2020-08-03 Thread Chris Shannon
I've been using Jenkins shared libraries for quite a while, but something just popped up which is confusing me quite a bit. Instead of just creating steps, I'm now trying to create a full declarative pipeline inside the shared library. In any case, what I'm finding is that this works great w

Re: SAML plugin - differentiate between encryption and signing certificate

2020-08-03 Thread Chris DW
Hi , Having a signing certificate different from the encryption certificate was a request from my IDP. So I created both seperately.(from the same private key) . I was a bit confused as to the role of the saml-sp-metadata.xml being generated by the saml plugin. The way I understand it now, is

Re: Help required: jenkins SSH connectivity issue

2020-08-03 Thread jeremy mordkoff
The same solutions offered for client to host should apply for local system to host. Did you add the local system's public ssh key to the host's authorized key file? I have no clue what a "crumb" is On Monday, August 3, 2020 at 2:14:59 AM UTC-4, Sakshi Rathore wrote: > > could you please help