Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
Let's say I have the following use case. I have 3 choice parameters, namely, Country, State, City. I have shared library steps to GetCountries, then GetStates with country as argument and then GetCities with country and state as arguments. In my pipeline job, I will have 3 Choice parameters, one ea

Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Senthil Nathan
You have to create a list from the return value of the library step. I don't know what library step you are using so cannot provide specific example. On Sat, Dec 19, 2020, 12:59 AM Ven H wrote: > Thanks a lot, Senthil. Can it be a Shared Library Step or a Class method > only?. It will be great,

Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
Thanks a lot, Senthil. Can it be a Shared Library Step or a Class method only?. It will be great, if you can please help with some examples. Regards, Venkatesh On Sat, Dec 19, 2020 at 12:48 AM Senthil Nathan wrote: > Yes. In below example the choice_list can come from a shared pipeline > libra

Re: Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Senthil Nathan
Yes. In below example the choice_list can come from a shared pipeline library. Eg) Jenkinsfile: choice_list=["choice1", "choice2", choice3"] properties([ parameters([ choice(name: 'mychoiceparam', choices:choice_list, description: 'my choices')]) ]) On Fri,

Re: Windows agent connected over ssh - requires elevation to install jdk-8-oracle

2020-12-18 Thread Amedee Van Gasse
Well, this has all been very interesting, and I am truly grateful for the time you took to write your answers. I went with the backup plan - zipping the Oracle JDK 8 directory and then letting Jenkins get it from Artifactory. That works good enough for me. I think that the conclusion is that the

Choice Parameter from Shared LIbrary Step

2020-12-18 Thread Ven H
Is it possible to populate a Choice parameter values (choices) with values retrieved from a Shared Library Step? Please help. Regards, Venkatesh -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Windows agent connected over ssh - requires elevation to install jdk-8-oracle

2020-12-18 Thread Mark Waite
On Fri, Dec 18, 2020 at 10:29 AM Amedee Van Gasse wrote: > The Oracle JDK is a requirement for a non-technical reason, and I am not > at liberty to discuss the nature of those non-technical requirements on a > public communication channel. > I know, that sounds more mysterious than it actually is

Re: Better way to load all the plugins/dependencies for local java testing using jenkinsrule

2020-12-18 Thread Charles Moulliard
On Thu, Dec 17, 2020 at 10:38 AM Yannick Lacaute wrote: > Hi Charles, > > I am working on a pipeline (build java > build docker > deploy pod in > Openshift) and currently I have no unit test. > I think you achieved something huge !! Well done by the way :) > Many thanks. > > Could you please giv

Re: Windows agent connected over ssh - requires elevation to install jdk-8-oracle

2020-12-18 Thread Amedee Van Gasse
The Oracle JDK is a requirement for a non-technical reason, and I am not at liberty to discuss the nature of those non-technical requirements on a public communication channel. I know, that sounds more mysterious than it actually is. :-) An Oracle JDK license is only required for Oracle Java SE

Re: Help Reset User

2020-12-18 Thread Mark Waite
I'm working with Stephan to resolve the issue. On Fri, Dec 18, 2020 at 9:38 AM Stephan Watermeyer wrote: > Hey, i would like to update my jenkins plugin but i cant log in to my > account anymore. The reset password functionality does not work for me, as > i dont get the emails. Maybe someone can

Help Reset User

2020-12-18 Thread Stephan Watermeyer
Hey, i would like to update my jenkins plugin but i cant log in to my account anymore. The reset password functionality does not work for me, as i dont get the emails. Maybe someone can help me to reset my account or reset my mail for account. My account name is phreakadelle Cheers Stephan --

Re: Windows agent connected over ssh - requires elevation to install jdk-8-orable

2020-12-18 Thread Mark Waite
I use a WIndows Server 2019 ssh agent that has AdoptOpenJDK 8u275 unpacked in a user directory with JAVA_HOME set in the environment of that user to use the AdoptOpenJDK 8u275 installation. It seems like you should not need the Oracle JDK at all if you use AdoptOpenJDK. That avoids the requiremen

Windows agent connected over ssh - requires elevation to install jdk-8-orable

2020-12-18 Thread Amedee Van Gasse
There was a thread here last month "Recommended way to setup a windows agent nowadays?" I have a (new) windows agent (Windows Server 2019) that is connected through SSH, as described in that thread. It's configured through Packer and Ansible, to avoid clickety-click Next-Next-Next-Finish. I ha

EC2 Plugin Config for launching slave in another AWS account

2020-12-18 Thread Paritosh Anand
Hi, Lately, I have been trying to figure out how to configure EC2 cloud to launch slave nodes in another AWS account. Seems the plugin is unable to successfully locate the AMI and security groups from the other account. Why am I doing this ? Recently our organisation got merged with another, a

Re: BUG with libraryResource : No such library resource null could be found.

2020-12-18 Thread Yannick Lacaute
No, all my functions are directly called from "steps", in a declarative pipeline On Fri, Dec 18, 2020 at 5:59 AM Stuart Rowe wrote: > Any chance this is being called from a @NonCPS method? I've seen similar > behaviour in that case. > On Monday, 14 December 2020 at 14:37:55 UTC-8 yannick...@gmai

Re: java.lang.NoSuchMethodError: No such DSL method 'withKubeConfig' found among steps [approveReceivedEvent,

2020-12-18 Thread anilkumar panditi
Hi Mark i have installed kubernetes-cli an dit worked.Thank you On Thursday, 17 December 2020 at 21:29:41 UTC+5:30 Mark Waite wrote: > Are you sure that you have the Kubernetes CLI plugin installed? > https://plugins.jenkins.io/kubernetes-cli/ > > On Thu, Dec 17, 2020 at 8:50 AM anilkumar pandi

ERROR: [kubernetes-cli] unsupported credentials type com.microsoft.jenkins.kubernetes.credentials.KubeconfigCredentials

2020-12-18 Thread anilkumar panditi
Hi, I have followed the below and my connection test is successful to K8S cluster. Navigate to, - Jenkins -> Credentials - Select Kind as a secret file - Browse and load your ~/.kube/config file - Fill ID, Description and Save. Now select, - Kind as Kubernetes configuration (kubeconfig) - Fill ID