Re: Jenkins is hanging

2016-11-06 Thread SGD53
Hi Rachel,

I've attached my "observations" to this 
ticket, but 
unfortunately no reactions :(

Is ist better to open a new ticket?

Regards
Mirko

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/93e363cf-580d-4357-9a6f-cfc604664a20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Facing issue with jenins-cli.jar commands

2016-11-06 Thread chinmaya hoshing
Hello ,

I am using Jenkins tool  in our organisation for CI.
I have installed Active directory plugin ver 1.43 to authenticate user and
password. Now I am using jenkins-cli.jar and trying to login to Jenkins
server but getting below issue

Bad Credentials. Search the server log for 4ccec426-ac08-4d6b-835f-219e7ed968e3
for more details.

[WARN] Failed to authenticate with your SSH keys. Proceeding as anonymous
hudson.security.AccessDeniedException2: anonymous is missing the
Overall/RunScripts permission.


Please can you help me to resolve the issue.



Thanks

C.Hoshing

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAMTw45ABDCXg9ZrP%3DneqjcOHvcLAh4YnytuGGC-X7BveC5a6Zg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to make the Jenkins build output as downloadable from Jenkins server machine itself?

2016-11-06 Thread Vadivel Natarajan
Hi All,

I found the artifacts download information from the below link for Appveyor.

https://www.appveyor.com/docs/packaging-artifacts/

Is there anything similar this for jenkins?

Please share your suggestions about this..

Thanks in advance.

On Mon, Nov 7, 2016 at 1:25 AM, Vadivel Natarajan 
wrote:

> I am new to Jenkins. i have configured the Jenkins "Free Style" project
> and executing a power shell a script to get an executable application(Exe)
> as output. i have searched for some of the plugins to make the Jenkins
> output (exe) as downloadable from the Jenkins server machine itself as an
> artifact link(download link). But i found the Jenkins plugins to copy the
> archive files, upload to ftp and some other plugins.
>
> So, Could anyone please suggest me is there any option or plugin available
> to make the each Jenkins build output file as downloadable from the Jenkins
> server machine by keeping it in a server machine some other place?
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAByDd%3DcpwqK_1ZiMKsgAEL6zkDKPcoZK9DMvFj_VNaWz-s%2Bthg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to make the Jenkins build output as downloadable from Jenkins server machine itself?

2016-11-06 Thread Vadivel Natarajan
I am new to Jenkins. i have configured the Jenkins "Free Style" project and
executing a power shell a script to get an executable application(Exe) as
output. i have searched for some of the plugins to make the Jenkins output
(exe) as downloadable from the Jenkins server machine itself as an artifact
link(download link). But i found the Jenkins plugins to copy the archive
files, upload to ftp and some other plugins.

So, Could anyone please suggest me is there any option or plugin available
to make the each Jenkins build output file as downloadable from the Jenkins
server machine by keeping it in a server machine some other place?

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAByDd%3Dcnsf8rOBzgbH6bPoMKfXrF9M%3DzNaozJD0VTOiKf%2BQWTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Writing integration tests for Global Libraries

2016-11-06 Thread Michael Kobit
I'm working on writing some global libraries using 
https://github.com/jenkinsci/workflow-cps-global-lib-plugin. My current 
process for iterating locally is:

   - Start up a local Jenkins instance
   - Point the *globalLibs* directory to my global libraries repository
   - Create a few jobs that use my global libraries
   - Write some code
   - Run jobs
   - Check for results in logs

This is inefficient and error prone.

The workflow doesn't seem much better when using the recent @Library 
 
support.

My question is, what do I need to do to get some of the Jenkins 
infrastructure in place to write automated, integration tests for Jenkins 
pipelines jobs and Global libraries code?

I am using Gradle, and was hoping to see if anybody else has been 
successful in setting up testing locally so I can validate that I my 
libraries work in an actual Jenkins pipeline execution with all of the 
Groovy CPS transformations and other nuances of writing Groovy libraries 
for Jenkins pipelines.

My current *build.gradle* looks something like this, but I still haven't 
gotten it working:

plugins {
  id 'build-dashboard'
  id 'groovy'
}
description = 'Libraries written for use with Jenkins Global Pipeline Libraries'

repositories {
  jcenter()
  maven {
url 'http://repo.jenkins-ci.org/public'
  }
  mavenLocal()
}

sourceSets {
  main {
groovy {
  // Jenkins Global Workflow Libraries requires sources to be at 'src'
  srcDirs = ['src']
}
java {
  srcDirs = []
}
resources {
  srcDirs = []
}
  }
  test {
groovy {
  // configure the test source set so that it is not part of the Global 
Pipeline Libraries
  srcDirs = ['unitTest']
}
java {
  srcDirs = []
}
resources {
  srcDirs = []
}
  }
  jenkinsIntegrationTest {
groovy {
  srcDirs = ['jenkinsIntegrationTest']
}
java {
  srcDirs = []
}
resources {
  srcDirs = []
}
compileClasspath += sourceSets.main.runtimeClasspath
runtimeClasspath += sourceSets.main.runtimeClasspath
  }
}

configurations {
  jenkinsIntegrationTestCompile.extendsFrom testCompile
  jenkinsIntegrationTestRuntime.extendsFrom testRuntime
}

tasks.create('jenkinsIntegrationTest', Test) {
  group = LifecycleBasePlugin.VERIFICATION_GROUP
  description = 'Runs tests against of actual Jenkins Pipelines'
  testClassesDir = sourceSets.jenkinsIntegrationTest.output.classesDir
  classpath = sourceSets.jenkinsIntegrationTest.runtimeClasspath
}

dependencies {
  compile 'org.codehaus.groovy:groovy-all:2.4.7'

  testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
  testCompile 'junit:junit:4.12'

  jenkinsIntegrationTestCompile 'org.jenkins-ci.main:jenkins-core:2.17'
  jenkinsIntegrationTestCompile 'org.jenkins-ci.main:jenkins-test-harness:2.17'
  jenkinsIntegrationTestCompile 
'org.jenkins-ci.main:jenkins-war:2.17:war-for-test@jar'
  jenkinsIntegrationTestCompile 'org.jenkins-ci.plugins:git:3.0.0:tests'
  jenkinsIntegrationTestCompile 
'org.jenkins-ci.plugins.workflow:workflow-cps-global-lib:2.4'
  jenkinsIntegrationTestCompile 
'org.jenkins-ci.plugins.workflow:workflow-support:1.15:tests'
  jenkinsIntegrationTestCompile 
'org.jenkins-ci.plugins.workflow:workflow-job:2.6'
}

// Make sure only the Groovy dependency is available.
// Other dependencies must be used with @Grab in the defined classes due to how 
Jenkins Global Libraries work
project.afterEvaluate {
  final compile = it.configurations.compile.dependencies
  if (compile.size() != 1 || compile.first().name != 'groovy-all') {
throw new GradleException('groovy-all must be the only dependency for the 
compile configuration')
  }
}


And an example spec (not executing yet because of missing dependencies) 

import jenkins.plugins.git.GitSampleRepoRule
import org.junit.Rule
import org.jvnet.hudson.test.RestartableJenkinsRule
import spock.lang.Specification

class ExampleIntegrationSpec extends Specification {

  @Rule
  RestartableJenkinsRule rr = new RestartableJenkinsRule()

  @Rule
  GitSampleRepoRule sampleRepo = new GitSampleRepoRule()

  def "my test"() {
expect:
true
  }
}


This is just based on some of the other test code I've seen in the actual 
Jenkins plugins.
Anybody have any luck or pointers for getting Global Library tests? What 
are the actual dependencies I need to declare to get this up and running?

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a50859c5-f6e3-4854-83f4-b57073bc49e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


plugin installation through a groovy script

2016-11-06 Thread christophe . demarey
Hi,

I found a small groovy script to install automatically a set of plugins 
(including their dependencies):
def pluginParameter="ldap matrix-auth ssh-credentials"
def plugins = pluginParameter.split()
def instance = Jenkins.getInstance()
def pluginManager = instance.getPluginManager()
def updateCenter = instance.getUpdateCenter()
def installed = false

plugins.each {
  if (!pluginManager.getPlugin(it)) {
def plugin = updateCenter.getPlugin(it)
if (plugin) {
  println("Installing " + it)
  def installationJob = plugin.deploy()
  installed = true
}
  }
}

instance.save()
if (installed)
  instance.doSafeRestart()

I want to wait that plugins are effectively installed before proceeding 
with next instruction of the script. Plugin installation is asynch task. I 
tried to use plugin.deploy.get() as deploy() returns a Future but the 
script ends before all plugins and dependencies are effectively installed. 
Is there a way to wait until plugins and dependencies are effectively 
installed?

Regards,
Christophe

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b30d537a-a653-4ded-b5eb-8d11ce43edf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins in Cold/standby HA

2016-11-06 Thread Rachel Moreno
Hi John,

Thanks to you for feedback.

Best regards,
Rachel

On Saturday, November 5, 2016 at 10:43:01 PM UTC+1, John wrote:
>
> Thanks Rachel.
>
> Chose to have the following exclusions: so far the standby node seems to 
> be running fine
>
>   rsync -e "ssh -o StrictHostKeyChecking=no" -rvh --delete --exclude 
> '.bash_history' \
>   --exclude 'logs' --exclude '.ssh' --exclude '.viminfo' \
>   --exclude '.cache' ./  jenkins@JENKINS-STANDBY-NODE:/var/lib/jenkins/
>
>
>
>
> On Saturday, November 5, 2016 at 1:04:11 PM UTC-4, Rachel Moreno wrote:
>>
>> Hi John,
>>
>> IMHO, I'd replicate everything. Maybe, cache directory could be excluded.
>>
>> Another situation is when you're backing up Jenkins, because you can 
>> exclude data that can be easily recreated or saving only config.xml from 
>> jobs (not builds).
>>
>> I hope be useful.
>>
>> Best regards,
>> Rachel
>>
>> El sábado, 5 de noviembre de 2016, 3:06:55 (UTC+1), John escribió:
>>>
>>> Hello
>>>
>>> I am setting up Jenkins in Cold standby mode: 1 active server and 1 
>>> passive in standby.
>>> The idea is if the active Jenkins goes down, we can bring up the standby 
>>> server and it will have all the jobs/settings/plugins etc. up to date and 
>>> sync'd with Active.
>>>
>>> OS is Ubuntu 14. I was reading that all I have to do is replicate across 
>>> the contents of /var/lib/jenkins
>>>
>>> I am trying to figure out which files/dirs to replicate
>>>
>>> Here is what I have in this directory. Should I replicate all of this, 
>>> or exclude certain items?
>>>
>>> drwxrwxr-x  3 jenkins jenkins 4.0K Oct 16 19:45 .bundle
>>> drwxr-xr-x  3 jenkins jenkins 4.0K Oct 26 14:54 .cache
>>> -rw-r--r--  1 jenkins jenkins 2.4K Oct 24 21:09 config.xml
>>> -rw-r--r--  1 jenkins jenkins  950 Oct 16 20:34 credentials.xml
>>> drwxr-xr-x  3 jenkins jenkins 4.0K Oct 16 19:53 .groovy
>>> -rw-r--r--  1 jenkins jenkins  159 Oct 16 20:02 
>>> hudson.model.UpdateCenter.xml
>>> -rw-r--r--  1 jenkins jenkins  370 Oct 16 19:52 
>>> hudson.plugins.git.GitTool.xml
>>> -rw---  1 jenkins jenkins 1.7K Oct 16 19:40 identity.key.enc
>>> drwxr-xr-x  3 jenkins jenkins 4.0K Oct 16 19:40 .java
>>> -rw-r--r--  1 jenkins jenkins6 Oct 16 20:02 
>>> jenkins.install.InstallUtil.lastExecVersion
>>> -rw-r--r--  1 jenkins jenkins6 Oct 16 19:54 
>>> jenkins.install.UpgradeWizard.state
>>> drwxr-xr-x  5 jenkins jenkins 4.0K Oct 26 14:43 jobs
>>> drwxr-xr-x  3 jenkins jenkins 4.0K Oct 16 19:40 logs
>>> -rw-r--r--  1 jenkins jenkins  907 Oct 16 20:02 nodeMonitors.xml
>>> drwxr-xr-x  2 jenkins jenkins 4.0K Oct 16 19:40 nodes
>>> -rw-r--r--  1 jenkins jenkins   56 Nov  4 19:57 .owner
>>> drwxr-xr-x 81 jenkins jenkins  12K Oct 16 19:59 plugins
>>> drwxr-xr-x  5 jenkins jenkins 4.0K Oct 16 20:43 .puppetlabs
>>> -rw-r--r--  1 jenkins jenkins  129 Oct 16 20:02 queue.xml.bak
>>> -rw-r--r--  1 jenkins jenkins   64 Oct 16 19:40 secret.key
>>> -rw-r--r--  1 jenkins jenkins0 Oct 16 19:40 secret.key.not-so-secret
>>> drwx--  4 jenkins jenkins 4.0K Oct 16 20:43 secrets
>>> drwxr-xr-x  2 jenkins jenkins 4.0K Nov  4 20:02 updates
>>> drwxr-xr-x  2 jenkins jenkins 4.0K Oct 16 19:40 userContent
>>> drwxr-xr-x  4 jenkins jenkins 4.0K Oct 17 13:09 users
>>> drwxr-xr-x  2 jenkins jenkins 4.0K Oct 16 19:53 workflow-libs
>>> drwxr-xr-x  2 jenkins jenkins 4.0K Oct 28 15:26 workspace
>>>
>>>
>>> Thanks
>>> John
>>>
>>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/094ab56f-c5a5-4415-9766-d494d6ae18b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Integrating Jenkins with chef

2016-11-06 Thread Irfan Sayed
lavanya,
any update ?

On Sat, Nov 5, 2016 at 12:12 AM, Irfan Sayed  wrote:

> can you confirm following:
>
>1. curl::default is really the "cookbook::recipe" pattern?
>2. can you click on validate syntax button and check whether the
>syntax is correct
>3. nodes are really assigned to that cookbooks ?
>
> please let me know
> Regards,
>
>
> On Fri, Nov 4, 2016 at 12:39 PM, Irfan Sayed  wrote:
>
>> I am looking into it.
>> Regards,
>>
>>
>> On Wed, Nov 2, 2016 at 12:36 AM, Lavanya pujari <
>> pujarilavanya...@gmail.com> wrote:
>>
>>>
>>>
>>> On Tuesday, November 1, 2016 at 3:04:00 PM UTC-4, Lavanya pujari wrote:

 The scenario of Integrating Jenkins with Chef is:

 I have configured jenkins with 3 plugins like Chef Identity plugin,
 Chef Sinatra Plugin and Chef plugin.

 While configuring with Chef Identity, I provided the identity name,
 knife.rb and pem file details. From there using sinatra plugin, I am
 providing the url of the chefserver and tested the connection it is showing
 as test connection is success. But here I am unable to fetch the nodes. I
 am attaching the screenshot which I have configured with sinatra plugin.
 Does anyone have any idea about this, suggest me Is this is correct or not




 On Tuesday, October 25, 2016 at 2:55:28 PM UTC-4, Irfan Sayed wrote:
>
> if you want to execute the chef-client on the set of nodes which are
> fetched based on certain pattern of cookbook and recipe pattern, then chef
> sinatra plugin is the better choice. further, chef client runs in parallel
> on all these nodes so that you can save much time there.
>
> please let us know if this is what you are looking for ?
> else let us know what is your exact requirement
>
> Regards,
>
>
> On Tue, Oct 25, 2016 at 9:01 PM, suresh kumar 
> wrote:
>
>> Hi Lavanya,
>> Could you explain the full scenario what you are trying to achieve.
>> In that case you may get correct guidance rather than fix for your 
>> problem.
>> I foresee you are trying to register a node to chef server and then
>> execute the respective recipes.
>>
>> -Suresh
>>
>> On Tuesday, October 25, 2016 at 4:40:01 PM UTC+5:30, Lavanya pujari
>> wrote:
>>>
>>> Is there any requirement to add certificate to jenkins for fetching
>>> nodes from online chef server. As I am using chef sinatra plugin and 
>>> chef
>>> Identity plugin.
>>>
>>> On Monday, October 24, 2016 at 3:43:36 PM UTC-4, Teichner Peter
>>> wrote:

 Which plugin are you using?

 Get Outlook for Android 



 On Mon, Oct 24, 2016 at 8:39 PM +0100, "Lavanya pujari" <
 pujarila...@gmail.com> wrote:

 I am working on integrating jenkins with chef. So Inorder to
 communicate I need to fetch the nodes from chef server where I am able 
 to
 establish connection between these two. How can I fetch the nodes?

 --
 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-use...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/jenkinsci-users/dcf93914-b
 0fc-4fd1-8ffc-ca926027129b%40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> --
>> 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-use...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/81bb82c6-e
>> 9be-4763-b205-1a3fbf2e880b%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/2f7cc24e-d106-4eb8-b279-f3646d49693a%40g
>>> ooglegroups.com
>>> 

Re: *****Help Needed ASAP****

2016-11-06 Thread Victor Martinez
Just to clarify what Baptiste just said, there are some details about how to 
ask in the below page
- https://jenkins.io/content/mailing-lists/

Which redirects to:
- http://www.catb.org/esr/faqs/smart-questions.html

Section "Use meaningful, specific subject headers".

This is a FOSS project therefore using those practices will help everyone.

Cheers

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/24a99ff3-7e1e-44ba-a138-57e9d3efa565%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: *****Help Needed ASAP****

2016-11-06 Thread Baptiste Mathus
Because basically:

1) It's expected to post a meaningful subject, *describing your issue*.
That is a standard practice on any ml for obvious reasons (see Google if
you don't see why, I can't search it now from the phone, but I'm also
almost even sure we have something about it in our wiki)

2) Disrespectful: because most probably users are all probably hoping for
"help ASAP", but they respect the 1 rule. There's also no reason for your
question to try and be handled before others. Also it makes it harder for
"helpers" to grab the subject quickly.

In the end, also, believe me or not. I know by experience that kind of
subject has actually a counter effect (you will get LESS help)…

Thank you

Le 6 nov. 2016 4:17 AM, "Prasu S"  a écrit :

> I'm having this problem from couple of days ,  I really need some help to
> fix it ASAP. I don't understand why it is disrespectful to use " Help
> needed ASAP " in the subject . If you do not have any solution to this
> problem please do not reply. This forum is open to all the Jenkins users ,
> if it is disrespectful to you , please reply to me with your concern .
>
>
>
> On Thursday, November 3, 2016 at 1:50:24 AM UTC-4, Baptiste Mathus wrote:
>>
>> +1.
>> I would even remind two things: you are expected to use a meaningful
>> subject. Using such a useless one is disrespectful to people spending time
>> to help here.
>>
>> Even more: contrary to what you seem to think, for many people, and for
>> me at least, such a subject will make me just *skip* your question and not
>> even read it.
>>
>> Thank you
>>
>> Le 2 nov. 2016 7:09 PM, "Indra Gunawan (ingunawa)"  a
>> écrit :
>>
>>> Check your jenkins log there should be a Exception error for the job if
>>> one or more plugins used by it can’t be loaded.  You have to research which
>>> Token Macro is compatible to each of the plugins you are
>>> installing/upgrading.
>>> This is an open source community supported mailing list you have to do
>>> your own work first.  Nobody will be able to research it for you.
>>>
>>> From:  on behalf of Prasu S <
>>> s.p...@gmail.com>
>>> Reply-To: "jenkins...@googlegroups.com" 
>>> Date: Wednesday, November 2, 2016 at 10:09 AM
>>> To: Jenkins Users 
>>> Subject: *Help Needed ASAP
>>>
>>>  I uploaded artifactory plugin + all the dependency plugins in Jenkins
>>> 1.645 version. After uploading the plugins , I cannot configure jobs. When
>>> I click on configure , the page shows as loading but it fails to load the
>>> entire page. After much research , I figured out that Token Macro Plugin is
>>> causing this problem. Any suggestions to fix this problem. Thanks in
>>> Advance..P
>>>
>>> Artifactory plugin 2.7.2
>>> Config File Provider plugin 2.11
>>> Ivy plugin 1.25
>>> Token Macro plugin 2.0
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/b607ea1f-b5dd-4cb0-940b-a549f949123a%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
>>> 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-use...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/D43F7968.5F542%25ingunawa%40cisco.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/0a481730-db26-433d-969b-aeb90f4b1f83%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS6SxVyXh%3Dt%2B8YW48RXbr7xBnxXzcNFOszE6grnC6d%2BsUg%40mail.gmail.com.
For more options, vi

Re: Use jenkinsfile from "multi-configuration project"

2016-11-06 Thread Baptiste Mathus
IIUC your question, no.

Cheers

Le 4 nov. 2016 8:38 PM, "Jesús Linares"  a écrit :

> Hi,
>
> is it possible to select a jenkinfile in a multi-configuration project?.
>
> Thanks.
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/a2d24b19-cb87-4175-8d7c-a8bd8eef0a69%40googlegroups.
> com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS72Q7EFjGBZ-AJfLhHhWcWtn7gLCCimnGr8Wnd6R405bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: groovy syntax error while trying concurrent builds using buildflow plugin

2016-11-06 Thread Baptiste Mathus
Hello,

Beware, build flow plugin has been abandoned by his creator. And the last
maintainer also stopped doing it.

You should look at the Pipeline plugin.
Buildflow is most likely to not get any fixes or evolution in the future,
so if you're just starting you presumably don't want to start with it.

Cheers

Le 4 nov. 2016 11:19 AM, "Victor Martinez" 
a écrit :

> do you really need that extra closure " { -> build( " ?
>
> On Friday, 4 November 2016 08:09:21 UTC, Arjun RoyChaudhuri wrote:
>>
>> I'm new to jenkins and groovy, can any one please tell me what is wrong
>> in my syntax?
>>
>> parallel (1..5).collect { index ->
>> { -> build("samplejob", param: params["inputVal" + index]) }
>> }
>>
>>
>> I'm trying to run "samplejob" concurrently using build flow plugin, but
>> something is wrong with my syntax and it's giving me following error
>>
>>
>> Enter code here...ERROR: Failed to run DSL Script
>> org.codehaus.groovy.runtime.typehandling.GroovyCastException
>> 
>> : Cannot cast object '1' with class 'java.lang.Integer' to class
>> 'groovy.lang.Closure'
>> at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransfor
>> mation.continueCastOnSAM(DefaultTypeTransformation.java:405)
>> 
>> at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransfor
>> mation.continueCastOnNumber(DefaultTypeTransformation.java:319)
>> 
>> at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransfor
>> mation.castToType(DefaultTypeTransformation.java:232)
>> 
>> at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransfor
>> mation.asArray(DefaultTypeTransformation.java:423)
>> 
>> at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransfor
>> mation.castToType(DefaultTypeTransformation.java:214)
>> 
>> at org.codehaus.groovy.runtime.DefaultGroovyMethods.asType(Defa
>> ultGroovyMethods.java:15538)
>> 
>> at org.codehaus.groovy.runtime.DefaultGroovyMethods.asType(Defa
>> ultGroovyMethods.java:10642)
>> 
>> at org.codehaus.groovy.runtime.dgm$52.doMethodInvoke(Unknown
>> Source)
>> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215
>> )
>> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024
>> )
>> at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(I
>> nvokerHelper.java:911)
>> at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(Invok
>> erHelper.java:902)
>> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMeth
>> odN(ScriptBytecodeAdapter.java:168)
>> at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.asType(Scr
>> iptBytecodeAdapter.java:591)
>> at com.cloudbees.plugins.flow.FlowDelegate.parallel(FlowDSL.gro
>> ovy:399)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMet
>> hod.java:93)
>> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
>> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215
>> )
>> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024
>> )
>> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812)
>> at com.cloudbees.plugins.flow.FlowDelegate.invokeMethod(FlowDSL.
>> groovy)
>> at hudson.util.spring.ClosureScript.invokeMethod(ClosureScript.
>> java:83)
>> at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callC
>> urrent(PogoMetaClassSite.java:75)
>> at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCa
>> llCurrent(CallSiteArray.java:52)
>> at org.codehaus.groovy.runtime.callsite.Abstr