pipeline with docker and warnings (pylint)

2017-05-19 Thread kristian kvilekval
I am trying to create a pipeline step that will display pylint warnings. I have a docker container with the code which will write a /reports/pylint.log file I would like to run the container and wait for the container to exit before executing the warning plugin on the resulting file. What

Re: One Jenkinsfile per repo in multi-branch workflows?

2017-05-19 Thread Michael Kobit
Be careful if you do use the job DSL as you will have to deal with Groovy sandbox permissions for job creation. On Fri, May 19, 2017, 09:20 Matt Stave wrote: > You can use a JobDSL statement in the Jenkinsfile in the root of your repo > to generate other jobs. Those jobs wouldn't be triggered b

Best/most idiomatic way to do parallel tasks that are largely the same?

2017-05-19 Thread Adam Paul
Hello, Let's say I have a product that needs to build on two different architectures (indeed, I do). The build steps are exactly the same, only the architecture differs. What is the best way to do this in parallel in a pipeline without duplicating the code for each architecture. The example

Re: Pipeline conversion of MSTest to JUnit using XUnit

2017-05-19 Thread Joe Cavanaugh
step([ $class: 'XUnitBuilder', testTimeMargin: '3000', thresholdMode: 1, thresholds: [ [$class: 'FailedThreshold', failureNewThreshold: '', failureThreshold: '0', unstableNewThreshold: '', unstableThreshold: ''], [$class: 'SkippedThreshold', failureNewThreshold: '', failureThreshold: '', unstabl

declarative: how can agent { docker { image 'foo:latest' }} really get the latest version?

2017-05-19 Thread Matt Stave
If you run such a job the 1st time, all is well. If you run it again, it may or may not decide to grab the latest version vs. use the one it already has. I'm not sure if it's finding it on the Jenkins master, or on a local worker. In my case it's an image built and pushed to a local repo by anot

Re: test result graph links are covered by cbwf-stage-view element

2017-05-19 Thread Trever
We use the fantastic material design theme from http://afonsof.com/jenkins-material-theme/ On Friday, May 19, 2017 at 1:28:12 AM UTC-7, Danny Rehelis wrote: > > May I hijack this thread and ask you how did you make Jenkins look like > that? > > On Thu, May 18, 2017 at 8:43 PM Trever > > wrote:

Re: Docker host and Jenkins on separate machines...

2017-05-19 Thread Alex Domoradov
Not sure what do you mean by "By default Jenkins supposes to be able to start docker containers on the same host as itself,". Because we are using Jenkins with AWS ECS cluster without any problems. And our slave nodes are different EC2 instances from master node. On Friday, May 19, 2017 at 10

Re: Grails plugin not available in new Jenkins versions?

2017-05-19 Thread Chris Peck
I'm having the same issue with the current LTS release 2.46.2. Does anyone know how to install it? On Monday, April 24, 2017 at 2:46:40 PM UTC-4, Carina Marban wrote: > > Hi, > > > I'm currently trying to migrate our jobs from a Jenkins 1.650 instance > to a new one that we just updated to 2.56.

Re: Docker host and Jenkins on separate machines...

2017-05-19 Thread Matt Stave
Did you try in "configure system" after installing the Docker plugin setting the Docker URL to something like tcp://172.16.42.43:4243 On Friday, May 19, 2017 at 2:20:52 AM UTC-5, Kirill Peskov wrote: > > Hi All, > > I'm googling already about an hour if not longer, but I really cannot > find an

Re: Job properties are not (should be !?) cumulative

2017-05-19 Thread Matt Stave
It also means if you use a JobDSL statement to generate a Pipeline job with authorization { permission('... then if your Pipeline Jenkinsfile uses options { buildDiscarder( It wipes out the permissions, since they both use the properties mechanism, which only works once. I'm not

Re: jenkins plugin in groovy, python or some other scripting language

2017-05-19 Thread Qiang
Groovy yes. There are samples of using Groovy/Gradle to build a jenkins plugin: https://www.cloudbees.com/event/topic/groovy-way-write-jenkins-plugin On Thursday, May 18, 2017 at 3:37:03 AM UTC-5, Jeeva Chelladhurai wrote: > > Oops! posted by mistake.. let me rephrase my question > > Is it poss

Re: One Jenkinsfile per repo in multi-branch workflows?

2017-05-19 Thread Matt Stave
You can use a JobDSL statement in the Jenkinsfile in the root of your repo to generate other jobs. Those jobs wouldn't be triggered by subsequent repo changes, unless you add a call to them in your main Jenkinsfile - they also could be triggered on-demand, through replay, a cron ... --- Matt

Re: How to set request header size for jetty

2017-05-19 Thread stanislavzal
> > hi >> > May 19, 2017 10:05:33 AM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Header is too large >8192 I added such options in jenkins.xml and it is resolved issue: -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -Dorg.eclipse.jetty.server.HttpConfigura

Re: How to set request header size for jetty

2017-05-19 Thread stanislavzal
> > Please try this: >> > https://issues.jenkins-ci.org/browse/JENKINS-26963 workaround this by adding -Dorg.eclipse.jetty.server.Request.maxFormContentSize=50 in the XML node of Jenkins\jenkins.xml -- You received this message because you are subscribed to the Google Groups "Jenkins U

Ant logger in jenkins

2017-05-19 Thread Moulidharan
Can anyone help me how to define ant logger in Jenkins?I had tried using ant_opts in environment variables but didn't work.Exactly I want (ant -f build.xml -logger org.apache.tools.ant.listener.ProfileLogger).Thanks in advance. -- View this message in context: http://jenkins-ci.361315.n4.nabble

Re: How to specify recipients in email-ext step in declarative script?

2017-05-19 Thread Slide
I don't know. It uses the Mailer plugin, so maybe you can look at the docs. On Fri, May 19, 2017, 04:28 David Aldrich wrote: > Hi Slide > > > > Do you know whether it’s possible to get the culprits without using > email-ext, i.e. using the ‘mail’ command? > > > > Best regards > > > > David > > >

Pipeline uses 2 executors when changing node

2017-05-19 Thread Andreas Tscharner
Hello World, Our setup: * Jenkins 2.32.2 on Debian Linux libvirt Plugin for Jenkins * 8 VMs on the same server, running Windows 7, building our software KVM/QEMU VMs, using libvirt labelled "build" * 4 Ubuntu machines containing 2 VMs each (=8) running Windows 10, testing our software K

Jenkins Remoting Library and JarCache

2017-05-19 Thread Kristian
Hi, I read, that the Remoting library of Jenkins has a so-called Cache dir (https://github.com/jenkinsci/remoting/blob/master/docs/workDir.md). Why is this cache dir needed? What is the purpose of it? And what is concretely saved/cached in there? I only see a bunch of jar files... -- You receiv

Re: Failing builds

2017-05-19 Thread Kristian
Does really nobody have an idea what to do here? 2017-05-08 14:46 GMT+02:00 Kristian : > Sorry, the error message was not correct. Correct error message is this: > > > FATAL: command execution failedjava.nio.channels.ClosedChannelException >

RE: How to specify recipients in email-ext step in declarative script?

2017-05-19 Thread David Aldrich
Hi Slide Do you know whether it’s possible to get the culprits without using email-ext, i.e. using the ‘mail’ command? Best regards David From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide Sent: 18 May 2017 19:48 To: jenkinsci-users@googlegroup

Re: Role strategy plugin: how to give specific access

2017-05-19 Thread Alex Domoradov
Thanks a lot. It is exactly what I was looking for. It works like a charm On Thursday, May 18, 2017 at 6:42:36 PM UTC+3, Artur Szostak wrote: > > I believe you need to install "Extended Read Permission Plugin" to add an > additional cell to the permission table. Then you can select/check the > "

How to use Jenkins CLI for linter?

2017-05-19 Thread David Aldrich
Hi I want to use the Jenkins declarative script linter via the CLI. I have specified a fixed SSHD port in Jenkins Global Security. I have shared my SSH public key with my account on the Jenkins server, so I can connect to the server using SSH. However, when I try to run the linter I get an err

Re: test result graph links are covered by cbwf-stage-view element

2017-05-19 Thread Danny Rehelis
May I hijack this thread and ask you how did you make Jenkins look like that? On Thu, May 18, 2017 at 8:43 PM Trever wrote: > Some time recently, we are unable to click the links under Jacoco, > FindBugs and test results because they are covered over (invisibly) by the > cbwf-stage-view CSS elem

Job properties are not (should be !?) cumulative

2017-05-19 Thread ncosta
Project properties are not cumulative when additional settings are set during the pipeline. For example, if setting a Parameterized build and later in the pipeline, a Discard Old Builds is set, the Parameterized build is unset. I had this happening when the Discard Old Builds were used in a

RE: One Jenkinsfile per repo in multi-branch workflows?

2017-05-19 Thread David Aldrich
> There seems to be some work done in this regard, but it seems to be lagging, > so I can't tell if it's going to stay this way or not. Thanks for your answer. Good to know it is being worked on. David -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Docker host and Jenkins on separate machines...

2017-05-19 Thread Kirill Peskov
Hi All, I'm googling already about an hour if not longer, but I really cannot find an answer to quite simple question: "How to setup Jenkins to connect to a Docker host (or multiple Docker hosts later on) running on a separate machine(s)? Docs on the jenkins.io site seem to be not really verbose a