Re: Jenkins configuration and selenium Grid

2015-09-16 Thread steliosP
Hello Richard.
The nodes are connected to jenkins hub, and are you can see them in 
selenium grid hub management tab.
But my question remains: how you can build a project in jenkins, and make 
it run on nodes?When upon pressing build you get :(pending—Waiting for next 
available executor) 


On Monday, June 8, 2015 at 11:28:28 PM UTC+3, DarkRift wrote:
>
> I don't know how you are trying to connect to the nodes, but the plugin 
> only starts the hub and uses the salevss to start selenium slaves on to use 
> the browser from the slaves. I doesn't start build on the right "nodes" 
> according to selenium capabilities or suite files.
>
> What you would do is in your trst code, connect your remote drivers to the 
> jenkins master address to delegate the browser calls to the right selenium 
> capabilitu for each tests.
>
> Hope that helps,
>
> Richard Lavoie
>
> On 2015-05-21, at 11:11, steliosP  
> wrote:
>
> Any Selenium Grid plugin users around?
>
> On Monday, May 18, 2015 at 12:55:26 PM UTC+3, steliosP wrote:
>>
>> Hello guys, I am trying to set up Jenkins with selenium grid.
>> I have downloaded selenium plugin, and when I start the nodes, I can see 
>> them in Jenkin's selenium grid tab.
>> However, whenI try to build my project, nothing happens, because jenkins 
>> doesn't find any connected nodes.It's the same message when you're not 
>> running in grid, and no slaves are connected:
>> #361 (pending—Waiting for next available executor) 
>>
>> Some info regarding the project I am building:
>> A maven project, that pulls the latest from git, and then a parametrized 
>> build happens, that has the parameter 
>>
>> -Dsuite.Files=testSuite.xml
>>
>> so only a specific testSuite is going to run
>>
>> Any solution to my problem?
>>
>> -- 
> 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/345ae109-55d3-462a-b7ba-1cb581d4cf2b%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/c1d12a46-5d5e-4a85-89f3-ff32a56ffd80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Patterns in Role-based strategy

2015-09-16 Thread Matthew.Webber
Try (?!.*PROD).*
Matthew

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Ginga, Dick
Sent: 15 September 2015 20:28
To: jenkinsci-users@googlegroups.com
Subject: RE: Patterns in Role-based strategy

I've tried them everywhere (I think) and could not get it to work

Which format:

(?!)PROD.*
(?!PROD.*)

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Daniel Beck
Sent: Tuesday, September 15, 2015 3:26 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Patterns in Role-based strategy


On 15.09.2015, at 21:14, Ginga, Dick  wrote:

> ?!PROD.* = meaning anything but jobs having PROD in their name. I actually 
> get a OOPS – stack trace when I use this

You forgot the parentheses.

-- 

-- 
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

-- 
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/6836E1DC2DDC174C9D64B7860E5AF5FCA8FE47BD%40EXCHMBX01.fed.cclrc.ac.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Remote build with token parameter crashing

2015-09-16 Thread zhu kane
IMO the remote api of parameter build does not work if you enabled
authentication, there is no workaround especially you are using oauth2.

You can workaround it via Build Token Root plugin.

https://wiki.jenkins-ci.org/display/JENKINS/Build+Token+Root+Plugin


Kane

On Wed, Sep 16, 2015 at 1:30 AM, John Marks  wrote:

> I'm using the following linux command line to do a remote build using
> Jenkins version 1.613
>
> curl -X POST
> http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build
> --data token=gmasbuild
>
> What I get looks like a long HTML response that's expecting a log in
> followed by a stack trace which says it can't find method
> java.net.URLEncoder.encode().
>
> A similar command line (host, build name and token differ) run against
> version 1.541 works flawlessly. I've tried the above using both Java 1.7.
> and 1.8 with the same result.
>
> Can someone help me figure out what might be wrong?
>
> --
> 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/4dfba08f-9091-43fb-a5b1-aa63a6ec8224%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/CAM%2BCGXRO5eJXoFnoWmhr-%3Dx90cESuzt4YqQBL5oXrL769N%2BDRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins configuration and selenium Grid

2015-09-16 Thread Richard Lavoie
Hi,

The selenium plugin was never meant to make a build run on a particular node 
depending on browser capabilities.

What this plugin does is use your slaves as "browser providers" so that you can 
reuse your "sleeping" nodes.

 For example, let's say I have 2 nodes with matching selenium configurations, A 
and B, A being a windows machine that has IE and B an ubuntu desktop machine 
with Firefox. You launch a build and it goes on machine A. As part of your 
test, you need to test some code on IE. You create a new remote driver object, 
connecting to jenkins hub and requesting an IE session. Lucky you it's the same 
machine you are currently building on. IE gets started on machine A and you 
interact with it fir the said test. Now in another test you need to perform 
code in Firefox. You create a remote webdriver object, connecting to jenkins 
hub and request a firefox object. The browser is now launched on machine B but 
your build is still running on machine A.

The node where your build runs is independant of the test session you will need 
in your tests. To make your "build" run on a given node, you need to use other 
mechanism (like labels for instance) because the selenium plugin only use 
slaves as "browser providers". It is not a "build redirector" that makes 
projects needing selenium run on hosts that has selenium matching 
configurations.

Now if you have free nodes and the build doesn't want to run on them, the 
problem is elsewhere than in the selenium plugin. If jenkins itself isn't 
connected to the slave normally, there is something definitely wrong. The fact 
that the node is connected to the hub jenkins is hosting is also independant of 
jenkins being directly connected to this slave and be able to send jobs to it.

Richard Lavoie

> On 2015-09-16, at 03:58, steliosP  wrote:
> 
> Hello Richard.
> The nodes are connected to jenkins hub, and are you can see them in selenium 
> grid hub management tab.
> But my question remains: how you can build a project in jenkins, and make it 
> run on nodes?When upon pressing build you get :(pending—Waiting for next 
> available executor) 
> 
> 
>> On Monday, June 8, 2015 at 11:28:28 PM UTC+3, DarkRift wrote:
>> I don't know how you are trying to connect to the nodes, but the plugin only 
>> starts the hub and uses the salevss to start selenium slaves on to use the 
>> browser from the slaves. I doesn't start build on the right "nodes" 
>> according to selenium capabilities or suite files.
>> 
>> What you would do is in your trst code, connect your remote drivers to the 
>> jenkins master address to delegate the browser calls to the right selenium 
>> capabilitu for each tests.
>> 
>> Hope that helps,
>> 
>> Richard Lavoie
>> 
>>> On 2015-05-21, at 11:11, steliosP  wrote:
>>> 
>>> Any Selenium Grid plugin users around?
>>> 
 On Monday, May 18, 2015 at 12:55:26 PM UTC+3, steliosP wrote:
 Hello guys, I am trying to set up Jenkins with selenium grid.
 I have downloaded selenium plugin, and when I start the nodes, I can see 
 them in Jenkin's selenium grid tab.
 However, whenI try to build my project, nothing happens, because jenkins 
 doesn't find any connected nodes.It's the same message when you're not 
 running in grid, and no slaves are connected:
 #361 (pending—Waiting for next available executor) 
 
 Some info regarding the project I am building:
 A maven project, that pulls the latest from git, and then a parametrized 
 build happens, that has the parameter 
 -Dsuite.Files=testSuite.xml
 
 so only a specific testSuite is going to run
 
 Any solution to my problem?
>>> 
>>> -- 
>>> 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/345ae109-55d3-462a-b7ba-1cb581d4cf2b%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/c1d12a46-5d5e-4a85-89f3-ff32a56ffd80%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 

GoogleRobotPrivateKeyCredentials AccountIdNotSetException

2015-09-16 Thread Andreas Schuldei
hi,

i am setting up a CI pipeline that creates docker images, uploads them to 
my google docker registry/repository and then redeploys my webapp. 

Right now I work on the docker push step, which fails with this stack trace:

 ERROR: Build step failed with exception
com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials$AccountIdNotSetException
at 
com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:181)
at 
com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:45)
at 
com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.getAccessToken(GoogleRobotCredentials.java:100)
at 
com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredentialModule.getToken(GoogleContainerRegistryCredentialModule.java:73)
at 
com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredential.getPassword(GoogleContainerRegistryCredential.java:224)
at 
com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:48)
at 
com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:32)
at 
jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:148)
at 
jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:110)
at 
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.getToken(DockerRegistryEndpoint.java:179)
at 
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:201)
at 
org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:193)
at 
com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:381)
at 
com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:359)
at 
com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:305)
at 
com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:252)
at 
com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:233)
at 
com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:208)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1741)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at 
hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:408)


This started happening after i deleted some unused and unrelated 
credentials from the global credentials. 

I am speculating that the credentials store got confused because the 
AccountID is encoded in the credentials, isnt it? if not, where can i 
supply it?

(Before I got this error: 

The push refers to a repository 
[eu.gcr.io/founderschair-website-01-981/website-image] (len: 1)
Sending image list
Error: Status 403 trying to push repository 
founderschair-website-01-981/website-image: "Access denied."

but i do hope I created the proper OAuth credentials by now. -- is there a 
tutorial for that part with both the google and the jenkins side explained? 
i followed 
 
https://groups.google.com/forum/#!searchin/jenkinsci-users/docker$20container/jenkinsci-users/3DiEV7qQ7CM/1wHn3XzKrD4J
 
- is that state-of-the-art?)

/andreas

-- 
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/f4b98423-b874-4fec-ac98-b0d6c1b6be68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Remote build with token parameter crashing

2015-09-16 Thread John Marks
The same thing happens with the Build Token Root Plugin (X is used 
instead of the real server DNS):

curl -X POST 
 
http://X:8915/jenkins/job/build-entity-service/buildByToken/build?token=gmasbuild

I'm running with Tomcat 7.0.47, so I also made sure that URI encoding is 
UTF-8 (I don't get a warning in the Jenkins console anymore.)

Something else is wrong. Should I try running with a different container or 
installing the latest version?

On Tuesday, September 15, 2015 at 1:30:03 PM UTC-4, John Marks wrote:
>
> I'm using the following linux command line to do a remote build using 
> Jenkins version 1.613
>
> curl -X POST  
> http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build
>  
> --data token=gmasbuild
>
> What I get looks like a long HTML response that's expecting a log in 
> followed by a stack trace which says it can't find method 
> java.net.URLEncoder.encode().
>
> A similar command line (host, build name and token differ) run against 
> version 1.541 works flawlessly. I've tried the above using both Java 1.7. 
> and 1.8 with the same result.
>
> Can someone help me figure out what might be wrong?
>

-- 
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/59aae083-6995-4cb5-9c74-ad669314b8b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Annotating JIRA ticket is not working

2015-09-16 Thread Ashish Yadav
One other note…this works sporadically. Some JIRA tickets do get updated, while 
some do not. Any ideas what might be causing this or how to resolve it?

From: Ashish Yadav >
Reply-To: 
"jenkinsci-users@googlegroups.com" 
>
Date: Tuesday, September 15, 2015 at 3:57 PM
To: "jenkinsci-users@googlegroups.com" 
>
Subject: Annotating JIRA ticket is not working

I have a post build action to update the JIRA ticket after the build completes. 
I am even seeing this in the logs:


Sep 15, 2015 3:43:36 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate

Annotating JIRA id: ‘AB-465'


Sep 15, 2015 3:45:22 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate

Annotating JIRA id: ‘AB-465'


Sep 15, 2015 3:45:49 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate

Annotating JIRA id: ‘AB-465'


Sep 15, 2015 3:45:49 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate

Annotating JIRA id: ‘AB-465'


Sep 15, 2015 3:46:17 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate

Annotating JIRA id: ‘AB-465'


Sep 15, 2015 3:48:52 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator annotate

Annotating JIRA id: ‘AB-465’


However, the JIRA ticket is NOT getting updated. What could be causing this and 
how can I resolve it?



--
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/D21DF06C.11025%25ashish.yadav%40firemon.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/D21ECE26.11043%25ashish.yadav%40firemon.com.
For more options, visit https://groups.google.com/d/optout.


Is it possible to run selenium test case as windows batch command in jenkin

2015-09-16 Thread Syamkumar Adapa
Hi,

Hello below is the config that is already available in my machine

Selenium .net 2.47 versions (web application)
Visual studio 2012

I'm able to build the deployment code using Jenkins. I'm able to build 
selenium test using Visual studio by configuring Selenium .net 2.47 
versions (web application).

But my requirement is like how can I perform selenium .net test in Jenkins 
using windows batch command. If this is possible please let me know the 
steps, how can I run my selenium test for .net application with Jenkins

Please let me know if you need any other information...Thanks in advance

Regards
Syam

-- 
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/42131e6a-b481-402f-8ade-3821cbea2f66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Is there a way to have a step in a pipeline wait until a specific time to start?

2015-09-16 Thread nfwlpw
Here's my dilemma.

I have a job in my pipeline that sits off the main path, but they do depend 
on part of the main pipeline (parameters and artifacts).  The team that 
owns this job is in a different timezone so they want the job to start at a 
time convenient for them.

Is there a way I can have this step stay in the pipeline, but wait until a 
certain time to fire off?  I thought adding a quiet period but start time 
won't be exact also makes it annoying if I want to run just that step

-- 
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/2b0e7173-e018-4af1-a6c3-82be5fc61af2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Annotating JIRA ticket is not working

2015-09-16 Thread Victor Martinez
Hi,

Can you log change your log severity to ALL?

   - https://wiki.jenkins-ci.org/display/JENKINS/Logging

Logger: hudson.plugins.jira.JiraChangeLogAnnotator

Then you will be able to see the below traces:

   - 
   
https://github.com/jenkinsci/jira-plugin/blob/master/src/main/java/hudson/plugins/jira/JiraChangeLogAnnotator.java#L43
   

Cheers

On Wednesday, 16 September 2015 14:45:16 UTC+2, Ashish Yadav wrote:
>
> One other note…this works sporadically. Some JIRA tickets do get updated, 
> while some do not. Any ideas what might be causing this or how to resolve 
> it?
>
> From: Ashish Yadav 
> Reply-To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Date: Tuesday, September 15, 2015 at 3:57 PM
> To: "jenkins...@googlegroups.com " <
> jenkins...@googlegroups.com >
> Subject: Annotating JIRA ticket is not working
>
> I have a post build action to update the JIRA ticket after the build 
> completes. I am even seeing this in the logs:
>
> Sep 15, 2015 3:43:36 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator 
> annotate
>
> Annotating JIRA id: ‘AB-465'
>
> Sep 15, 2015 3:45:22 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator 
> annotate
>
> Annotating JIRA id: ‘AB-465'
>
> Sep 15, 2015 3:45:49 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator 
> annotate
>
> Annotating JIRA id: ‘AB-465'
>
> Sep 15, 2015 3:45:49 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator 
> annotate
>
> Annotating JIRA id: ‘AB-465'
>
> Sep 15, 2015 3:46:17 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator 
> annotate
>
> Annotating JIRA id: ‘AB-465'
>
> Sep 15, 2015 3:48:52 PM INFO hudson.plugins.jira.JiraChangeLogAnnotator 
> annotate
>
> Annotating JIRA id: ‘AB-465’
>
>
> However, the JIRA ticket is NOT getting updated. What could be causing this 
> and how can I resolve it?
>
>
>
> -- 
> 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/D21DF06C.11025%25ashish.yadav%40firemon.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/6ef11915-92c3-42cb-88c0-916944e7b363%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Batch command with slave mode configuration

2015-09-16 Thread Quang Truong
Dear all,

I have encountered an issue like this:

- If I setup a slave by downloading and running the jnlp file (no need to 
install as Window service, just leave the java dialog as connected 
process). Then I can run this batch command:

setlocal EnableDelayedExpansion
FOR /f "tokens=1 delims=<" %%G IN ('nbtstat -A %VM_IP% ^|FIND "<20>"') DO (
SET Test_Machine_Name=%%G
echo Test_Machine_Name=!Test_Machine_Name!
)

to return a target machine name (from provide IP %VM_IP%)

- But if I run the commandline to setup the slave ( java -jar slave.jar 
-jnlpUrl http://:8080/computer//slave-agent.jnlp 
-secret ) then I encounter this error: 
'nbtstat' is not recognized as an internal or external command,
operable program or batch file.
I have tried to point the absolute path of the nbtstat

setlocal EnableDelayedExpansion
FOR /f "tokens=1 delims=<" %%G IN ('"C:/Windows/System32/nbtstat.exe -A 
%VM_IP%" ^|FIND "<20>"') DO (
SET Test_Machine_Name=%%G
echo Test_Machine_Name=!Test_Machine_Name!
)
then got the syntax incorrect.

Please help to guide for solving this issue

Thanks,
Quang

-- 
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/3d211bd8-c00e-4291-95d3-f8dcdbc886d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Area Meetup in San Jose

2015-09-16 Thread Alyssa Tong
Hi All,

We have a meetup in the Bay Area on Wed Sept 23
 with special guest
speaker from Docker. Join us for food, fun and network.

If you'd like to become a speaker at our next JAM (Oct 21) or would like to
become a venue host pls let me know.

@ Daniel - pls add this event to the calendar


thanks,
alyssa

-- 
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/CAC9wNazHjy%3D9uJaoiOxMWRXcybkEvaHkVD1po5n_0PzM4Np1aA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Can post to jenkins modify the branch of the SCM?

2015-09-16 Thread John Cary

I would like developers to be able to fire off a test of
their branch of the project.  So, e.g., I have a project,
myproj, and jenkins is ordinarily set up to run the builds
and test, e.g.,

  myproj/branches/test

by executing a top-level test script, e.g., tst.sh.

Is there a way to remotely (through a post) tell jenkins
to switch to to a new branch, e.g.,

  myproj/branches/joe-dev

before running the tests?

Thx

--
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/55F9C10F.8020109%40txcorp.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins and Git Error Returned Status Code 128:

2015-09-16 Thread angel . williams
Again this is the error I get if I supply credentials via the GIT source 
code setup traditionaly:
Failed to connect to repository : Command "C:\Git\cmd\git.exe -c 
core.askpass=true ls-remote -h 
https://company.visualstudio.com/DefaultCollection/_git/CompanyHEAD; 
returned status code 128:
stdout:
stderr: fatal: unable to access 
'https://company.visualstudio.com/DefaultCollection/_git/Company/': error 
setting certificate verify locations:
  CAfile: C:/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
  CApath: none

If  I try this as the Repository 
URL: 
https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company
I get this error:
Failed to connect to repository : Command "C:\Git\cmd\git.exe -c 
core.askpass=true ls-remote -h 
https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company 
HEAD" returned status code 128:
stdout:
stderr: fatal: unable to access 
'https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company/':
 
error setting certificate verify locations:
  CAfile: C:/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
  CApath: none


On Wednesday, September 9, 2015 at 5:12:07 PM UTC-6, 
angel.w...@centrallogic.com wrote:
>
> How do I allow jenkins to access GIT source from the VSOnline GIT source?
>
> https://company.visualstudio.com/DefaultCollection/_git/company
>
> Failed to connect to repository : Command "C:\Program 
> Files\Git\bin\git.exe -c core.askpass=true ls-remote -h '
> https://company.visualstudio.com/DefaultCollection/_git/Company HEAD" 
> returned status code 128:
> stdout: 
> stderr: fatal: Authentication failed for '
> https://company.visualstudio.com/DefaultCollection/_git/Company/
>
> I set up an alternate authentication method on my account in VSOnline but 
> I still can't access it.
>
> Someone suggested I use a commandline option in a build step but am 
> unfamiliar with how to do that as well..
>
> Any help would be greatly appreciated.
>
>

-- 
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/fff4c7e3-c265-4f42-8f6b-9e43e7c07f63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to send cucumber report content to recipient via email?

2015-09-16 Thread Slide
If you use Jelly or Groovy templates you can access the Jenkins api to
retrieve the reports and place them into the email. You can look on github
for examples of the templates.

On Wed, Sep 16, 2015, 13:46 Ashley Chen  wrote:

> Hi all,
>
> I have set up a project on Jenkins and choose Post-build Action "Publish
> cucumber results as a report" and "Editable Email Notification". On
> jenkins, I can see cucumber reports after each build (with full content,
> like scenarios, steps, etc), but email only receive build result, like
> success/fail/aborted.
> Does anyone know how to send full cucumber reports to recipient? Use some
> plugins or change settings somewhere?
>
> Thanks,
> Ashley
>
> --
> 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/cbd50e83-64bb-4927-b215-d2fb1d8d31a8%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/CAPiUgVfTu64Ee4P97DP0q3ygHvnShXOdBEkLU%3DB2Qr5B4RsQPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins and Git Error Returned Status Code 128:

2015-09-16 Thread angel . williams
Mark,

I can through jenkins do a complete commandline clone, checkout and all 
what I can't do is get the GIT Plugin/ Source inside a job do it without 
that type of access i can't use scm polling at all to start a build if 
there are changes.  I do not do daily builds unles there is a change.

I can't do any of these due to the error when I try to setup the repository 
in Jenkins:

   1. Add a Jenkins credential with username and password, then use that 
   credential with a Jenkins  job to see if the repository is cloned
   2. Confirm you can clone your repository using command line git and the 
   URL 
   
https://username:passw...@company.visualstudio.com/DefaultCollection/_git/Company/
   3. Try a test job with URL 
   
https://username:passw...@company.visualstudio.com/DefaultCollection/_git/Company/
   4. Try a test job with the prior credential and URL 
   https://usern...@company.visualstudio.com/DefaultCollection/_git/Company/ 
   





On Thursday, September 10, 2015 at 3:42:56 PM UTC-6, Mark Waite wrote:
>
> If you're new to git, then I'd suggest the following steps to have some 
> quick, positive experiences that will also confirm your Jenkins 
> installation is working reasonably.  Those steps may also help you identify 
> areas where you need to fine tune or improve your Jenkins installation.
>
>1. Add JGit as a git installation from the "Manage Jenkins", 
>"Configure System", "Git installations" 
>2. Confirm the JGit installation works by creating a job which clones 
>a publicly accessible git repository (either git://
>github.com/jenkinsci/git-client-plugin.git or 
>https://github.com/jenkinsci/git-client-plugin). That job will show 
>you that your git installation is sufficient to clone the repository
>3. Install command line git on your Jenkins server and slaves
>4. Confirm the command line git installation works by creating a job 
>which clones a publicly accessible git repository (same repositories as 
>were used for JGit)
>5. Confirm JGit works with your repository by creating a job which 
>clones your private repository
>6. Confirm command line git works with your repository by creating a 
>job which clones your repository
>
> Those steps should give you several initial successes with Jenkins and 
> give you confidence that you have the git plugin working at its most 
> fundamental level.
>
> To learn more about Git, there are youtube videos, online books, and more.
>
> Mark Waite
>
> On Thu, Sep 10, 2015 at 12:40 PM  > wrote:
>
>> Mark,
>>
>> Can you supply a commandline to use.. that is how new to GIT I am and if 
>> you know a good site for details on GIT that I can get up to speed on it.
>>
>>
>> On Wednesday, September 9, 2015 at 5:50:57 PM UTC-6, Mark Waite wrote:
>>
>>> Some of the things you can test to see if any of them help:
>>>
>>>1. Use a command line git version that is new enough to support 
>>>credentials (1.8 or newer is enough, 1.7.10 is also reported to work)
>>>2. Confirm you can clone your repository using command line git and 
>>>the specific URL, username and password
>>>3. Add a Jenkins credential with username and password, then use 
>>>that credential with a Jenkins  job to see if the repository is cloned
>>>4. Confirm you can clone your repository using command line git and 
>>>the URL 
>>>
>>> https://username:passw...@company.visualstudio.com/DefaultCollection/_git/Company/
>>>5. Try a test job with URL 
>>>
>>> https://username:passw...@company.visualstudio.com/DefaultCollection/_git/Company/
>>>6. Try a test job with the prior credential and URL 
>>>
>>> https://usern...@company.visualstudio.com/DefaultCollection/_git/Company/ 
>>>
>>> 
>>>
>>> Mark Waite
>>>
>>> On Wed, Sep 9, 2015 at 5:12 PM  wrote:
>>>
>> How do I allow jenkins to access GIT source from the VSOnline GIT source?

 https://company.visualstudio.com/DefaultCollection/_git/company

 Failed to connect to repository : Command "C:\Program 
 Files\Git\bin\git.exe -c core.askpass=true ls-remote -h '
 https://company.visualstudio.com/DefaultCollection/_git/Company HEAD" 
 returned status code 128:
 stdout: 
 stderr: fatal: Authentication failed for '
 https://company.visualstudio.com/DefaultCollection/_git/Company/

 I set up an alternate authentication method on my account in VSOnline 
 but I still can't access it.

 Someone suggested I use a commandline option in a build step but am 
 unfamiliar with how to do that as well..

 Any help would be greatly appreciated.

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Jenkins Users" 

Re: Batch command with slave mode configuration

2015-09-16 Thread Victor Martinez
Hi Quang,

C:/Windows/System32/nbtstat.exe is not windows format. AFAIK it should be 
backlash instead.

You could try to set your path variable too.

Cheers

On Wednesday, 16 September 2015 21:39:33 UTC+2, Quang Truong wrote:
>
> Dear all,
>
> I have encountered an issue like this:
>
> - If I setup a slave by downloading and running the jnlp file (no need to 
> install as Window service, just leave the java dialog as connected 
> process). Then I can run this batch command:
>
> setlocal EnableDelayedExpansion
> FOR /f "tokens=1 delims=<" %%G IN ('nbtstat -A %VM_IP% ^|FIND "<20>"') DO (
> SET Test_Machine_Name=%%G
> echo Test_Machine_Name=!Test_Machine_Name!
> )
>
> to return a target machine name (from provide IP %VM_IP%)
>
> - But if I run the commandline to setup the slave ( java -jar slave.jar 
> -jnlpUrl http://:8080/computer//slave-agent.jnlp 
> -secret ) then I encounter this error: 
> 'nbtstat' is not recognized as an internal or external command,
> operable program or batch file.
> I have tried to point the absolute path of the nbtstat
>
> setlocal EnableDelayedExpansion
> FOR /f "tokens=1 delims=<" %%G IN ('"C:/Windows/System32/nbtstat.exe -A 
> %VM_IP%" ^|FIND "<20>"') DO (
> SET Test_Machine_Name=%%G
> echo Test_Machine_Name=!Test_Machine_Name!
> )
> then got the syntax incorrect.
>
> Please help to guide for solving this issue
>
> Thanks,
> Quang
>

-- 
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/0d6b-cc5a-4539-9ffe-046405a27700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to send cucumber report content to recipient via email?

2015-09-16 Thread Ashley Chen
Hi all,

I have set up a project on Jenkins and choose Post-build Action "Publish 
cucumber results as a report" and "Editable Email Notification". On 
jenkins, I can see cucumber reports after each build (with full content, 
like scenarios, steps, etc), but email only receive build result, like 
success/fail/aborted. 
Does anyone know how to send full cucumber reports to recipient? Use some 
plugins or change settings somewhere?

Thanks,
Ashley 

-- 
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/cbd50e83-64bb-4927-b215-d2fb1d8d31a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


jenkins DSL Gerrit Project setup

2015-09-16 Thread GC
Hello Jenkins Users, 

Is anyone using DSL to generate the jobs that Gerrit Trigger ? 
Basically we want to get file path restriction on the trigger.

Below snippet 
  triggers {
gerrit {
  events {
patchsetCreated()
commentAdded()
   project('project', 'reg_exp:.*')
  }
}
  }

generates the xml with branches, but cannot find any documentation on how 
to setup on the file reg_exp. 

generated xml: 




PLAIN
project



REG_EXP
.*







Any help much appreciated. 

-- 
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/5110a30f-8080-4339-a62a-918dafc70c46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins and Git Error Returned Status Code 128:

2015-09-16 Thread Mark Waite
I created https://markwaite.visualstudio.com/ .  I was able to upload the
git client plugin source code and checkout from that repository into a
Jenkins job using my Visual Studio Online user name and password in the
credentials associated with the Jenkins job.

I confirmed I could checkout on Windows and Linux machines using both
command line git and JGit as the implementation.  I used
https://markwaite.visualstudio.com/DefaultCollection/_git/git-client-plugin as
the git URL.

I was not able to clone using https://username:password@
markwaite.visualstudio.com/DefaultCollection/_git/git-client-plugin (where
I replaced username with my user name and password with my password).

It could be that you're encountering an unexpected incompatibility between
your version of git and Visual Studio Online (possibly as described in
http://stackoverflow.com/questions/3778042/github-error-cloning-my-private-repository
 )

I'm not sure what other ideas to offer you.  One of the cases you described
works for me.

One of the cases you described (username:password) also fails for me.  I
suspect that is the same git plugin bug which causes bitbucket repositories
with username and password embedded in the URL to fail.  Refer to
https://issues.jenkins-ci.org/browse/JENKINS-26757 for more information on
that bug.

Thanks,
Mark Waite

On Wed, Sep 16, 2015 at 4:07 PM  wrote:

> Again this is the error I get if I supply credentials via the GIT source
> code setup traditionaly:
> Failed to connect to repository : Command "C:\Git\cmd\git.exe -c
> core.askpass=true ls-remote -h
> https://company.visualstudio.com/DefaultCollection/_git/CompanyHEAD;
> returned status code 128:
> stdout:
> stderr: fatal: unable to access '
> https://company.visualstudio.com/DefaultCollection/_git/Company/': error
> setting certificate verify locations:
>   CAfile: C:/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
>   CApath: none
>
> If  I try this as the Repository URL:
> https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company
> I get this error:
> Failed to connect to repository : Command "C:\Git\cmd\git.exe -c
> core.askpass=true ls-remote -h
> https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company
> HEAD" returned status code 128:
> stdout:
> stderr: fatal: unable to access '
> https://user:passw...@company.visualstudio.com/DefaultCollection/_git/Company/':
> error setting certificate verify locations:
>   CAfile: C:/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
>   CApath: none
>
>
> On Wednesday, September 9, 2015 at 5:12:07 PM UTC-6,
> angel.w...@centrallogic.com wrote:
>>
>> How do I allow jenkins to access GIT source from the VSOnline GIT source?
>>
>> https://company.visualstudio.com/DefaultCollection/_git/company
>>
>> Failed to connect to repository : Command "C:\Program
>> Files\Git\bin\git.exe -c core.askpass=true ls-remote -h '
>> https://company.visualstudio.com/DefaultCollection/_git/Company HEAD"
>> returned status code 128:
>> stdout:
>> stderr: fatal: Authentication failed for '
>> https://company.visualstudio.com/DefaultCollection/_git/Company/
>>
>> I set up an alternate authentication method on my account in VSOnline but
>> I still can't access it.
>>
>> Someone suggested I use a commandline option in a build step but am
>> unfamiliar with how to do that as well..
>>
>> Any help would be greatly appreciated.
>>
>> --
> 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/fff4c7e3-c265-4f42-8f6b-9e43e7c07f63%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/CAO49JtGazSxZVaJi7U8rF8c8Xa0uQ3%2BHp6vmD6QpTy%3D3mKyRtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins DSL Gerrit Project setup

2015-09-16 Thread GC
basically missing or cannot figure out how to generate the below 

  




  ANT

  builds/code1/**







  ANT

  buildz/code3/




 

On Wednesday, September 16, 2015 at 4:37:28 PM UTC-7, GC wrote:
>
> Hello Jenkins Users, 
>
> Is anyone using DSL to generate the jobs that Gerrit Trigger ? 
> Basically we want to get file path restriction on the trigger.
>
> Below snippet 
>   triggers {
> gerrit {
>   events {
> patchsetCreated()
> commentAdded()
>project('project', 'reg_exp:.*')
>   }
> }
>   }
>
> generates the xml with branches, but cannot find any documentation on how 
> to setup on the file reg_exp. 
>
> generated xml: 
>
> 
> 
> 
> PLAIN
> project
> 
> 
> 
> REG_EXP
> .*
> 
> 
> 
> 
> 
> 
>
> Any help much appreciated. 
>

-- 
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/524e67ca-72df-4485-96b6-8cac25d3b9fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins container with Docker container

2015-09-16 Thread Kha Nguyen
I have a use case where I run Jenkins inside a container using this Jenkins 
official image . Then I also need 
Jenkins to build Docker images, and for that I also run another container, 
known as docker-in-docker, with this official image with tag 'dind' 
. After I have linked the 
docker-in-docker container with the Jenkins container, I can successfully 
ping the docker-in-docker container using the alias from the Jenkins 
container. However, I am unsure about how I can setup docker build for 
Jenkins. I installed the Docker build step plugin 
, 
which exposes an option to install Docker, and to connect to a Docker 
server. I config the install Docker option, and yet `docker` command is not 
available. I cannot really connect to the Docker server using the alias and 
port 2375.

Any help is really appreciated.

-- 
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/b7b25a7e-acf2-458a-aa1e-6f067cd20e4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating parallel flow with Build Flow Plugin

2015-09-16 Thread Jay Neese
I am using a similar configuration as OP, except that multiple *different* 
jobs must be ran in parallel.  I have two separate build jobs (test1 and 
test2)  that are being fed into the parallel function and rather than 
running jobs test1 and test2, it is running test2 twice.  In my case the 
jobs will be different, but the parameter (version) that is passed to the 
jobs will not change. 

*Here is the code:*

version = "4.1.0" 
println "Deploying version " + version 
def components =  ["test1,test2"] 
println components 
def component = components.get(0) 
println component 
def values = component.split(',') 
def jobsInParallel = []; 
for ( myComponent  in values ) { 
  println myComponent 
  def parallelJob = { 
def jobParams = [:] 
jobParams = myComponent 
println jobParams 
build (jobParams,Version:version) 
  } 
  jobsInParallel.add(parallelJob) 
} 
parallel(jobsInParallel)


*And here is the Console output:*

Deploying version 4.1.0
[test1,test2]
test1,test2
test1
test2
parallel {
test2
test2
Schedule job test2
Schedule job test2
Build test2 #1 started
Build test2 #1 started
test2 #1 completed 
test2 #1 completed 
}
Finished: SUCCESS



Any ideas on why the test1 job isn't being included in the parallel build? 
 Any help would be appreciated. 

Thank You, 

Jay


On Monday, February 17, 2014 at 4:13:35 PM UTC-6, Stuart Rowe wrote:
>
> Hi Rodrigo, 
>
> BuildFlow's parallel function takes a list or map of closures - it will 
> execute each in parallel. 
>
> For your situation, you should iterate over your list of servers, creating 
> a 
> closure for each and adding it to list. This list can the be passed as an 
> argument to parallel(). 
>
> e.g. 
>
> // create a closure for the deploy job for each server 
> def serverDeployJobs = [] 
> for (server in servers) { 
> def deployJob = { 
> def jobParams = [:] 
> // set up params for deploy job on current server here... 
> 
> // call build 
> build(jobParams, DeployProjectName) 
> } 
> serverDeployJobs.add(deployJob) 
> } 
>
> // schedule deploy jobs in parallel 
> parallel(serverDeployJobs) 
>
> Hope that helps, 
> Stuart 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>

-- 
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/075f36ab-eb3e-4e1c-97b3-c724b5eb635b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GoogleRobotPrivateKeyCredentials AccountIdNotSetException

2015-09-16 Thread Andreas Schuldei
aparently i had created the wrong type of credential for this kind of 
interaction. selecting an other credential helped over this hurdle.

On Wednesday, September 16, 2015 at 2:16:04 PM UTC+2, Andreas Schuldei 
wrote:
>
> hi,
>
> i am setting up a CI pipeline that creates docker images, uploads them to 
> my google docker registry/repository and then redeploys my webapp. 
>
> Right now I work on the docker push step, which fails with this stack 
> trace:
>
>  ERROR: Build step failed with exception
>
> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials$AccountIdNotSetException
> at 
> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:181)
> at 
> com.google.jenkins.plugins.credentials.oauth.GoogleRobotPrivateKeyCredentials.getGoogleCredential(GoogleRobotPrivateKeyCredentials.java:45)
> at 
> com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials.getAccessToken(GoogleRobotCredentials.java:100)
> at 
> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredentialModule.getToken(GoogleContainerRegistryCredentialModule.java:73)
> at 
> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryCredential.getPassword(GoogleContainerRegistryCredential.java:224)
> at 
> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:48)
> at 
> com.google.jenkins.plugins.googlecontainerregistryauth.GoogleContainerRegistryTokenSource.convert(GoogleContainerRegistryTokenSource.java:32)
> at 
> jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:148)
> at 
> jenkins.authentication.tokens.api.AuthenticationTokens.convert(AuthenticationTokens.java:110)
> at 
> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.getToken(DockerRegistryEndpoint.java:179)
> at 
> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:201)
> at 
> org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:193)
> at 
> com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:381)
> at 
> com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:359)
> at 
> com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:305)
> at 
> com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:252)
> at 
> com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:233)
> at 
> com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:208)
> at 
> hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
> at hudson.model.Build$BuildExecution.build(Build.java:205)
> at hudson.model.Build$BuildExecution.doRun(Build.java:162)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
> at hudson.model.Run.execute(Run.java:1741)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> at 
> hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:408)
>
>
> This started happening after i deleted some unused and unrelated 
> credentials from the global credentials. 
>
> I am speculating that the credentials store got confused because the 
> AccountID is encoded in the credentials, isnt it? if not, where can i 
> supply it?
>
> (Before I got this error: 
>
> The push refers to a repository [
> eu.gcr.io/founderschair-website-01-981/website-image] (len: 1)
> Sending image list
> Error: Status 403 trying to push repository 
> founderschair-website-01-981/website-image: "Access denied."
>
> but i do hope I created the proper OAuth credentials by now. -- is there a 
> tutorial for that part with both the google and the jenkins side explained? 
> i followed  
> https://groups.google.com/forum/#!searchin/jenkinsci-users/docker$20container/jenkinsci-users/3DiEV7qQ7CM/1wHn3XzKrD4J
>  
> - is that state-of-the-art?)
>
> /andreas
>

-- 
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/5f538235-4838-4abd-bbae-b11ce5ea3bc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: jenkins DSL Gerrit Project setup

2015-09-16 Thread Baptiste Mathus
Yes. Using it for around twenty jobs.
You might need to read about what's called the "configure block" here.

Didn't check for that very case, but job dsl has a nice way to generate
custom xml when it doesn't (yet) support a plugin or a specific plugin's
use case.

I remember we indeed used the configure block for Gerrit trigger.

HTH
Cheers
Le 17 sept. 2015 1:45 AM, "GC"  a
écrit :

> basically missing or cannot figure out how to generate the below
>
>   
>
>
> 
>
>   ANT
>
>   builds/code1/**
>
>
> 
>
>
> 
>
>   ANT
>
>   buildz/code3/
>
>
> 
>
>  
>
> On Wednesday, September 16, 2015 at 4:37:28 PM UTC-7, GC wrote:
>>
>> Hello Jenkins Users,
>>
>> Is anyone using DSL to generate the jobs that Gerrit Trigger ?
>> Basically we want to get file path restriction on the trigger.
>>
>> Below snippet
>>   triggers {
>> gerrit {
>>   events {
>> patchsetCreated()
>> commentAdded()
>>project('project', 'reg_exp:.*')
>>   }
>> }
>>   }
>>
>> generates the xml with branches, but cannot find any documentation on how
>> to setup on the file reg_exp.
>>
>> generated xml:
>>
>> 
>>
>> 
>> PLAIN
>> project
>> 
>>
>> 
>> REG_EXP
>> .*
>>
>> 
>> 
>>
>> 
>> 
>>
>> Any help much appreciated.
>>
> --
> 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/524e67ca-72df-4485-96b6-8cac25d3b9fb%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/CANWgJS4B_xajVvcdXct5YrO2oTzGtcY8DAyuotxnMtKUQABekQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins container with Docker container

2015-09-16 Thread Baptiste Mathus
Hi,
Paraphrasing if you're using docker in docker, then think twice ;).

You certainly want to read
https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
(blog by the very author of DinD, hence obviously insightful).

Cheers
Le 17 sept. 2015 5:21 AM, "Kha Nguyen"  a écrit :

> I have a use case where I run Jenkins inside a container using this Jenkins
> official image . Then I also need
> Jenkins to build Docker images, and for that I also run another container,
> known as docker-in-docker, with this official image with tag 'dind'
> . After I have linked the
> docker-in-docker container with the Jenkins container, I can successfully
> ping the docker-in-docker container using the alias from the Jenkins
> container. However, I am unsure about how I can setup docker build for
> Jenkins. I installed the Docker build step plugin
> ,
> which exposes an option to install Docker, and to connect to a Docker
> server. I config the install Docker option, and yet `docker` command is not
> available. I cannot really connect to the Docker server using the alias and
> port 2375.
>
> Any help is really appreciated.
>
> --
> 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/b7b25a7e-acf2-458a-aa1e-6f067cd20e4c%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/CANWgJS7OXBTn%2BFfi6hNS-Y-x0QmnfFCDh65bGu9d4Js7M5%2B%2BjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins container with Docker container

2015-09-16 Thread Kha Nguyen
Wow! This is interesting! I wonder why this post never showed up in my 
Google search.

On Thursday, September 17, 2015 at 11:59:49 AM UTC+7, Baptiste Mathus wrote:
>
> Hi,
> Paraphrasing if you're using docker in docker, then think twice ;).
>
> You certainly want to read 
> https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ 
> (blog by the very author of DinD, hence obviously insightful).
>
> Cheers
> Le 17 sept. 2015 5:21 AM, "Kha Nguyen"  a 
> écrit :
>
>> I have a use case where I run Jenkins inside a container using this Jenkins 
>> official image . Then I also need 
>> Jenkins to build Docker images, and for that I also run another container, 
>> known as docker-in-docker, with this official image with tag 'dind' 
>> . After I have linked the 
>> docker-in-docker container with the Jenkins container, I can successfully 
>> ping the docker-in-docker container using the alias from the Jenkins 
>> container. However, I am unsure about how I can setup docker build for 
>> Jenkins. I installed the Docker build step plugin 
>> , 
>> which exposes an option to install Docker, and to connect to a Docker 
>> server. I config the install Docker option, and yet `docker` command is not 
>> available. I cannot really connect to the Docker server using the alias and 
>> port 2375.
>>
>> Any help is really appreciated.
>>
>> -- 
>> 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/b7b25a7e-acf2-458a-aa1e-6f067cd20e4c%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/e5da309d-b188-4381-99ea-717ab9427027%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Generating parallel flow with Build Flow Plugin

2015-09-16 Thread Jay Neese
I am using a similar configuration as OP, except that multiple *different* 
jobs must be ran in parallel.  I have two separate build jobs (test1 and 
test2)  that are being fed into the parallel function and rather 
than running 1 and 2, it is running the second job twice.  In my case the 
jobs will be different, but the parameter (version) passed to the jobs 
 will be the same for both jobs. 

*Here is the code:*

version = "4.1.0" 
println "Deploying version " + version 
def components =  ["test1,test2"] 
println components 
def component = components.get(0) 
println component 
def values = component.split(',') 
def jobsInParallel = []; 
for ( myComponent  in values ) { 
  println myComponent 
  def parallelJob = { 
def jobParams = [:] 
jobParams = myComponent 
println jobParams 
build (jobParams,Version:version) 
  } 
  jobsInParallel.add(parallelJob) 
} 
parallel(jobsInParallel) 



*And here is the Console output:*

Deploying version 4.1.0
[test1,test2]
test1,test2
test1
test2
parallel {
test2
test2
Schedule job test2 
Schedule job test2 
Build test2 #1  started
Build test2 #1  started
test2 #1  completed 
test2 #1  completed 
}
Finished: SUCCESS



Any ideas on why the test1 job isn't being included in the parallel build? 
 Any help would be appreciated. 

Thank You, 

Jay

On Monday, February 17, 2014 at 4:13:35 PM UTC-6, Stuart Rowe wrote:
>
> Hi Rodrigo, 
>
> BuildFlow's parallel function takes a list or map of closures - it will 
> execute each in parallel. 
>
> For your situation, you should iterate over your list of servers, creating 
> a 
> closure for each and adding it to list. This list can the be passed as an 
> argument to parallel(). 
>
> e.g. 
>
> // create a closure for the deploy job for each server 
> def serverDeployJobs = [] 
> for (server in servers) { 
> def deployJob = { 
> def jobParams = [:] 
> // set up params for deploy job on current server here... 
> 
> // call build 
> build(jobParams, DeployProjectName) 
> } 
> serverDeployJobs.add(deployJob) 
> } 
>
> // schedule deploy jobs in parallel 
> parallel(serverDeployJobs) 
>
> Hope that helps, 
> Stuart 
>
>
>
> -- 
> View this message in context: 
> http://jenkins-ci.361315.n4.nabble.com/Generating-parallel-flow-with-Build-Flow-Plugin-tp4687604p4691098.html
>  
> Sent from the Jenkins users mailing list archive at Nabble.com. 
>

-- 
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/2e97f727-2ee5-4289-9104-1cc112b504c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.