Re: Zip and archive folder/sub folders

2017-03-13 Thread 'Baswaraj Malage' via Jenkins Users
Thanks Jerome for all your suggestion. But, no luck to get files in zip. I did use zip directly (I had to separate commands with ,) but did not work for me. I might be missing something or jenkins yet to support this feature. zip zipFile: 'screen.zip', archive: true, dir: 'screenprint', glob: '

Re: Iteration over list or map in Pipeline script

2017-03-13 Thread Bill Dennis
You can do it with a for loop. There are issues using Groovy iterators like each {}. Try something like this: pipeline { agent any stages { stage('loop') { steps { script { def x = ['a', 'b', 'c'] println x

Active Choices plugin - not found referenced parameter

2017-03-13 Thread kevmando
Hi, I'm trying to use Active Choices plugin to get branch list by repo using github api, but it gives me an error that there is no repo - which is a referenced parameter, which is already defined. In case, I'm using Ubuntu 16.0.4, Jenkins 2.32.2 and Active choices plugin 1.5.3. if (REPO.equal

Re: Multiple Jenkins possible ? - quick question

2017-03-13 Thread suresh kumar
Hi Fadi, Can you share me steps how you configured gearman and multiple master jenkins On Friday, 16 October 2015 00:30:59 UTC+5:30, Fadi Al-Farah wrote: > > Yes I've tried, the instructions from the wiki. I'm at the point where I'm > trying to setup a gearman server, but I don't think it's ru

Re: Help required with arguments for Amazon EC2 plugin

2017-03-13 Thread Michael Barrientos
There is a place inside the Advanced settings for an AMI where you can specific a subnet ID for a VPC. Give it the subnet ID for a specific already-created subnet inside your VPC, and the instance should show up in the VPC. The VPC ID itself is not required; it is implied by the subnet ID. On M

Re: Help required with arguments for Amazon EC2 plugin

2017-03-13 Thread prabha KR
Second attempt, any views? >>> We are using Amazon EC2 plugin to create Ubuntu host on aws. EC2 plugin creates Ubuntu host always in default VPC and I don't see an option to provide vpc id as an input to plugin. Our requirement is to create a Ubuntu host in vpc which is already created in aws

How to load a groovy file only in the current node

2017-03-13 Thread 'Claudiu Guiman' via Jenkins Users
Hi, My current Jenkins instance stores some test environment settings in groovy files that reside in the credentials store. One of the steps runs some jobs in parallel and each of the nodes should load a different groovy file. Unfortunately the result is not as expected, the load is global and

Jenkins Slave - maven settings.xml file location - not found

2017-03-13 Thread Shaun Thompson
I currently have a Linux Jenkins instance running and I'm trying to add a windows slave to it. My master maven configuration for settings is the following. My slave c

Re: Multi-configuration has n+1 checkouts

2017-03-13 Thread Simon Richter
Hi, On 13.03.2017 08:41, Daniel Becroft wrote: > 1. There is a checkout performed on the headline job; then > 2. A checkout is performed for each individual job > Is there a way to remove the headline checkout as well, or a way to stop > it being checked out to start with? That is normal. The

Re: Iteration over list or map in Pipeline script

2017-03-13 Thread Slide
Pipeline is a SUBSET of Groovy, not a superset. There are things (like iterators) that are not serializable, so they can't be used in a pipeline. You can create a method that is marked with @NonCPS to do things that are not serialized, but sometimes it is difficult to get back out what you need wit

Iteration over list or map in Pipeline script

2017-03-13 Thread 'Martin Schmude' via Jenkins Users
Hello, I have a freestyle job with one step of the kind "Execute Groovy Script". Its Groovy code is def x = ['a', 'b', 'c'] println x x.each { println it } The output of this job is (not surprinsingly): [Test-Groovy2] $ groovy /var/lib/jenkins/workspace/Test-Groovy2/hudson3825239812036801886

Re: Zip and archive folder/sub folders

2017-03-13 Thread Jérôme Godbout
No need to use 'bat' command, there is a zip command directly. Change: bat 'zip zipFile: \'screen.zip\' archive: true dir: \'screenprint\' glob: \'**/*.png\'' for this: zip zipFile: 'screen.zip' archive: true dir: 'screenprint' glob: '**/*.png' it should work directly [image: bodycad]

RE: Future of 'pipeline' in the context of Blue Ocean?

2017-03-13 Thread Gardell, Steven
This is not my experience. I see two different bad behaviors: 1) The display presented for a currently running job is simply wrong, with the tool showing a running downstream serial activity that doesn’t exist. Once the overall job completes it “pops” back to a somewhat more correct presen

Re: maven.jenkins-ci.org not reachable ? - can't release a plugin ...

2017-03-13 Thread Yuanbo Han
Please refer here: https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-Workingaroundcommonissues. You should update the parent org.jenkins-ci.plugins version. I have updated to 2.11 and it worked for me. 在 2016年10月9日星期日 UTC+8下午1:51:57,hagzag写道: > > Hi all, > > Did any

Multi-configuration has n+1 checkouts

2017-03-13 Thread Daniel Becroft
Good evening, I've noticed something odd about the Multi-configuration jobs. There always seems to be N+1 checkouts performed (where N is the number of individual configurations). 1. There is a checkout performed on the headline job; then 2. A checkout is performed for each individual job When the