Run jobs in sequence in one agent

2017-10-10 Thread Alexandros Karypidis
Hello, I have 2 jobs A and B. When B runs, it uses the (Jenkins Parameterized Trigger plugin ) to trigger A to run and blocks until A finishes. The problem is that I have 3 agents with 1 executors each and the result is

Re: Run jobs in sequence in one agent

2017-10-10 Thread Alexandros Karypidis
To further clarify: Job A takes 30 minutes and job B another 30 minutes. They tie up both agents for the first 15 minutes for no reason. Now B depends on A (A uploads artifacts to a Nexus that B uses). So the truth is that I don't really mind if they run on the same agent or not (B will find A'

Re: can i use variable to specify the agent label in my declarative pipeline ?

2017-10-10 Thread chris scott
Hi did you guys every get to a resolution on this? I have exactly the same issue. On Friday, 5 May 2017 12:10:51 UTC+1, ishan jain wrote: > > Hi Eric, > > This the full code that copied earlier. You would only require to create a > properties file. The other echo statements that i have put are

how to build entire graylog application

2017-10-10 Thread Manju Kb
im trying to build graylog jenkins what configuration i should make so that it clones in graylog-project and graylog-project-repo folder structure im totally new to Jenkins let me know how can i proceed Many thanks -- You received this message because you are subscribed to the Google Gr

Re: Failed to connect to http://jenkins.build-env.svc.cluster.local:8080/tcpSlaveAgentListener/: jenkins.build-env.svc.cluster.local

2017-10-10 Thread YAN-HONG WANG
Hello Carlos, In containerTemplate, I define one container "worker". -- $ kubectl --namespace=build-env exec -it slave

'%2f' in multibranch pipeline project name

2017-10-10 Thread David Aldrich
Hi I have a multibranch pipeline project (declarative script), which I run against a Subversion repository. The format of the branches is: branches/branch_name my multibranch pipeline project is rendering these names with '%2f' instead of '/'. I think this issue has been reported in the past

Re: After checkout from repositoy Jenkins will not start Windows batch command

2017-10-10 Thread niristotle okram
Without any logs, one cannot give you meaningful suggestions. What does the xcopy step says in the log? On Mon, Oct 9, 2017 at 4:48 AM 'S. G.' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > I am new to Jenkins. I started with one simple test: I created a > freestyle job on a slav

Can I set agent label dynamically in declarative pipeline?

2017-10-10 Thread gilad via Jenkins Users
I've create a SO question for this: https://stackoverflow.com/questions/46630168/in-a-declarative-jenkins-pipeline-can-i-set-the-agent-label-dynamically -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop re

Custom plugin of packer in jenkins

2017-10-10 Thread Viktor Keratsidis
Hello Jenkins Team, I am using jenkisn and packer together to build Amis in Amazon and I find a really good custom plugin of packer to use it with jenkins but i don't know how to make it work. Could you please give me your guidance if you know? The cu -- You received this message because you a

Packer custom plugin

2017-10-10 Thread Viktor Keratsidis
Hello Team, Could you please someone let me know how to install a packer custom plugin into jenkins? https://github.com/wata727/packer-post-processor-amazon-ami-management Many Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscr

Re: can i use variable to specify the agent label in my declarative pipeline ?

2017-10-10 Thread gilad via Jenkins Users
same here :-\ even created a StackOverflow issue for this: https://stackoverflow.com/questions/46630168/in-a-declarative-jenkins-pipeline-can-i-set-the-agent-label-dynamically On Wednesday, May 3, 2017 at 5:58:09 PM UTC+3, ishan jain wrote: > > I am using declarative syntax to build my pipeline.

Re: can i use variable to specify the agent label in my declarative pipeline ?

2017-10-10 Thread gilad via Jenkins Users
same here :-\ even created a StackOverflow issue for this: https://stackoverflow.com/questions/46630168/in-a-declarative-jenkins-pipeline-can-i-set-the-agent-label-dynamically -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from

RE: Setup for Testflight iOS APP

2017-10-10 Thread Chanda Unmack
I ended up calling Fastlane from Jenkins for iOS builds, including pushing to TestFlight. https://docs.fastlane.tools/actions/pilot/ hth From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of sukesh.bo...@cura.tech Sent: Sunday, October 08, 2017 10:08 P

Jenkins Pipelines and Puppet Code RSPEC testing

2017-10-10 Thread Peter Berghold
Hi folks, I've been considering creating Jenkins files inside all of my Puppet modules and converting from the way I'm dealing with our Puppet code today to using pipelines. A thumbnail of what I'm doing today with Jenkins is every Puppet module is "tested" within a Jenkins job which is a mix of

try/catch in a pipeline?

2017-10-10 Thread Peter Berghold
I've noticed some "non-deterministic behavior" in my first few pipelines and I was wondering if there i some sort of try/catch structure I could use to catch errors. It would sort of look like this: try { sh 'some_unix_command' } catch { send_mail('Step foo failed on some_unix_command'

Re: try/catch in a pipeline?

2017-10-10 Thread dandeliondodgeball
On this page https://jenkins.io/doc/book/pipeline/jenkinsfile/#syntax there is a Handling Failures section which might help you. -- 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

Re: Is there a way to make "discard old builds" happen right now?

2017-10-10 Thread lakshmi soma
hi can you provide me whole groovy code On Friday, October 7, 2011 at 4:11:28 AM UTC-6, Christopher Orr wrote: > > On 06/10/11 21:19, jdhein wrote: > > My organization has just tons of projects in Jenkins, many of which > > are not active and have not built in some time, some of them haven't > >

Re: try/catch in a pipeline?

2017-10-10 Thread Jear Krishna
you can use post section in pipeline post or you can write try catch in script step. On Tuesday, October 10, 2017 at 10:43:04 PM UTC+5:30, Peter Berghold wrote: > > I've noticed some "non-de

Intermittenly Jenkins fails invoking through curl command

2017-10-10 Thread Bubunia Patra
Hi all, I am using Jenkins 2.71 and when I am trying to execute a remote job using below command it fails with below error. After jenkins restart it works for a while again started failing. Do anyone have any idea, Is it related to this Jenkins version or I am missing something ? Regards Pra

Re: Intermittenly Jenkins fails invoking through curl command

2017-10-10 Thread Daniel Beck
> On 10. Oct 2017, at 23:44, Bubunia Patra wrote: > > javax.xml.transform.TransformerException: org.xml.sax.SAXParseException; > lineNumber: 10; columnNumber: 3; The element type "hr" must be terminated by > the matching end-tag "". This is the error message. Your XML file is malformed.

Re: Intermittenly Jenkins fails invoking through curl command

2017-10-10 Thread Bubunia Patra
Not sure what is the issue( The following command works(if I create a config file only with /job/test/config.xml) It fails if I create config file with /job/test100/config.xml: [drakula ~]$ curl " http://:@:8080/job/test/config.xml" > config.xml

Re: can i use variable to specify the agent label in my declarative pipeline ?

2017-10-10 Thread Björn Rohlén
On Tuesday, 10 October 2017 16:58:44 UTC+2, gi...@ziprecruiter.com wrote: > > same here :-\ > > even created a StackOverflow issue for this: > > https://stackoverflow.com/questions/46630168/in-a-declarative-jenkins-pipeline-can-i-set-the-agent-label-dynamically > There is an perfectly good answe