Re: How to make Jenkins build something on pushing to GitHub?

2017-03-22 Thread Yuri Kanivetsky
> > Your job need to have a scm configuration for it to be triggered on > commits. Either configure it as Multibranch Pipeline job or add a "git" or > checkout step in your normal pipeline. > Can you elaborate on 'add a "git" or checkout step in your normal pipeline' part? I tried it with th

Invoke Deploy Plugin through Pipeline Script

2017-03-22 Thread Salman Patel
I would like to invoke "Deploy war/ear to a container" as part of post-build script with Groovy pipeline script. One could have a separate job with this configuration and call the same in pipeline. But, I am looking for a script that could do in the same job. -- You received this message becaus

Re: multi master jenkins

2017-03-22 Thread suresh kumar
Check this plugin https://wiki.jenkins-ci.org/display/JENKINS/Gearman+Plugin whether it works for you. On Thursday, March 23, 2017 at 4:58:36 AM UTC+5:30, Ankita Nema wrote: > > has anybody tried multi master setup, where they share the queue ? > > -Ankita > -- You received this message becau

Re: what is the max no of slaves you have added to jenkins master?

2017-03-22 Thread Stephen Connolly
If the hardware for the master is good enough and you are willing to spend time tuning GC parameters... and your builds are not to chatty you should be able to have 1k agents attached... with effort you can get to 2k agents. I recommend 1-200 agents per master as a practical maximum. On Wed 22 M

Re: multi master jenkins

2017-03-22 Thread Mark Waite
I believe the team at Google used multi-master, though I'm not sure if their work is available anywhere else yet. Mark Waite On Wed, Mar 22, 2017 at 5:28 PM Ankita Nema wrote: > has anybody tried multi master setup, where they share the queue ? > > -Ankita > > -- > You received this message bec

Re: what is the max no of slaves you have added to jenkins master?

2017-03-22 Thread Mark Waite
Refer to https://jenkins.io/doc/book/architecting-for-scale/ and to https://www.cloudbees.com/blog/scaling-jenkins-slaves and to https://jenkins.io/blog/2016/08/31/scaling-jenkins-at-jenkins-world/ . Mark Waite On Wed, Mar 22, 2017 at 5:27 PM Ankita Nema wrote: > Hi ! > > Want to understand how

multi master jenkins

2017-03-22 Thread Ankita Nema
has anybody tried multi master setup, where they share the queue ? -Ankita -- 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 jenkinsci-users+unsubscr...@googlegr

what is the max no of slaves you have added to jenkins master?

2017-03-22 Thread Ankita Nema
Hi ! Want to understand how many slaves can we added to jenkins without breaking it? -Ankita -- 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 jenkinsci-users

Clearing the changelog in groovy

2017-03-22 Thread Brian Weiner
Is there any way to grab the changeling and clear it using groovy script? This would be really helpful if I could do it. I'd do a second clone that would populate it the way I want. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubsc

Re: Trying to disable email alerts to SCM committers

2017-03-22 Thread Zach LaCelle
Yup, that was it. I forgot to check the Advanced Settings. Thank you! On Tue, Mar 21, 2017 at 11:23 PM, Slide wrote: > Check the set of email providers, my guess is that the committers provider > is there. Remove it and only the list of emails you specified in the > project will be used. > > O

Re: GitLAB Integration

2017-03-22 Thread Emory Penney
For future Googlers who may stumble into this post: Upgrading to Ubuntu 16.04 fixed this issue for me. Looks like the latest somebody in the GitLab/GitLabPlugin/OracleJDK/Jenkins 2.32 stack doesn't play well with Ubuntu 14.04. On Thursday, March 9, 2017 at 1:50:18 PM UTC-8, Emory Penney wrote:

Re: Required core for jira plugin

2017-03-22 Thread Slide
It is the minimum version required. On Wed, Mar 22, 2017, 10:42 Gustavo Czobel wrote: > Hi, > I see in the Jira Plugin wiki > https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Plugin that the Required > Core is 1.642.3 > > This means the *minimum *core version required or the *required *core? > >

Re: plugin download question

2017-03-22 Thread Mark Waite
I should have done more reading (like https://github.com/yandex-qatools/juseppe/wiki/Complete-Guide-of-own-update-center-using-Juseppe ). Juseppe requires the Update Sites Manager plugin. You'll want both the plugin and Juseppe. Mark Waite On Wed, Mar 22, 2017 at 12:31 PM Mark Waite wrote: > Y

Re: plugin download question

2017-03-22 Thread Mark Waite
You might try Juseppe - https://jenkins.io/blog/2015/07/14/juseppe-a-custom-update-site-for-jenkins/ You might also try the Update Sites Manager plugin - https://wiki.jenkins-ci.org/display/JENKINS/UpdateSites+Manager+plugin Mark Waite On Wed, Mar 22, 2017 at 12:20 PM Andrew wrote: > Hi, > I

plugin download question

2017-03-22 Thread Andrew
Hi, I am lucky enough to work in an environment where Jenkins doesn't get to see the internet, ever. Is there any way to easily download a snapshot of >all< of the plugins for offline usage? It is a bit painful at times to update and maintain things. It would make my life much easier. Thanks --

Required core for jira plugin

2017-03-22 Thread Gustavo Czobel
Hi, I see in the Jira Plugin wiki https://wiki.jenkins-ci.org/display/JENKINS/JIRA+Plugin that the Required Core is 1.642.3 This means the *minimum *core version required or the *required *core? Can I use this plugin with core 1.658 ? (This is the latest core before 2.0) Thanks in advance --

warnings plugin groovy script

2017-03-22 Thread Alex
Hello, I am trying to automate the creation of a parser for the warnings plugin. So far I have this groovy code import hudson.plugins.warnings.*; def rubocop_name = 'Rubocop'; def rubocop_regexp = "^([^:]+):(\\d+):\\d+: ([^:]): ([^:]+)\$"; def rubocop_script = ''' import hudson.plugins.warning

Re: How to call a function defined within my Jenkinsfile

2017-03-22 Thread David Karr
On Wed, Mar 22, 2017 at 2:18 AM, ishan jain wrote: > @David can you please elaborate what do you mean by main body of the script > ? I guess you can ignore that point, as Cuong Tran indicates that is not the case. I did say that I wasn't sure about that. > I did try adding print statements to s

Re: How to make Jenkins build something on pushing to GitHub?

2017-03-22 Thread arseni . osipov
http://stackoverflow.com/questions/30576881/jenkins-build-when-a-change-is-pushed-to-github-option-is-not-working вторник, 21 марта 2017 г., 20:52:30 UTC+1 пользователь Yuri Kanivetsky написал: > > Hi, > > I have a pipeline job. It has "GitHub project" checked in settings. > Project url is speci

Re: Which job type to choose?

2017-03-22 Thread arseni . osipov
Freestyle -- the most basic one. In order to automatically build pushes from github you would need to enable the option "Build when a change is pushed to GitHub" среда, 22 марта 2017 г., 6:29:58 UTC+1 пользователь Yuri Kanivetsky написал: > > Hi, > > I believe I need something pretty basic. Like,

Re: Generate pipeline parallel steps

2017-03-22 Thread Tomas Pekarovic
Thank YOU you saved my life... that script was missing there On Wed, Mar 22, 2017 at 3:42 PM, Bill Dennis wrote: > You need to put the parallel in a script section like this (I chnanged the > node tag to 'windows' as I have no executors on the master): > > def run = [:] > for (int i = 0; i <= 5;

Re: Generate pipeline parallel steps

2017-03-22 Thread Bill Dennis
You need to put the parallel in a script section like this (I chnanged the node tag to 'windows' as I have no executors on the master): def run = [:] for (int i = 0; i <= 5; i++) { println "adding $i" def currentRun = { node('windows') { echo "hello $i" } } run.put("\"test $i\"", currentRu

scalable-amazon-ecs plugin

2017-03-22 Thread arseni . osipov
Hi, Could you please tell me whether it is possible to add ECS instances in cluster from 0(none) to 1 using this plugin? I want to have active ECS instances only when there are jobs to be done. I haven't found any documentation for the *scalable* version of the plugin and I will appreciate any h

RE: manually created config.xml and plugin version numbers

2017-03-22 Thread Artur Szostak
Sounds like you implementing something similar to Jenkins Job Builder (https://docs.openstack.org/infra/jenkins-job-builder/). That tool does not add plugin version numbers to the XML and it works. Presumably as long as there is nothing particularly strange going on between plugin upgrades. ___

Generate pipeline parallel steps

2017-03-22 Thread Tomas Pekarovic
Hi all, I'm trying to change my multiconfiguration project into pipeline. I need to generate parallel steps and than run it. Can somebody try to help me what am I doing wrong? I just cant figure it out. *codes===* === pipeline = def run = [:] for (int i = 0; i <= 5; i

adding custom parameters to configure publishers in withMaven pipeline step

2017-03-22 Thread Valentina Armenise
Hi, I'd like to customize the withMaven step from the Pipeline Maven Plugin to take as input the parameters which you would normally pass to a publisher. Specifically I'd like to be able to do something like step([$class: 'FindBugsPublisher', canRunOnFailed: true, defaultEncoding: 'UTF-8', ex

Re: How to call a function defined within my Jenkinsfile

2017-03-22 Thread ishan jain
@David can you please elaborate what do you mean by main body of the script ? I did try adding print statements to see if it is getting there. All the code samples i have pasted in my post would result in successful execution but no output, even when i have some in the function. Not sure what i

Re: Which job type to choose?

2017-03-22 Thread Stephen Connolly
Multibranch pipeline Use the declarative style of pipelines. IMHO It will give you the best mix of functionality and it is where the development effort is being focused (especially the new BlueOcean UI... which even has a visual editor for declarative style pipelines) On Wed 22 Mar 2017 at 05:30