Re: Help with Choice Parameter

2016-04-11 Thread Gilad Baruchian
Anyone has an idea about this?

-- 
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/acba78c1-eeb3-443f-bf9e-f906755d6da7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Multi-configuration plugin missing branch

2016-04-11 Thread Andrew Melo
Hi all,

I have a project in github with a Jenkinsfile in the project root. For
some reason, even if I re-trigger branch indexing, Jenkins thinks the
master branch has no Jenkinsfile (though it does):

Checking branch master
  Jenkinsfile does not exist in this branch
Does not meet criteria

  0 branches were processed

  Getting remote pull requests...

Checking pull request #PR-38
  Jenkinsfile exists in this pull request
Met criteria
Scheduling build for branch: PR-38

  1 pull requests were processed

Is there some sort of caching involved, or perhaps a more aggressive
"reindex branches" button I can use, or have I triggered a legitimate
bug? I'm using the 2.0-rc1 docker image with all of the plugins
updated.

Cheers,
Andrew

-- 
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/86246b09-1949-4098-bc21-c7c20e0b61f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Executing testcases from jenkins and getting error

2016-04-11 Thread Ellendula Sainath
Hi Team,

We have automated few testcases and trying to execute the same testcases 
from jenkins and getting below error:

+ pybot -x junit.xml run.robot

==

Run   

==

sip-001   | PASS |

--

sip-002   | PASS |

--

Run   | PASS |

2 critical tests, 2 passed, 0 failed

2 tests total, 2 passed, 0 failed

 

 

Output:  
/opt/bitnami/apps/jenkins/jenkins_home/jobs/integration-test/workspace/output.xml

[ ERROR ] Reading XML source 
'/opt/bitnami/apps/jenkins/jenkins_home/jobs/integration-test/workspace/output.xml'
 
failed: ImportError: No module named expat; use SimpleXMLTreeBuilder instead


Here Testcases are passed but results *junit.xml* are not generating.


The same testcases if we execute from Ubuntu machine.. /path/run.robot. The 
Testcases passed and results are generating like junit.xml, output.xml 
etc.. 


Can anyone please guide me in resolving the above error which we got while 
executing from Jenkins.


Regards,

Sainath




 

-- 
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/61338d95-8432-496f-9c54-9a721a1124f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH vs java web start for windows slave and Linux master in jenkins

2016-04-11 Thread Slide
It should run just fine on newer versions of the .NET framework. I didn't
see anything in the code that was 3.5 specific.

On Mon, Apr 11, 2016 at 7:16 PM Wei-min Lee  wrote:

> I'm also curious about running the window slave as a service which
> requires .Net 3.5 in that Microsoft is looking to end support for 3.5.
> Would there be an update that supports higher versions of .Net or should I
> be looking at converting my Windows slaves to launch via java web start -
> seeing that the response to this thread talks more about the current and
> the evolution coming for the web start client?
>
> --
> 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/178c2a52-1a1a-44d2-927c-fca500212d82%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/CAPiUgVeVnq9VQ11LmO8QrN9-6jZVSbsYCd%2BsTDMcxBpvG2oBAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH vs java web start for windows slave and Linux master in jenkins

2016-04-11 Thread Wei-min Lee
I'm also curious about running the window slave as a service which requires 
.Net 3.5 in that Microsoft is looking to end support for 3.5. Would there be an 
update that supports higher versions of .Net or should I be looking at 
converting my Windows slaves to launch via java web start - seeing that the 
response to this thread talks more about the current and the evolution coming 
for the web start client?

-- 
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/178c2a52-1a1a-44d2-927c-fca500212d82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


InfluxDb Jenkins Plugin

2016-04-11 Thread Kamal Ahmed
Where can i find the hpi for InfluxDb Jenkins Plugin

I found the source 
@ https://github.com/jrajala-eficode/jenkins-ci.influxdb-plugin.git but 
having trouble building 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/4e69583d-219c-49e8-860a-2236c2658318%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins default update center

2016-04-11 Thread Daniel Beck

On 12.04.2016, at 01:09, Mark Eggers  wrote:

> If I remove the third party update center on the test Jenkins, then Jenkins 
> acts as if there are no update sites available.

If by that you mean that you clear the form field in Manage Plugins » Advanced, 
don't do that.

-- 
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/D938F879-49A6-401F-8661-9907744BF28F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Jenkins default update center

2016-04-11 Thread Mark Eggers
I thought that I had two identical Jenkins 1.656 installations (production 
and test), running on Tomcat 7.0.68.

However on the test system I'm not able to get updates from the default 
update center (a third party update center works).

When I look at the logs of the failing system, there is no line with:

Obtained the latest update center data file for UpdateSource default

The hudson.model.UpdateCenter.xml files are identical

If I remove the third party update center on the test Jenkins, then Jenkins 
acts as if there are no update sites available.

I would appreciate any insights. If worse comes to worse, I could rebuild 
the test environment as long as I can recover the jobs, workspaces, and 
tasks.

Thanks for any ideas.

Mark
/mde/

-- 
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/52413f11-19ab-4929-9878-bf9d38606377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Amazon ECR Plugin not providing credentials for Docker Build & Push Plugin

2016-04-11 Thread nicolas de loof
Did you well selected amazon credentials in build and publish build step
configuration ?

2016-04-11 22:53 GMT+02:00 A. Best :

> *Versions used in testing:*
> Jenkins: 1.642.3
> Amazon ECR Plugin: 1.0
> 
> Cloudbees Docker Build & Publish: 1.2.1
> 
>
> *ECS Container Instance*
> Docker Version: 1.9.1
> API Version: 1.21
>
>
> I have a couple of quick question about the amazon-ecr-plugin
> .
>
> In the About
>  
> section
> of the plugin, the Cloudbees Docker Build and Publish
> 
>  is
> referenced as an example of how the ECR plugin can be used.
>
> For my specific use case, I have the Jenkins master connecting to a
> Jenkins JNLP slave running in an ECS cluster. I’m using a container based
> on the jenkinsci/jnlp-slave
>  to perform the build.
> With the right permissions and mounted volumes, I am able to use the docker
> host(which is the ECS container instance) to build docker images.
>
>
> 
>
>
> The *Docker Build and Publish* plugin does use the dockerfile at the root
> of the project and build it as expected. However, I’m running into an issue
> when the plugin attempts to push the image to ECR.
>
> The push refers to a repository 
> [.dkr.ecr.us-east-1.amazonaws.com/ 
> test-repository] (len: 1)7a8e1872c5e2: 
> Preparing
> Post 
> https://.dkr.ecr.us-east-1.amazonaws.com/v2/test-repository/blobs/uploads/
>  : no basic auth 
> credentials
> Build step 'Docker Build and Publish' marked build as failure
> Finished: FAILURE
>
> It seems that the build is attempting to push to the registry with no
> credentials. I was assuming that the ECR plugin would provide docker with
> the correct AWS credentials to login to the registry so that the newly
> built image could be pushed.
>
> Do I need any additional packages installed on the Jenkins slave to get
> this to work?
>
> Am I missing something?
>
> Are my expectations for the plugin wrong?
>
>
> Thanks,
>
> Adam
>
> --
> 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/eaf6f71a-9758-4838-bb05-fd4fa43ee021%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/CANMVJzkbcHPGFmQD%3DWknEaKQf3%2BpM7KLmnk9FPVs0Qy_pNzPSA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Matt Friedman
Thanks so much for this.

On Monday, April 11, 2016 at 4:05:09 PM UTC-4, Craig Rodrigues wrote:
>
> I am not familiar with Jacoco and Robot Framework plugins, but according 
> to their wiki pages,
> those plugins should support Pipeline.  So make sure you have the latest 
> versions of those plugins first.
>
> This link has an example for using Robot Framework in Pipeline:
>
> https://github.com/jenkinsci/robot-plugin/pull/12
>
> For Jacoco, you should be able to figure out what to use by going to the
> configuration page for your Jenkins job.
> Then click on:
>
>- *Snippet Generator*
>- *Step: General Build Step*
>- then toggle the build step until you see something for Jacoco
>
>
> --
> Craig
>
> On Mon, Apr 11, 2016 at 10:29 AM, Matt Friedman  > wrote:
>
>> And what about other tools with graphical outputs like Jacoco and Robot 
>> Framework?
>>
>

-- 
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/daefdc4d-be48-4a0d-979a-2f9d50b51645%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Where can I drop a jar for it to be generally available to jenkins?

2016-04-11 Thread Brian Ray
We download jars in the job's workspace after checking out Groovy scripts 
and set the classpath env variable prior to running the Groovy build step. 
In Freestyle jobs we use the Artifactory plugin 
 to grab 
these jars and the EnvInject plugin 
 to set the 
classpath. In our Pipeline jobs we use Groovy scripts to grab them and the 
Pipeline script to set the classpath. There are probably dozens of other 
ways to get jars to the workspace.

On Friday, April 8, 2016 at 12:45:02 PM UTC-7, Guy Matz wrote:
>
> Thanks for the reply!  I'm not actually looking to server content, if 
> that's what you're getting at.  I'm looking for a way to make a jar 
> available to groovy scripts run as a build step.
>
> Thanks again!
>
> On Fri, Apr 8, 2016 at 12:23 PM, Mark Waite  > wrote:
>
>> The userContent directory on the Jenkins server serves content over http 
>> if that would help. 
>>
>> On Fri, Apr 8, 2016 at 7:53 AM Guy Matz  
>> wrote:
>>
>>> Is there a magic directory I can put a jar for it to available to 
>>> Jenkins?  Or - ugh - Do I need to put it in a plugin?
>>>
>>> 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-use...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/CABnTgtUAMSe2FkO%3DWSOatWBrVrCaSMnp0BeVbdBH8%2BGsSJ7scQ%40mail.gmail.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/CAO49JtFRhENWv1U1-2%2BzUgYa418PbDRBsXgf%2BMeGJXGevWnayA%40mail.gmail.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/1d9088a0-b1c6-46b7-b4b0-5bf10cde9f65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Amazon ECR Plugin not providing credentials for Docker Build & Push Plugin

2016-04-11 Thread A. Best
*Versions used in testing:*
Jenkins: 1.642.3
Amazon ECR Plugin: 1.0 

Cloudbees Docker Build & Publish: 1.2.1 


*ECS Container Instance*
Docker Version: 1.9.1
API Version: 1.21


I have a couple of quick question about the amazon-ecr-plugin 
.

In the About 
 
section 
of the plugin, the Cloudbees Docker Build and Publish 

 is 
referenced as an example of how the ECR plugin can be used.

For my specific use case, I have the Jenkins master connecting to a Jenkins 
JNLP slave running in an ECS cluster. I’m using a container based on the 
jenkinsci/jnlp-slave  to 
perform the build.  With the right permissions and mounted volumes, I am 
able to use the docker host(which is the ECS container instance) to build 
docker images.




The *Docker Build and Publish* plugin does use the dockerfile at the root 
of the project and build it as expected. However, I’m running into an issue 
when the plugin attempts to push the image to ECR.

The push refers to a repository [.dkr.ecr.us-east-1.amazonaws.com/ 
test-repository] (len: 1)7a8e1872c5e2: 
Preparing
Post 
https://.dkr.ecr.us-east-1.amazonaws.com/v2/test-repository/blobs/uploads/
 : no basic auth 
credentials
Build step 'Docker Build and Publish' marked build as failure
Finished: FAILURE

It seems that the build is attempting to push to the registry with no 
credentials. I was assuming that the ECR plugin would provide docker with 
the correct AWS credentials to login to the registry so that the newly 
built image could be pushed.  

Do I need any additional packages installed on the Jenkins slave to get 
this to work?

Am I missing something?

Are my expectations for the plugin wrong?


Thanks, 

Adam

-- 
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/eaf6f71a-9758-4838-bb05-fd4fa43ee021%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Groovy groovy-starter.conf

2016-04-11 Thread Guy Matz
Hello!  Anyone know if Jenkins honors Groovy's groovy-starter.conf?  And
where it needs to be to get noticed?

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


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
I am not familiar with Jacoco and Robot Framework plugins, but according to
their wiki pages,
those plugins should support Pipeline.  So make sure you have the latest
versions of those plugins first.

This link has an example for using Robot Framework in Pipeline:

https://github.com/jenkinsci/robot-plugin/pull/12

For Jacoco, you should be able to figure out what to use by going to the
configuration page for your Jenkins job.
Then click on:

   - *Snippet Generator*
   - *Step: General Build Step*
   - then toggle the build step until you see something for Jacoco


--
Craig

On Mon, Apr 11, 2016 at 10:29 AM, Matt Friedman 
wrote:

> And what about other tools with graphical outputs like Jacoco and Robot
> Framework?
>

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


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Matt Friedman
Ok, interesting, I didn't see that for mine. I will look at it more closely.


On Mon, Apr 11, 2016 at 2:43 PM Craig Rodrigues  wrote:

> What results display are you referring to?  I have a Pipeline job which
> uses JUnitArchiver and see
> the test results graphs:
>
> https://jenkins.freebsd.org/job/FreeBSD_HEAD/
>
> --
> Craig
>
> On Mon, Apr 11, 2016 at 10:29 AM, Matt Friedman 
> wrote:
>
>> Thanks Craig,
>>
>> Actually noticed that and tried it out. But I don't see the same sort of
>> results display that I am used to when I use for instance a maven project
>> with junit.
>>
>>
>> On Monday, April 11, 2016 at 1:23:09 PM UTC-4, Craig Rodrigues wrote:
>>
>
>>> Hi,
>>>
>>> There is an example for using JUnitArchiver in the tutorial:
>>>
>>>
>>> https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#recording-test-results-and-artifacts
>>>
>>> --
>>> Craig
>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/q76vJs_0Shg/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAG%3DrPVcQ%3DJKm8kuepsQL_0fjS3CqS-_sj7Y%3D53xYQ8-Q2KW3rA%40mail.gmail.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/CAHcjKnMqmnDW25PTnq52_8kjMKmtncmJNd6GQ9ohXQ9UiZ9hZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
What results display are you referring to?  I have a Pipeline job which
uses JUnitArchiver and see
the test results graphs:

https://jenkins.freebsd.org/job/FreeBSD_HEAD/

--
Craig

On Mon, Apr 11, 2016 at 10:29 AM, Matt Friedman 
wrote:

> Thanks Craig,
>
> Actually noticed that and tried it out. But I don't see the same sort of
> results display that I am used to when I use for instance a maven project
> with junit.
>
>
>
>
> On Monday, April 11, 2016 at 1:23:09 PM UTC-4, Craig Rodrigues wrote:
>>
>>
>> Hi,
>>
>> There is an example for using JUnitArchiver in the tutorial:
>>
>>
>> https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#recording-test-results-and-artifacts
>>
>> --
>> Craig
>>
>>

-- 
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/CAG%3DrPVcQ%3DJKm8kuepsQL_0fjS3CqS-_sj7Y%3D53xYQ8-Q2KW3rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error creating window handle

2016-04-11 Thread Abílio Martins Soares
I am using Jenkins ver. 1.642.4 and Windows 2012 R2 to execute a command 
line application made in .net, however after X executions I got this error:

*System.ComponentModel.Win32Exception: Cannot create a file when that file 
already exists *

The objects of this command line application remain on the Windows 
registry, I have updated the application disposing the classes but the 
problem is not solved.

Any thoughts?

-- 
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/532a32f1-2468-4174-97b0-e21a8f1e132b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0RC windows Batch file fail

2016-04-11 Thread Daniel Beck

On 11.04.2016, at 19:11, Daniel Daugherty  wrote:

> Taking the base install of JenkinsRC I get regular hanging batch commands.  
> When I check running tasks the batch has finished but Jenkins is still 
> looking for the results.  After some investigation I found the batch files 
> being run by jenkins.  jenkins-main.bat and jenkins-wrap.bat  The wrap calls 
> main.  Once main is complete the wrap should write a the file 
> jenkins-result.txt into the job folder.  This file is not present when the 
> task hangs.  If is create a file with a 1 or 0 in it the task complete as 
> expected.  This failure is not every time but at least 2 out of 10 time it 
> will fail.  
> 
> example build
> 
> node{
>   echo 'test 123'
>   bat 'ping -r 10 127.0.0.1'
>   echo 'test done'
> }
> 
> It will do the first echo and the ping completes but the eche 'test done' 
> never starts.  This make Jenkins pipeline unusable for us.  
> 

Could you file a bug against the 'workflow-plugin' component in JIRA, ideally 
with steps to reproduce? As this may be environment dependent, better include 
as much as you can. Are you running an antivirus tool that scans the directory 
this file should be in?

https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue

-- 
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/99F70B5A-6698-4A90-AA7E-2795CF312C2D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Matt Friedman
Thanks Craig,

Actually noticed that and tried it out. But I don't see the same sort of 
results display that I am used to when I use for instance a maven project 
with junit. 

Are there any plans to enhance the views that are configured after running 
such a tool?

And what about other tools with graphical outputs like Jacoco and Robot 
Framework?

If I can't get the graphical benefit from using Pipeline in Jenkins then I 
don't see how it is much different from ConcourseCi?

Not trying to be a jerk, but I really feel that one of the great things 
about Jenkins is how it gives you a lot of visible GUI evidence of how your 
pipeline is looking, but with Pipeline I seem to lose that.



On Monday, April 11, 2016 at 1:23:09 PM UTC-4, Craig Rodrigues wrote:
>
> Hi,
>
> There is an example for using JUnitArchiver in the tutorial:
>
>
> https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#recording-test-results-and-artifacts
>
> --
> Craig
>
>
> On Mon, Apr 11, 2016 at 6:15 AM, Matt Friedman  > wrote:
>
> Thanks much David
>>
>> I found the pages you referred to.
>>
>> A sort of related question. If I use JUnitResultArchiver then I expect 
>> the junit results will be displayed in Jenkins in the usual way.
>>
>>

-- 
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/6a57dcf0-dab2-4bd0-9082-0022f08c29d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Craig Rodrigues
Hi,

There is an example for using JUnitArchiver in the tutorial:

https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#recording-test-results-and-artifacts

--
Craig


On Mon, Apr 11, 2016 at 6:15 AM, Matt Friedman 
wrote:

Thanks much David
>
> I found the pages you referred to.
>
> A sort of related question. If I use JUnitResultArchiver then I expect
> the junit results will be displayed in Jenkins in the usual way.
>
>

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


Jenkins 2.0RC windows Batch file fail

2016-04-11 Thread Daniel Daugherty
Taking the base install of JenkinsRC I get regular hanging batch commands. 
 When I check running tasks the batch has finished but Jenkins is still 
looking for the results.  After some investigation I found the batch files 
being run by jenkins.  jenkins-main.bat and jenkins-wrap.bat  The wrap 
calls main.  Once main is complete the wrap should write a the file 
jenkins-result.txt into the job folder.  This file is not present when the 
task hangs.  If is create a file with a 1 or 0 in it the task complete as 
expected.  This failure is not every time but at least 2 out of 10 time it 
will fail.  

example build

node{
  echo 'test 123'
  bat 'ping -r 10 127.0.0.1'
  echo 'test done'
}

It will do the first echo and the ping completes but the eche 'test done' 
never starts.  This make Jenkins pipeline unusable for us.  

Daniel D. 

-- 
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/44f2430e-36f8-447a-9e26-deffd2cf2b9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.x (DSL) - can ansi color be used used?

2016-04-11 Thread thomas . lehmann
I found it after some Google 
searches: https://github.com/dblock/jenkins-ansicolor-plugin

$ cat cicd/Jenkinsfile 
#!groovy
node {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm', 
'defaultFg': 1, 'defaultBg': 2]) {
// This is the current syntax for invoking a build wrapper, naming 
the class.
wrap([$class: 'TimestamperBuildWrapper']) {




On Monday, April 11, 2016 at 4:14:45 PM UTC+2, thomas@teamaol.com wrote:
>
> Hi,
>
> relating Jenkins 2.x and DSL ...
> You can do a wrap([$class: 'TimestamperBuildWrapper']) { ... } for getting 
> timestamps.
> *Is there also a way to get the ansi color plugin enabled*?
> (https://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin)
>
> Kind Regards,
> Thomas
>

-- 
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/d78768f2-7982-4857-ae62-2bcf62ab3f19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.0 alpha release available

2016-04-11 Thread Fadi Al-Farah
Security needs a little bit of a rework in my opinion.

What I mean by that is, I think it's a bad idea to ONLY have one method of 
logging in. Currently the admin can only choose ONE of the following:

- Delegate to servlet container.
- Jenkins’ own user database.
- LDAP.
- Unix user/group database.

I propose to be able to choose multiple methods of login (when it makes 
sense). So something like Jenkins' own user database + LDAP; this way if 
anything happens to the LDAP then the admin can still login and do stuff.. 
etc.

Thanks,

Fadi

-- 
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/f9f326d6-3f08-4a6c-9d78-f72da36ef6a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 2.x (DSL) - can ansi color be used used?

2016-04-11 Thread thomas . lehmann
Hi,

relating Jenkins 2.x and DSL ...
You can do a wrap([$class: 'TimestamperBuildWrapper']) { ... } for getting 
timestamps.
*Is there also a way to get the ansi color plugin enabled*?
(https://wiki.jenkins-ci.org/display/JENKINS/AnsiColor+Plugin)

Kind Regards,
Thomas

-- 
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/86e6011d-c842-4458-a3dc-2ecf240cd08a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Credentials for Each User

2016-04-11 Thread Stephen Connolly
Step 1: Install the Authorize Project plugin
Step 2: configure the jobs to run as the user
Step 3: have the user put their credentials in their per-user credentials
store
Step 4: don't put credentials in the Jenkins System credentials store
Step 5: Sit back, light your pipe and enjoy the satisfaction of a job well
done

On 11 April 2016 at 08:32, ayesha s  wrote:

> Hi all,
>
> Currently I have a global credential created(ssh keys) to build a project
> in GitLab.And any other(authenticated) user that logs into this Jenkins
> instance on windows server are able to use the same credential to build
> their projects in GitLab Repository.A Non-Admin user can see another user`s
> user Jenkins credentials' contents (private keys, etc!)
> But for security reasons this should not happen.Each user should only be
> able to build his/her GitLab repo using his/her credential(ssh keys).So he
> should also not  be able to view any other credentials apart from the one
> created by/for him.
> I am using Roles Based Authorization plugin to give different users
> different roles for different projects.If I want to create a project based
> credential at the user level(and not global credential) then that
> credential does not appear in the drop down under Project
> configuration(Refer to 5.jpeg).And I believe that if we could see the
> credential here in drop down then it would have solved my purpose.Or is
> there any other way so that every user can only view/use  his/her own
> credentials and not any other user credentials?
>
> I have attached screen shots for better understanding of my current
> problem and the solution I am looking for.
> 1.jpeg-> Global credentials  view from admin login (all users that log in
> are able see and use this)
> 2.jpeg->Global credentials  view from normal user login
> 3.jpeg->Credential created under the current user(but its not visible in
> the 5.jpeg drop down for it to be used to build GitLab Repo)
> 4.jpeg->Global credential being used to build GitLab project(Every user
> using ayesha_siddi...@in.ibm.com credentials- which is not correct)
> 5.jpeg->Drop down only shows Global credentials and not credentials
> created under a user Credentials(prpan...@in.ibm.com as created in 3.jpeg
> not visible here)
> Roles & Permissions.jpeg ->Credentials permission given thru Role Based
> Authorization Plugin
>
>
> Till now I have tried creating 'domains' and created  credentials for that
> domain  but that does not solve the purpose.I have also referred to
> following discussions:
>
> https://groups.google.com/forum/?utm_medium=email_source=footer#!searchin/jenkinsci-users/user$20credentials|sort:relevance/jenkinsci-users/MMvgsv8J3hE/Q4MpfhXjBAAJ
>
>
> The following discussion is similar to the requirement I am looking
> for.But even after installing 'Authorization Plugin' its still not clear
> what other settings needs to be done.As this still is not letting one see
> per-user credentials in the drop down to select in project configuration.
>
>
> https://groups.google.com/forum/?utm_medium=email_source=footer#!searchin/jenkinsci-users/user$20credentials|sort:relevance/jenkinsci-users/t9z2uLuvf74/ZLJwxEHrCgAJ
>
>
> Kindly let me know once I have installed Authorization plugin what next
> needs to be done to solve the problem I am facing?Or if there is other
> method to achieve my purpose?
>
> --
> 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/aa5ca215-753f-4c92-abc9-b26392f0ac5d%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/CA%2BnPnMwZMp5kSErVGzfEWu2WBiUp6x9QS%3DmF8ph7hVFOnSJQHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Matt Friedman
Thanks much David

I found the pages you referred to.

A sort of related question. If I use JUnitResultArchiver then I expect the 
junit results will be displayed in Jenkins in the usual way.

Some time ago, I tried the workflow plugin as it was then called, and I 
wanted to see Robot Framework results displayed, but I didn't find a way to 
do that at the time.

Similar question for tools like Jacoco. How do I get the nice plugin 
display that comes with the existing GUI plugins, but using the DSL and not 
the gui?

Are there ways to integrate the robot framework plugin by using the new 
pipeline dsl?

Thanks!
Matt
 



On Monday, April 11, 2016 at 7:59:47 AM UTC-4, David Karlsen wrote:
>
> https://yourJenkinsHost/workflow-cps-snippetizer/dslReference contains 
> a reference - and there you find a link for a gdsl which can be added 
> to your project in IDEA [1] 
>
> [1] 
>
> http://www.tothenew.com/blog/gdsl-awesomeness-introduction-to-gdsl-in-intellij-idea/
>  
>
> 2016-04-11 13:24 GMT+02:00 Matt Friedman  >: 
> > Is there a canonical, complete reference for the Jenkinsfile syntax? 
> > 
> > Is there editor help, such as in Intellij Idea? 
> > 
> > Thanks kindly, 
> > Matt 
> > 
> > -- 
> > 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/6d89392a-3018-46dd-b1a5-6d1b8ab52e97%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> -- 
> David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen 
>

-- 
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/547a171d-d19c-467d-87d1-fb925dc783b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread David Karlsen
https://yourJenkinsHost/workflow-cps-snippetizer/dslReference contains
a reference - and there you find a link for a gdsl which can be added
to your project in IDEA [1]

[1]
http://www.tothenew.com/blog/gdsl-awesomeness-introduction-to-gdsl-in-intellij-idea/

2016-04-11 13:24 GMT+02:00 Matt Friedman :
> Is there a canonical, complete reference for the Jenkinsfile syntax?
>
> Is there editor help, such as in Intellij Idea?
>
> Thanks kindly,
> Matt
>
> --
> 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/6d89392a-3018-46dd-b1a5-6d1b8ab52e97%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen

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


Jenkinsfile Pipeline Language Complete Reference

2016-04-11 Thread Matt Friedman
Is there a canonical, complete reference for the Jenkinsfile syntax?

Is there editor help, such as in Intellij Idea?

Thanks kindly,
Matt

-- 
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/6d89392a-3018-46dd-b1a5-6d1b8ab52e97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Bug or PEBKAC? Jenkins->Rally plugin

2016-04-11 Thread Thinking monster
Hi  Were you able to fix the same.I am getting same error when using this 
plugin.

On Monday, August 17, 2015 at 8:49:00 PM UTC+5:30, Peter Berghold wrote:
>
> I did Git checkin of one of my projects with the following commit message:
>
>  US496500: for task TA1117248 with status: completed; actuals: 2 hours, to 
> do: 1
>
> and the build failed with this in the console output:
>
>   rally update plug-in error: could not update TaskDetails entry: JsonNull
> java.lang.UnsupportedOperationException: JsonNull
>   at com.google.gson.JsonElement.getAsDouble(JsonElement.java:198)
>   at 
> com.jenkins.plugins.rally.utils.RallyQueryBuilder$RallyQueryResponseObject.getTaskAttributeAsDouble(RallyQueryBuilder.java:23)
>   at 
> com.jenkins.plugins.rally.service.RallyService.updateRallyTaskDetails(RallyService.java:81)
>   at com.jenkins.plugins.rally.RallyPlugin.perform(RallyPlugin.java:116)
>   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:1744)
>   at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
>   at hudson.model.ResourceController.execute(ResourceController.java:98)
>   at hudson.model.Executor.run(Executor.java:374)
> Build step 'Update Rally Task and ChangeSet' marked build as failure
> [WARNINGS] Skipping publisher since build result is FAILURE
> Sending e-mails to: pb8...@att.com 
> Finished: FAILURE
>
>
> Is it me or is there a bug?   Please advise.
>
>

-- 
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/ea26c5eb-b6b9-4f5a-94c0-68e59dde6101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Copy artifact plugin: How to get access to an artifact name

2016-04-11 Thread Alex Domoradov

But I have encountered with one annoying behavior. I have specified 2 jobs 
in the Projects to build field and these jobs executes one by one not in 
parallel. 

http://i.imgur.com/owhDpUO.png

Is it possible to run those jobs in parallel without additional plugins? If 
it is not possible, what plugin do I need to use to achieve such behavior?






On Monday, April 11, 2016 at 10:42:34 AM UTC+3, Alex Domoradov wrote:
>
> Yes, currently I'm using exactly such scheme as you've described. But i 
> thought there should be built-in feature to get such information
>
> On Saturday, April 9, 2016 at 8:05:43 PM UTC+3, Victor Martinez wrote:
>>
>> Off the top off my head, you can generate a properties (key=value) file a 
>> as part of the parentstream build and use it as build parameters for those 
>> downstream  jobs
>> 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/bd945120-57e2-4e9c-9a7c-c96f94bef508%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Copy artifact plugin: How to get access to an artifact name

2016-04-11 Thread Alex Domoradov
Yes, currently I'm using exactly such scheme as you've described. But i 
thought there should be built-in feature to get such information

On Saturday, April 9, 2016 at 8:05:43 PM UTC+3, Victor Martinez wrote:
>
> Off the top off my head, you can generate a properties (key=value) file a 
> as part of the parentstream build and use it as build parameters for those 
> downstream  jobs
> 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/9e6ea107-170a-4aee-90cb-8281416b0319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.