Re: pipeline-maven-plugin 3.8 upgrade fails to load mysql driver

2019-07-13 Thread Dan Tran
The change suggests to install mysql-api plugin. It works Thanks -D On Saturday, July 13, 2019 at 1:30:11 PM UTC-7, Dan Tran wrote: > > looks like my issue related to this change > https://github.com/jenkinsci/pipeline-maven-plugin/commit/9a673ee9cd4ee978a9f8b4bf830fdccfde40706b > > will dig f

Re: pipeline-maven-plugin 3.8 upgrade fails to load mysql driver

2019-07-13 Thread Dan Tran
looks like my issue related to this change https://github.com/jenkinsci/pipeline-maven-plugin/commit/9a673ee9cd4ee978a9f8b4bf830fdccfde40706b will dig further before file a Jira bug Thanks -D On Saturday, July 13, 2019 at 9:29:06 AM UTC-7, Baptiste Mathus wrote: > > I recommend filing a JIRA i

Re: pipeline-maven-plugin 3.8 upgrade fails to load mysql driver

2019-07-13 Thread Baptiste Mathus
I recommend filing a JIRA if you have abug reproducer. Cyrille, the maintainer, is quite busy these days, so a JIRA is likely a better way that he sees it and fixes it if needed. Cheers Le sam. 13 juil. 2019 à 07:58, Dan Tran a écrit : > > Hello, > > after upgrading to 3.8, mysql setup for pipe

Re: How can I pass the userName and password from jenkins

2019-07-13 Thread Ivan Fernandez Calvo
I understand that you want to run the same thing 100 times with different users, or something like that, so you have the easy one that it is to use a credential de type file where you store you current CVS file, in this case it does not change too much you current process, you retrieve the file

Re: How can I pass the userName and password from jenkins

2019-07-13 Thread Sanjay Kumar
Hi Ivan, Thank you for sharing the links, Sure I will look in it. Scenario: In my application, we have around 100 users with a different role, and currently maintaining in all 100user in a CSV file and reading from csv using java code and passing to selenium to login in application. But now I wan

Re: how to define multibranch pipeline with jenkinsfile from another repository (or hardcoded)?

2019-07-13 Thread Ivan Fernandez Calvo
Hi, There is an option by using a shared pipeline library that allows you to define a full pipeline in a step, so you can have a simple Jenkinsfile on the repos that only call those steps, in that way you manage all your pipeline in your pipeline shared library https://jenkins.io/doc/book/pipe

Re: Jenkins slave machines stops abruptly

2019-07-13 Thread Ivan Fernandez Calvo
Hi, There is a really old remoting issue JENKINS-49472 resolved on latest Jenkins versions -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving

Re: Skip a Jenkins job build in a pipeline

2019-07-13 Thread Ivan Fernandez Calvo
El martes, 2 de julio de 2019, 18:44:39 (UTC+2), Nalin Garg escribió: > > I had a similar need. I ended up querying git to give list of all files > that were changed in PR. And then have logic around what files would be > wrapped in "if, else"/ "when" block. > > I preffer to use `when` at s

Re: Blue Ocean UI not prompting for input correctly when there are parallel input prompts in a pipeline

2019-07-13 Thread Ivan Fernandez Calvo
Hi, I don't think this is supported, it will only work with one input at a time, so probably you have to group your inputs in a stage before your parallel stages -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group

Re: Declarative Jenkinsfile: different cron trigger per branch

2019-07-13 Thread Ivan Fernandez Calvo
Hi, Every branch has its own Jenkinsfile, so you can have different configuration on every Jenkinsfile -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkins

Re: Jenkins Agents getting disconnected

2019-07-13 Thread Ivan Fernandez Calvo
I saw that you have another question related with OOM errors in Jenkins if it is the same instance , this is your real issue with the agents, until you do not have a stable Jenkins instance the agent disconnection will be a side effect. > > -- You received this message because you are subscrib

Re: Memory issues with Jenkins

2019-07-13 Thread Ivan Fernandez Calvo
Hi, When the issue happens, Did you check the number of threads that Jenkins has open? How many file descriptors can your process open (run ulimit -a with the user jenkins)? here you have a good KB about memory and user limit on Jenkins Prepare Jenkins for Support

Re: Running jobs sequentially on Jenkins ?

2019-07-13 Thread Ivan Fernandez Calvo
Hi, We have a similar use case, we create a bunch of Docker images and then we updated a bunch of k8s clusters with those images, for this task we use a simple pipeline with and stage per group of tasks, this run in sequential mode :) -- You received this message because you are subscribed to

Re: trying to get Jenkins pipeline to run across multiple nodes in parallel

2019-07-13 Thread Ivan Fernandez Calvo
to use groovy in dleclarative you have to use the `script` step to warp your code pipeline { stages { stage('Stage1') { steps { script { // YOU NEED TO USE THE SCRIPT BLOCK def labels = ['machine1', 'machine2'] // labels for Jenkins node types we will build on

Re: Is there a way how to use template from email extension template plugin(emailexttemplates) in pipeline?

2019-07-13 Thread Ivan Fernandez Calvo
Hi, We've had the similar requirement, finally, we use a groovy template and a custom step from our shared pipeline library to make the thing, we got the idea from this nice article Prettifying Jenkins’ email notifications

Re: Jenkins Agents getting disconnected

2019-07-13 Thread Ivan Fernandez Calvo
Hi, You do not need to save the configuration to force the disconnection, you can use the disconnection REST call URL see https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/doc/TROUBLESHOOTING.md#force-disconnection About the disconnection error, this trace is the last error after the

How can I pass the userName and password from jenkins

2019-07-13 Thread Ivan Fernandez Calvo
Hi, Here you have a couple of links that explain you how credentials works https://jenkins.io/doc/book/using/using-credentials/ https://support.cloudbees.com/hc/en-us/articles/203802500-Injecting-Secrets-into-Jenkins-Build-Jobs Also, I’d recommend to take a look to the documentation https://je