Re: Automating Jenkins Deployments with Chef

2015-01-27 Thread Kenneth Baltrinic
Chris,

Thank you for your reply.  Yes, I am using the copy config.xml approach for 
a lot of scenarios but it seems like a back door approach.  I would have 
more confidence in the robustness of my code if I were using an API that 
threw errors when I did things wrong rather than potentially write some bad 
xml that either breaks jenkins all together (i've had it refuse to start a 
few times) or misbehave is subtle ways.

All that said though, to answer your question about specific examples, here 
are two of my other posts on things I am trying to configure in Jenkins via 
groovy.  

How to configure Maven Installation via Groovy 
https://groups.google.com/forum/#!topic/jenkinsci-users/wsvDiFVQ7xo
Create UserPrivateKeySource Credential via Groovy? 
https://groups.google.com/forum/#!topic/jenkinsci-users/Ou3k6Mqr3vg

In the case of the former, I am presently using an xml template as the 
solution.  In the latter case, I have not go there yet as there does seem 
to be hope of getting the API to work. (fingers crossed).

--Ken

On Monday, January 12, 2015 at 7:46:06 AM UTC-5, Kenneth Baltrinic wrote:

 I am working on creating a chef cookbook to automate our Jenkins 
 infrastructure.  I am using the opscode Jenkins cookbook as my starting 
 point but it only has a few basic resources.  I can see I am going to need 
 use the cookbook's jenkins_script resource to configure Jenkins via groovy. 

 That would be fine except I am having considerable difficulty figuring out 
 how to configure Jenkins via groovy.  There does not seem to be a lot of 
 information out there either in the Jenkins docs nor in blogs, etc.  None 
 of the plug-ins document their API, etc.  There are API docs for main 
 Jenkins which help but only if you already understand the big picture, 
 which is what I am struggling with right now.  I understand how to 
 configure all of our Jenkins boxes via the UI, but how do I learn to 
 translate that into knowledge of writing groovy scripts?  Right now the 
 only means I am seeing is to spend a very long time digging my way through 
 the source code itself and learning from trial and error.  Is there another 
 way? 

 How do people out there learn and use the Jenkins API?


-- 
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/ed568564-34be-41d4-8a2d-63672dfdc84d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I incorporate CHEF into my build and deployment process

2015-01-27 Thread Eric Wood
Currently I am deploying application code to our target environments using the 
Build Pipeline plugin.  It is a visualization tool for managing a chain of 
upstream and downstream jenkins jobs.  We want to incorporate chef scripts into 
our deployment process for setting up the initial servers and verifying their 
configuration.  For example, we want to be able to install tomcat, java and 
other packages in a consistent programmatic way.
Does it make sense to incorporate this pieces into my build pipeline along with 
the build steps for deploying the application code  liquibase DB changes. What 
is the preferred method for incorporating setting up the application server to 
be able to accept our application code.

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


Re: 1.598 Maven builds failing StackOverflowError

2015-01-27 Thread Jeff
After upgrading to 1.598, all of my Maven builds broke as well but I am
unable to even build.  (We pull from Nexus)  I downgraded to 1.597 and it
is working again (so far).

The console output has this:

[workspace] $ /usr/local/bin/p4 -s sync -f //jenkins_core/...@693973
Sync complete, took 4580 ms
Parsing POMs
using settings config with name my-settings.xml
FATAL: nulljava.lang.StackOverflowError
http://stacktrace.jenkins-ci.org/search?query=java.lang.StackOverflowError
at
sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
at com.sun.proxy.$Proxy66.lookup(Unknown Source)
at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)

...

at com.sun.proxy.$Proxy66.lookup(Unknown Source)
at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)
at com.sun.proxy.$Proxy66.lookup(Unknown Source)
at sun.reflect.GeneratedMethodAccessor328.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:40)

End of Console 



On Tue Jan 27 2015 at 4:38:31 AM James Green james.mk.gr...@gmail.com
wrote:

 With 1.598 we're seeing StackOverflowErrors on deploying to Nexus. On
 downgrading to 1.597 our builds are fixed.

 These issues appear relevant, worthwhile mentioning to the wider community
 here:

 https://issues.jenkins-ci.org/browse/JENKINS-26601
 https://issues.jenkins-ci.org/browse/JENKINS-26595

 James

  --
 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/CAMH6%2Bax1L%2BqniFkcvsymmuaQPot%3Danx9iTU%3DnZ7aQYg19UcnZw%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bax1L%2BqniFkcvsymmuaQPot%3Danx9iTU%3DnZ7aQYg19UcnZw%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 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/CAPJK9%3DLYJ%3D_fgMRksDTv37Q-yhAquKVUdjCwcKPnY%2BSfdCo5gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Determine groups of user inside System

2015-01-27 Thread Sascha.Retter
Hi,

we are facing the problem, that a System Groovy Choice Parameter behaves 
different depending on the user who starts the build.

We've created a job to easily create branch-jobs for users but the job only 
works for administrators because we need to access the groups the user who 
started the job is member of. All the API-Methods we have tried return an empty 
list for normal users. For administrators it works without any problem.

To conclude is there any option to access the list of groups a (normal) user 
who has started a build is member of in a System Groovy Script? We are 
retrieving the userId by using: 
(0).collect{hudson.model.User.current().getId()}[0];

Thanks,

Sascha

-- 
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/6E554EC8B07C3344ACEABD98B2B9E8660293B889C134%40HE113606.emea1.cds.t-internal.com.
For more options, visit https://groups.google.com/d/optout.


Which Mail plugins to use?

2015-01-27 Thread David Aldrich
Hi

In our Jenkins instance we have installed both the Mailer plugin and the Email 
Extension plugin.  Should we be using both?

Part of my reason for asking is that the System Log shows errors like this one:

Jan 27, 2015 9:15:42 AM WARNING org.kohsuke.stapler.RequestImpl$TypePair 
convertJSON
'stapler-class' is deprecated: hudson.plugins.emailext.ExtendedEmailPublisher

Best regards

David

-- 
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/41302A7145AC054FA7A96CFD03835A0A0B918237%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Only one Administrator with Jenkins 1.580.1 server on Win 8.1

2015-01-27 Thread Steve K
Hello,

I am experiencing very odd access behavior on two different Jenkins 
servers.  Both servers are Win. 8.1 and both use Jenkins 1.580.1

Both servers use Jenkins own User Database and Matrix based security.

I selected Administrator rights for 3 different users.
Now, only one of those three users has Administrator privilege

I have set up very similar configurations in the past, but have never been 
faced with this

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, 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/7f8b7069-87f2-41d8-9acf-1a6beccf41be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Alternate JDK on slave box

2015-01-27 Thread Les Mikesell
On Tue, Jan 27, 2015 at 2:57 PM, Gilles Devaux gilles.dev...@gmail.com wrote:
 Hi,

 I have installed two JDKs on a slave box, JDK7 (default) and JDK8 (without
 update-alternatives). I'm trying to build something with the JDK8 but no
 luck.

 I'm setting JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64/ in several places,
 String build parameter, inject environment, something like this in the DSL:

 ```
 wrappers {
 environmentVariables {
 env('JAVA_HOME', '/usr/lib/jvm/jdk-8-oracle-x64/')
 }
 }
 parameters {
 stringParam('JAVA_HOME','/usr/lib/jvm/jdk-8-oracle-x64/')
 }
 environmentVariables(
 JAVA_HOME: '/usr/lib/jvm/jdk-8-oracle-x64/'
 )
 ```

I'm not using maven, but doesn't this work like the other JVM
settings?  That is, give the JVMs names in the global configuration,
then set/override the location in the node config tools section, and
then pick the JDK name in the job config.The location should get
exported as JAVA_HOME.

-- 
   Les Mikesell
 lesmikes...@gmail.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/CAOAgVpzZup6cZ_ECmWV9hsORWx916Obp%3DJVbw-a%2BKmFjoAjoGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RE: add version number to each artifacts in jenkins

2015-01-27 Thread Ginga, Dick
I do not know the difference because I do not use the release plugin

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of nagashree ck
Sent: Tuesday, January 27, 2015 7:49 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: add version number to each artifacts in jenkins

Thanks for reply Ginga,

we have two plugins in jenkins like version number plugin and release plugin 
can you tell me the difference and according my requirement which one i can use.

On Fri, Jan 23, 2015 at 8:00 PM, Ginga, Dick 
dick.gi...@perkinelmer.commailto:dick.gi...@perkinelmer.com wrote:
Use the $BUILD_NUMBER however you want to create a version string. We use 
version strings of the form a.b.c.d. I pass in a parameter called VERSION_BASE 
that is a.b.c. Then I name my artifacts with $VERSION_BASE.$BUILD_NUMBER.

Also look at the Version Number plugin

From: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com]
 On Behalf Of nagashree ck
Sent: Friday, January 23, 2015 5:02 AM
To: jenkinsci-users@googlegroups.commailto:jenkinsci-users@googlegroups.com
Subject: Re: add version number to each artifacts in jenkins

Thanks rginga, i want version number like 1.0 if i make any changes in the same 
version the version number should be 1.1

how i can provide by using $BUILD_NUMBER

On Wednesday, January 21, 2015 at 6:35:24 PM UTC+5:30, rginga wrote:
You will have to do that during the build by naming your artifacts when they 
are created. Jenkins provides $BUILD_NUMBER as a token you can use.

From: jenkins...@googlegroups.commailto:jenkins...@googlegroups.com 
[mailto:jenkins...@googlegroups.com] On Behalf Of nagashree ck
Sent: Tuesday, January 20, 2015 11:54 PM
To: jenkins...@googlegroups.commailto:jenkins...@googlegroups.com
Subject: add version number to each artifacts in jenkins

Hi Friends,

How to add version number to each artifacts in jenkins


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.commailto:jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com?utm_medium=emailutm_source=footer.
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.commailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com?utm_medium=emailutm_source=footer.
For more options, visit https://groups.google.com/d/optout.
--
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/B9x7DS_Pp04/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NEThttps://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET?utm_medium=emailutm_source=footer.

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.commailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.comhttps://groups.google.com/d/msgid/jenkinsci-users/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.com?utm_medium=emailutm_source=footer.
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 

RE: Alternate JDK on slave box

2015-01-27 Thread John Mellor
Its been a while since I did a maven build under Jenkins or Hudson, but 
somewhere it notes that the system jdk is used to fire up Java-based build 
steps.  There should be a checkbox somewhere in the config to start a separate 
Java instance and NOT use the default system jdk.  Of course, that will require 
forking and starting up the different jdk, so it will slow your build down 
slightly...

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Les Mikesell
Sent: January-27-15 16:12
To: jenkinsci-users
Subject: Re: Alternate JDK on slave box

On Tue, Jan 27, 2015 at 2:57 PM, Gilles Devaux gilles.dev...@gmail.com wrote:
 Hi,

 I have installed two JDKs on a slave box, JDK7 (default) and JDK8 
 (without update-alternatives). I'm trying to build something with the 
 JDK8 but no luck.

 I'm setting JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64/ in several 
 places, String build parameter, inject environment, something like this in 
 the DSL:

 ```
 wrappers {
 environmentVariables {
 env('JAVA_HOME', '/usr/lib/jvm/jdk-8-oracle-x64/')
 }
 }
 parameters {
 stringParam('JAVA_HOME','/usr/lib/jvm/jdk-8-oracle-x64/')
 }
 environmentVariables(
 JAVA_HOME: '/usr/lib/jvm/jdk-8-oracle-x64/'
 )
 ```

I'm not using maven, but doesn't this work like the other JVM settings?  That 
is, give the JVMs names in the global configuration, then set/override the 
location in the node config tools section, and
then pick the JDK name in the job config.The location should get
exported as JAVA_HOME.

-- 
   Les Mikesell
 lesmikes...@gmail.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/CAOAgVpzZup6cZ_ECmWV9hsORWx916Obp%3DJVbw-a%2BKmFjoAjoGA%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/a91106ce9cec42c4a0f89949b5553e5a%40mbx01colo01p.esentire.local.
For more options, visit https://groups.google.com/d/optout.


Alternate JDK on slave box

2015-01-27 Thread Gilles Devaux
Hi,

I have installed two JDKs on a slave box, JDK7 (default) and JDK8 (without 
update-alternatives). I'm trying to build something with the JDK8 but no 
luck.

I'm setting JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64/ in several places, 
String build parameter, inject environment, something like this in the DSL:

```
wrappers {
environmentVariables {
env('JAVA_HOME', '/usr/lib/jvm/jdk-8-oracle-x64/')
}
}
parameters {
stringParam('JAVA_HOME','/usr/lib/jvm/jdk-8-oracle-x64/')
}
environmentVariables(
JAVA_HOME: '/usr/lib/jvm/jdk-8-oracle-x64/'
)
```

But maven is still started with the system JDK:

Relevant logs:

```
00:00:00.001 [EnvInject] - Loading node environment variables.
00:00:00.420 [EnvInject] - Preparing an environment for the build.
00:00:00.420 [EnvInject] - Keeping Jenkins system variables.
00:00:00.629 [EnvInject] - Keeping Jenkins build variables.
00:00:01.255 [EnvInject] - Injecting as environment variables the 
properties content 
00:00:01.255 JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64/
00:00:01.256 
00:00:01.256 [EnvInject] - Variables injected successfully.
00:00:01.257 [EnvInject] - Injecting contributions.
00:00:01.258 Building remotely on linux-ba-awsuse1-jenkinsslave-a1 in 
workspace ...
00:00:03.357 Creating version: 0.8.0-111-24-2015-01-27-825bee6
00:00:03.361 [EnvInject] - Executing scripts and injecting environment 
variables after the SCM step.
00:00:03.570 [EnvInject] - Injecting as environment variables the 
properties content 
00:00:03.570 JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64/
00:00:03.673 
00:00:03.674 [EnvInject] - Variables injected successfully.
00:00:05.865 Copied 1 artifact from 
 
[8mha:oR+LCP9b85aBtbiIQSajNKU4P08vOT+vOD8nVc+jsiC1KCczL9svvyTVzHb1RttJBUeZGJg8GdhyUvPSSzJ8GJhLi3JKGIR8shLLEvVzEvPS9YNLijLz0q0rihik0IxzhtAgwxgggJGJgaGiAMjQLWFQ0c/KT9JPy8/JyS/XLS5NT08tLskE6tAty0wtjy9KBVH6AD2dlyip
 [0mfollow-suggestions-view_review 
(SCM Checkout) build number 
 
[8mha:pB+LCP9b85aBtbiIQSajNKU4P08vOT+vOD8nVc+jsiC1KCczL9svvyTVzHb1RttJBUeZGJg8GdhyUvPSSzJ8GJhLi3JKGIR8shLLEvVzEvPS9YNLijLz0q0rihik0IxzhtAgwxgggJGJgaGiAMhgKmFQ18/KT9JPy8/JyS/XLS5NT08tLskE6tAty0wtjy9KBVH6Rib6AAebm7Cs
 [0m24
00:00:07.081 [workspace-24_2015-01-27_20-45-28] $ /bin/sh -xe 
/tmp/hudson6869963651105314926.sh
00:00:07.094 + [ -f workspace.tgz ]
00:00:07.094 + tar xzf workspace.tgz
00:00:07.125 + rm workspace.tgz
00:00:07.797 Parsing POMs
00:00:10.818 maven3-agent.jar already up to date
00:00:11.351 maven3-interceptor.jar already up to date
00:00:11.665 maven3-interceptor-commons.jar already up to date
00:00:11.869 [workspace-24_2015-01-27_20-45-28] $ java -cp 
/spotify/jenkins-agent/maven3-agent.jar:/spotify/jenkins-agent/tools/hudson.tasks.Maven_MavenInstallation/_usr_bin_mvn/boot/plexus-classworlds-2.4.jar
 
org.jvnet.hudson.maven3.agent.Maven3Main 
/spotify/jenkins-agent/tools/hudson.tasks.Maven_MavenInstallation/_usr_bin_mvn 
/spotify/jenkins-agent/slave.jar 
/spotify/jenkins-agent/maven3-interceptor.jar 
/spotify/jenkins-agent/maven3-interceptor-commons.jar 44050
00:00:12.750 ===[JENKINS REMOTING CAPACITY]===channel started
00:00:24.609 log4j:WARN No appenders could be found for logger 
(org.apache.commons.beanutils.converters.BooleanConverter).
00:00:24.610 log4j:WARN Please initialize the log4j system properly.
00:00:30.355 Executing Maven:  -B -f ... -X compile
00:00:33.063 Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 
2013-02-19 13:51:28+)
00:00:33.064 Maven home: 
/spotify/jenkins-agent/tools/hudson.tasks.Maven_MavenInstallation/_usr_bin_mvn
00:00:34.009 Java version: 1.7.0_60, vendor: Oracle Corporation
00:00:34.013 Java home: /usr/lib/jvm/jdk-7-oracle-x64/jre
00:00:34.014 Default locale: en_US, platform encoding: UTF-8
00:00:34.024 OS name: linux, version: 3.13.0-24-generic, arch: amd64, 
family: unix
```

The parameters and injectedEnvVars panels in the build show the JAVA_HOME

Any idea?

Thanks

--Gilles

-- 
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/01ddd8a0-b785-4fe9-b7bf-a19ac76f7918%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Job DSL - Multijob iteration?

2015-01-27 Thread Jordan Spiker
Hi all,

I have a Multijob that creates jobs based on a text file.

job(type: Multijob) {
steps {
phase('build') {
f.eachLine {
job(type: Matrix) {
...
}
 }
 }
 }
}

This does generate the sub-jobs fine, but they are not included in the 
Multijob phase.  How could I get the generated jobs to be included in the 
phase?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1e1491be-b4b6-48bb-a927-0d7be0aa4e65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to disable automatic scheduling of the Git Plugin

2015-01-27 Thread bl0ck3r
The Git Plugin tells me that it is Scheduling another build to catch up 
with project-integration
I do not use polling, I do not use any triggers, I have a plain job 
triggered by hand.
How do I turn off any and all of the automatic scheduling performed by the 
Git Plugin?

Thanks,
Martin

-- 
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/10864b38-38cf-40bb-8f63-b0f5e9196072%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Plugin or Groovy script to report on tests that fail consistently or that have passed consistently than failed for the first time

2015-01-27 Thread Shawn McCarthy
My ideal situation is that when my job that runs my automated tests 
finishes (another build step, with a groovy script or plugin?), any test 
that has failed the last 3 times (configurable amount), gets sent in the 
email (email-ext plugin). Also, any test that consistently passed (say 3 
times in a row), but than failed for the first time in this latest run, 
gets put in the email as a new failure.

Does something like this exist yet? If not, Would I be able to accomplish 
this with a groovy script?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, 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/c542bb51-a7e8-4e2c-9a9e-1e969fc3162c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[build flow plugin] NullPointerException when I try to wrap a build in a concurrent.Future

2015-01-27 Thread Dave Mills
I'm trying to implement node fail-over logic. Like the *retry* block, but 
each time on a different node.

So I supply a list of nodes, and use code like the following where the 
*node *parameter is a Nodes and Labels 
https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin 
parameter:


def failover(b, nodes) {
  guard {
b(nodes.head())
  } rescue {
recurse(b, nodes.tail())
  }
}

failover({ n - build(_node, NODE:n) }, [one, two, three, four
, five])


This works fine. The problem I'm having is that if one of the nodes is 
offline, it hangs forever. I've tried using the Build Timeout Plugin 
https://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin on that 
job, but it doesn't work, presumably because the job itself never starts.

So I'm trying to wrap the build in a concurrent.Future so that I can time 
it out from the DSL:


f = { build(_node, NODE:one) } as Callable
executor = Executors.newSingleThreadExecutor()
future = executor.submit(f)
result = future.get(2, TimeUnit.SECONDS)
executor.shutdownNow()


This gives me a massive stack trace:

ERROR: Failed to run DSL Scriptjava.util.concurrent.ExecutionException 
http://stacktrace.jenkins-ci.org/search?query=java.util.concurrent.ExecutionException:
 java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask$Sync.innerGetentity=method
at java.util.concurrent.FutureTask.get(FutureTask.java:111) 
http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.getentity=method
at java_util_concurrent_Future$get.call(Unknown Source)
at 
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
at Script1.run(Script1.groovy:15)

snip

Caused by: java.lang.NullPointerException
at 
org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.acceptGetProperty(GetEffectivePojoPropertySite.java:51)
at 
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
at 
com.cloudbees.plugins.flow.FlowDelegate.statusCheck(FlowDSL.groovy:167)
at com.cloudbees.plugins.flow.FlowDelegate.build(FlowDSL.groovy:173)
at sun.reflect.GeneratedMethodAccessor5604.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)

snip


Looking at the source code for the FlowDSL 
https://github.com/jenkinsci/build-flow-plugin/blob/cbdf3fa9f0ad0acee7315a1cde5991c0234d06b7/src/main/groovy/com/cloudbees/plugins/flow/FlowDSL.groovy#L410,
 
I see that when they do this sort of thing for the *parallel *block, they 
muck around with ACLs, Contexts, and FlowStates.

Before I start tunneling to the center of the earth, does anyone know how I 
can get this to work?

Thanks! 

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/19e9d718-d9c3-4766-95f4-6794a76166fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Strategy for using slave nodes in Jenkins for a full LDAP/NFS Linux-setup

2015-01-27 Thread Peter Toft
Hi all

I have been updating my lovely Linux-based Jenkins setup with a set of new 
compute nodes.
It seems to work just fine to add a new node Jenkins - nodes - New node 
(at http://jenkins:8080/computer/) and my jobs are transferred using SSH.
All works now :-)

I have a jenkins server and 3 slave hosts slave1, slave2 and slave3,

My setup has NFS for all hosts (same jenkins directory - we replaced 
/var/jenkins with /home/jenkins/)
and we have the same user accounts setup via LDAP.
But I have one thing that I do not understand properly (please comment):

For any of the slave machines (e.g. slave1) in 
http://fpc-jenkins:8080/computer/slave1/configure I have a field
Remote root directory which I currently set to  /home/jenkins/slave/slave1 
for the slave1 machine and
 /home/jenkins/slave/slave2 for the slave2 machine.

Should I - or can I - set this directly to  /home/jenkins/ for all of the 
slave machines? 
Any pitfalls here?

Thanx mates

/pto





-- 
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/08c00d46-1a5c-4a28-8355-dd86a8b972a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Strategy for using slave nodes in Jenkins for a full LDAP/NFS Linux-setup

2015-01-27 Thread Peter Toft
I can at least see that having a special Remote root directory per slave 
unit costs that my projects are cloned from my git server from scratch.
Good thing? Bad thing? :-)


On Tuesday, January 27, 2015 at 11:30:25 AM UTC+1, Peter Toft wrote:

 Hi all

 I have been updating my lovely Linux-based Jenkins setup with a set of new 
 compute nodes.
 It seems to work just fine to add a new node Jenkins - nodes - New node 
 (at http://jenkins:8080/computer/) and my jobs are transferred using SSH.
 All works now :-)

 I have a jenkins server and 3 slave hosts slave1, slave2 and 
 slave3,

 My setup has NFS for all hosts (same jenkins directory - we replaced 
 /var/jenkins with /home/jenkins/)
 and we have the same user accounts setup via LDAP.
 But I have one thing that I do not understand properly (please comment):

 For any of the slave machines (e.g. slave1) in 
 http://fpc-jenkins:8080/computer/slave1/configure I have a field
 Remote root directory which I currently set to  /home/jenkins/slave/slave1 
 for the slave1 machine and
  /home/jenkins/slave/slave2 for the slave2 machine.

 Should I - or can I - set this directly to  /home/jenkins/ for all of the 
 slave machines? 
 Any pitfalls here?

 Thanx mates

 /pto







-- 
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/94405bc3-7b5b-4b35-8cf4-dadeed3dd744%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Which Mail plugins to use?

2015-01-27 Thread David Aldrich
Thanks for your explanation.

Best regards

David

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide
Sent: 27 January 2015 13:00
To: jenkinsci-users@googlegroups.com
Subject: Re: Which Mail plugins to use?


Email-ext currently depends on Mailer. Mailer used to be part of the core (and 
is still a bundled plugin) and it has some things that are used (user property 
for email addresses and so forth) that it uses from Mailer. The warning you are 
seeing is probably because the version of Jenkins you are using is newer than 
the LTS release that email-ext is built againstm. The warning is just a 
warning, it shouldn't affect the plugin doing its job.

On Tue, Jan 27, 2015, 02:36 David Aldrich 
david.aldr...@emea.nec.commailto:david.aldr...@emea.nec.com wrote:
Hi
In our Jenkins instance we have installed both the Mailer plugin and the Email 
Extension plugin.  Should we be using both?
Part of my reason for asking is that the System Log shows errors like this one:
Jan 27, 2015 9:15:42 AM WARNING org.kohsuke.stapler.RequestImpl$TypePair 
convertJSON
'stapler-class' is deprecated: hudson.plugins.emailext.ExtendedEmailPublisher
Best regards
David

-- 
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/41302A7145AC054FA7A96CFD03835A0A0B918381%40EX10MBX02.EU.NEC.COM.
For more options, visit https://groups.google.com/d/optout.


Re: add version number to each artifacts in jenkins

2015-01-27 Thread nagashree ck
Thanks for reply Ginga,

we have two plugins in jenkins like version number plugin and release
plugin can you tell me the difference and according my requirement which
one i can use.

On Fri, Jan 23, 2015 at 8:00 PM, Ginga, Dick dick.gi...@perkinelmer.com
wrote:

  Use the $BUILD_NUMBER however you want to create a version string. We
 use version strings of the form a.b.c.d. I pass in a parameter called
 VERSION_BASE that is a.b.c. Then I name my artifacts with
 $VERSION_BASE.$BUILD_NUMBER.



 Also look at the Version Number plugin



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Friday, January 23, 2015 5:02 AM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: add version number to each artifacts in jenkins



 Thanks rginga, i want version number like 1.0 if i make any changes in the
 same version the version number should be 1.1



 how i can provide by using $BUILD_NUMBER

 On Wednesday, January 21, 2015 at 6:35:24 PM UTC+5:30, rginga wrote:

 You will have to do that during the build by naming your artifacts when
 they are created. Jenkins provides $BUILD_NUMBER as a token you can use.



 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] *On
 Behalf Of *nagashree ck
 *Sent:* Tuesday, January 20, 2015 11:54 PM
 *To:* jenkins...@googlegroups.com
 *Subject:* add version number to each artifacts in jenkins



 Hi Friends,



 How to add version number to each artifacts in jenkins





 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/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

 --
 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/B9x7DS_Pp04/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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET
 https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET?utm_medium=emailutm_source=footer
 .

 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/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Create UserPrivateKeySource Credential via Groovy?

2015-01-27 Thread Kenneth Baltrinic
Its me again--still trying to configure Jenkins via Chef.  In this case I 
have extracted from the opscode Jenkins cookbook their script for creating 
ssh credentials and have attempted to modify it to create a credential from 
a UserPrivateKeySource instead of the DirectEntryPrivateKeySource that the 
opscode script creates.  Perhaps I don't understand the 
UserPrivateKeySource class or its purpose correctly but I am not getting 
the results I want. 

Essentially what I am trying to do is this:  The cookbook has already 
installed an SSH key pair in the Master Jenkins users' .ssh directory.  Now 
I want to programmatically create a credential in Jenkins to use that pair. 
 The script should be the automated equivalent of choosing the From the 
Jenkins master ~/.ssh option in the Manage Credentials UI.  It seems to me 
that the UserPrivateKeySource class is what I want, but when I use it, what 
I get in the UI is the Enter Directly option checked, with the private 
key from the .ssh folder loaded into the UI!.  :-(  So its using the right 
key, but its making it visible in the UI which is a no-no for us.   
Moreover, if I go in an manual choose the right option later, the update 
part of the script switches it back to Entire Directly on the next chef 
run.  

Below is the recipe snippet containing the groovy script hat I am using to 
create the credentials.  Any advice on what I am doing wrong would be 
greatly appreciated.


*jenkins_script 'create ~/.ssh credentials' do*
*command -EOH.gsub(/ ^{8}/, '')*
*import jenkins.model.**
*import com.cloudbees.plugins.credentials.**
*import com.cloudbees.plugins.credentials.common.**
*import com.cloudbees.plugins.credentials.domains.**
*import com.cloudbees.jenkins.plugins.sshcredentials.impl.**
*import hudson.plugins.sshslaves.*;*

*global_domain = Domain.global()*
*credentials_store =*
*  Jenkins.instance.getExtensionList(*
*'com.cloudbees.plugins.credentials.SystemCredentialsProvider'*
*  )[0].getStore()*

*credentials = new BasicSSHUserPrivateKey(*
*  CredentialsScope.GLOBAL,*
*  #{node['cvent-jenkins']['ssh-user-id']},*
*  #{node['cvent-jenkins']['ssh-user']},*
*  new BasicSSHUserPrivateKey.UsersPrivateKeySource(),*
*  ,*
*  Credential ID: #{node['cvent-jenkins']['ssh-user-id']}*
*)*

*// Create or update the credentials in the Jenkins instance*
*username_matcher = 
CredentialsMatchers.withUsername(#{node['cvent-jenkins']['ssh-user']})*
*available_credentials =*
*  CredentialsProvider.lookupCredentials(*
*StandardUsernameCredentials.class,*
*Jenkins.getInstance(),*
*hudson.security.ACL.SYSTEM,*
*new SchemeRequirement(ssh)*
*  )*

*existing_credentials =*
*  CredentialsMatchers.firstOrNull(*
*available_credentials,*
*username_matcher*
*  )*

*if(existing_credentials != null) {*
*  // !!This will take an existing UserPrivateKeySource credential 
and *
*  // turn it into a DirectEntryPrivateKeySource credentials. :(*
*  credentials_store.updateCredentials(*
*global_domain,*
*existing_credentials,*
*credentials*
*  )*
*} else {*
*  credentials_store.addCredentials(global_domain, credentials)*
*}*
*EOH*
*end*

-- 
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/1470419e-0788-49b3-952b-854523037bb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Which Mail plugins to use?

2015-01-27 Thread Slide
Email-ext currently depends on Mailer. Mailer used to be part of the core
(and is still a bundled plugin) and it has some things that are used (user
property for email addresses and so forth) that it uses from Mailer. The
warning you are seeing is probably because the version of Jenkins you are
using is newer than the LTS release that email-ext is built againstm. The
warning is just a warning, it shouldn't affect the plugin doing its job.

On Tue, Jan 27, 2015, 02:36 David Aldrich david.aldr...@emea.nec.com
wrote:

  Hi



 In our Jenkins instance we have installed both the Mailer plugin and the
 Email Extension plugin.  Should we be using both?



 Part of my reason for asking is that the System Log shows errors like this
 one:



 Jan 27, 2015 9:15:42 AM WARNING org.kohsuke.stapler.RequestImpl$TypePair
 convertJSON

 'stapler-class' is deprecated:
 hudson.plugins.emailext.ExtendedEmailPublisher



 Best regards



 David



 --
 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/41302A7145AC054FA7A96CFD03835A0A0B918237%40EX10MBX02.EU.NEC.COM
 https://groups.google.com/d/msgid/jenkinsci-users/41302A7145AC054FA7A96CFD03835A0A0B918237%40EX10MBX02.EU.NEC.COM?utm_medium=emailutm_source=footer
 .
 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/CAPiUgVdRWd4Rfw0zPFnNU%2Bc3F4vydupwL2scmjBLkRUrJv7a8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Git Credentials on Workflow Plugin

2015-01-27 Thread Rob Mandeville
I am using:

* Jenkins 1.580.2

* GIT client plugin 1.15.0

* GIT plugin 2.3.4

* Workflow plugins 1.1

* Credentials plugin 1.22

We use GitLab for source control and do not allow anonymous access of any kind. 
 We use the Credentials plugin, have put in credentials allowing us access to 
Git, and on our normal projects, we simply give Git these pre-loaded 
credentials.  Now, I'm trying to create a Workflow job.

I can't find any doc which says how to feed credentials to Git, so I went to 
the credentials plugin and pulled the plugin ID from the URL.  I then wrote the 
following Groovy CPS DSL script (without the redactions, obviously):


steps.stage('Setup')
node('mock_builder') {
   String templateUrl = 'git@URL_REDACTED'
   steps.git(url: templateUrl, credentialsId: 'ID_REDACTED')
   sh 'echo hello world'
}

The job gets stuck in the SCM step and exits with the following output:


Running: Setup

Entering stage Setup

Proceeding

Running: Allocate node : Start

Running on mock_builder in 
C:\Windows\TEMP\hudson1572436821107746068tmp\workspace\Try a Workflow

Running: Allocate node : Body : Start

Running: Git

  git.exe rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository

  git.exe config remote.origin.url git@URL_REDACTED # timeout=10

Fetching upstream changes from git@URL_REDACTED

  git.exe --version # timeout=10

  git.exe -c core.askpass=true fetch --tags --progress git@URL_REDACTED 
  +refs/heads/*:refs/remotes/origin/*

ERROR: Timeout after 10 minutes

ERRORhttp://stacktrace.jenkins-ci.org/search?query=ERROR: Error fetching 
remote repo 'origin'

Runninghttp://stacktrace.jenkins-ci.org/search?query=Running: Allocate node : 
Body : End

Running: Allocate node : End

Running: End of Workflow

ERROR: Error fetching remote repo 'origin'

Finishedhttp://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE

I'm wondering where the -c core.askpass=true came from, and figuring that it 
was waiting to receive a password via standard input.
Is there any way, with or without the credentials plugin, to feed Git 
credentials to this project?

Thanks in advance,

--Rob


This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
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/0A40042D85E7C84DB443060EC44B3FD36D9ACEDA91%40dekaexchange07.deka.local.
For more options, visit https://groups.google.com/d/optout.


updating changelog when a build is run

2015-01-27 Thread Tanmay Kansara
Hi Guys,

I am new to using jenkins and wondering if you can guide me. When I run a 
build, a log file is created in a separate folder. Since this is not 
necessarily an SVN update the contents of the log files are not displayed 
under Status or Changes. Is there a modification that I can do that 
will display the contents of a specific log file under the Changes tab ?

Thanks
Tanmay

-- 
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/bfe04175-7bd7-454c-a7d0-352b4fd5ab76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: updating changelog when a build is run

2015-01-27 Thread Tanmay Kansara
Please also note that I am not using any SCM for this build.

Thanks

On Tuesday, January 27, 2015 at 11:15:11 AM UTC-5, Tanmay Kansara wrote:

 Hi Guys,

 I am new to using jenkins and wondering if you can guide me. When I run a 
 build, a log file is created in a separate folder. Since this is not 
 necessarily an SVN update the contents of the log files are not displayed 
 under Status or Changes. Is there a modification that I can do that 
 will display the contents of a specific log file under the Changes tab ?

 Thanks
 Tanmay


-- 
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/1d21c88a-8eb6-4a27-8d17-63a589f459a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: add version number to each artifacts in jenkins

2015-01-27 Thread nagashree ck
ok Thanks Ginga

On Wed, Jan 28, 2015 at 2:11 AM, Ginga, Dick dick.gi...@perkinelmer.com
wrote:

  I do not know the difference because I do not use the release plugin



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Tuesday, January 27, 2015 7:49 AM

 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: add version number to each artifacts in jenkins



 Thanks for reply Ginga,



 we have two plugins in jenkins like version number plugin and release
 plugin can you tell me the difference and according my requirement which
 one i can use.



 On Fri, Jan 23, 2015 at 8:00 PM, Ginga, Dick dick.gi...@perkinelmer.com
 wrote:

 Use the $BUILD_NUMBER however you want to create a version string. We use
 version strings of the form a.b.c.d. I pass in a parameter called
 VERSION_BASE that is a.b.c. Then I name my artifacts with
 $VERSION_BASE.$BUILD_NUMBER.



 Also look at the Version Number plugin



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Friday, January 23, 2015 5:02 AM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: add version number to each artifacts in jenkins



 Thanks rginga, i want version number like 1.0 if i make any changes in the
 same version the version number should be 1.1



 how i can provide by using $BUILD_NUMBER

 On Wednesday, January 21, 2015 at 6:35:24 PM UTC+5:30, rginga wrote:

 You will have to do that during the build by naming your artifacts when
 they are created. Jenkins provides $BUILD_NUMBER as a token you can use.



 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com
 jenkins...@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Tuesday, January 20, 2015 11:54 PM
 *To:* jenkins...@googlegroups.com
 *Subject:* add version number to each artifacts in jenkins



 Hi Friends,



 How to add version number to each artifacts in jenkins





 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/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

 --
 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/B9x7DS_Pp04/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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET
 https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET?utm_medium=emailutm_source=footer
 .


 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/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

   --
 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/B9x7DS_Pp04/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
 

Re: Git Credentials on Workflow Plugin

2015-01-27 Thread Mark Waite
The -c core.askpass=true is used to prevent the git command line call
from prompting for a password from stdin.  It was added in a recent
git-client-plugin and was a key change to enable resolution of several
other bugs.  I doubt very much that argument is causing an authentication
problem.

On Tue, Jan 27, 2015 at 9:15 AM, Rob Mandeville 
rmandevi...@dekaresearch.com wrote:

  I am using:

 · Jenkins 1.580.2

 · GIT client plugin 1.15.0

 · GIT plugin 2.3.4

 · Workflow plugins 1.1

 · Credentials plugin 1.22



 We use GitLab for source control and do not allow anonymous access of any
 kind.  We use the Credentials plugin, have put in credentials allowing us
 access to Git, and on our normal projects, we simply give Git these
 pre-loaded credentials.  Now, I’m trying to create a Workflow job.



 I can’t find any doc which says how to feed credentials to Git, so I went
 to the credentials plugin and pulled the plugin ID from the URL.  I then
 wrote the following Groovy CPS DSL script (without the redactions,
 obviously):





 steps.stage('Setup')

 node('mock_builder') {

String templateUrl = 'git@URL_REDACTED'

steps.git(url: templateUrl, credentialsId: 'ID_REDACTED')

sh 'echo hello world'

 }



 The job gets stuck in the SCM step and exits with the following output:



 Running: Setup

 Entering stage Setup

 Proceeding

 Running: Allocate node : Start

 Running on mock_builder in 
 C:\Windows\TEMP\hudson1572436821107746068tmp\workspace\Try a Workflow

 Running: Allocate node : Body : Start

 Running: Git

   git.exe rev-parse --is-inside-work-tree # timeout=10

 Fetching changes from the remote Git repository

   git.exe config remote.origin.url git@URL_REDACTED # timeout=10

 Fetching upstream changes from git@URL_REDACTED

   git.exe --version # timeout=10

   git.exe -c core.askpass=true fetch --tags --progress git@URL_REDACTED 
 +refs/heads/*:refs/remotes/origin/*

 ERROR: Timeout after 10 minutes

 ERROR http://stacktrace.jenkins-ci.org/search?query=ERROR: Error fetching 
 remote repo 'origin'

 Running http://stacktrace.jenkins-ci.org/search?query=Running: Allocate 
 node : Body : End

 Running: Allocate node : End

 Running: End of Workflow

 ERROR: Error fetching remote repo 'origin'

 Finished http://stacktrace.jenkins-ci.org/search?query=Finished: FAILURE



 I’m wondering where the “-c core.askpass=true” came from, and figuring
 that it was waiting to receive a password via standard input.

 Is there any way, with or without the credentials plugin, to feed Git
 credentials to this project?


The -c core.askpass=true is used to prevent the git command line call
from prompting for a password from stdin.  It was added in a recent
git-client-plugin and was a key change to enable resolution of several
other bugs.  I doubt very much that argument is causing an authentication
problem.


  Thanks in advance,



 --Rob

 --
 This e-mail and the information, including any attachments it contains,
 are intended to be a confidential communication only to the person or
 entity to whom it is addressed and may contain information that is
 privileged. If the reader of this message is not the intended recipient,
 you are hereby notified that any dissemination, distribution or copying of
 this communication is strictly prohibited. If you have received this
 communication in error, please immediately notify the sender and destroy
 the original message.

 Thank you.

 Please consider the environment before printing this email.

 --
 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/0A40042D85E7C84DB443060EC44B3FD36D9ACEDA91%40dekaexchange07.deka.local
 https://groups.google.com/d/msgid/jenkinsci-users/0A40042D85E7C84DB443060EC44B3FD36D9ACEDA91%40dekaexchange07.deka.local?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Thanks!
Mark Waite

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


Re: add version number to each artifacts in jenkins

2015-01-27 Thread nagashree ck
How to give path for files to archive in jenkins artifacts

Thanks in Advance

On Wed, Jan 28, 2015 at 9:55 AM, nagashree ck nagashree...@gmail.com
wrote:

 ok Thanks Ginga

 On Wed, Jan 28, 2015 at 2:11 AM, Ginga, Dick dick.gi...@perkinelmer.com
 wrote:

  I do not know the difference because I do not use the release plugin



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Tuesday, January 27, 2015 7:49 AM

 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: add version number to each artifacts in jenkins



 Thanks for reply Ginga,



 we have two plugins in jenkins like version number plugin and release
 plugin can you tell me the difference and according my requirement which
 one i can use.



 On Fri, Jan 23, 2015 at 8:00 PM, Ginga, Dick dick.gi...@perkinelmer.com
 wrote:

 Use the $BUILD_NUMBER however you want to create a version string. We use
 version strings of the form a.b.c.d. I pass in a parameter called
 VERSION_BASE that is a.b.c. Then I name my artifacts with
 $VERSION_BASE.$BUILD_NUMBER.



 Also look at the Version Number plugin



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Friday, January 23, 2015 5:02 AM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: add version number to each artifacts in jenkins



 Thanks rginga, i want version number like 1.0 if i make any changes in
 the same version the version number should be 1.1



 how i can provide by using $BUILD_NUMBER

 On Wednesday, January 21, 2015 at 6:35:24 PM UTC+5:30, rginga wrote:

 You will have to do that during the build by naming your artifacts when
 they are created. Jenkins provides $BUILD_NUMBER as a token you can use.



 *From:* jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com
 jenkins...@googlegroups.com] *On Behalf Of *nagashree ck
 *Sent:* Tuesday, January 20, 2015 11:54 PM
 *To:* jenkins...@googlegroups.com
 *Subject:* add version number to each artifacts in jenkins



 Hi Friends,



 How to add version number to each artifacts in jenkins





 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/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/1d7eadd6-60aa-4ca5-87dc-39a5a7641fc3%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 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/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/a417de59-ca62-4a1d-95d8-269ae45ab668%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

 --
 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/B9x7DS_Pp04/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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET
 https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4E9888%40AMERMBX02.PERKINELMER.NET?utm_medium=emailutm_source=footer
 .


 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/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.com
 https://groups.google.com/d/msgid/jenkinsci-users/CAKO07korkHuwz7g%2BtZWOV0qUD-%3D4TF-L0r-8ytp%3DtOEShByo-w%40mail.gmail.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.

   --
 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/B9x7DS_Pp04/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to
 

Re: How to disable automatic scheduling of the Git Plugin

2015-01-27 Thread Mark Waite
I don't think you can disable all scheduling of jobs performed by the git
plugin.  It assumes the tip of each branch to build should be built if
not built previously.

You might try leaving the branches to build field completely empty, or
give it the name of a branch which is known to not exist.  Both would be
quite unusual use models based on what I've seen with the plugin, but they
might work.

Mark Waite

On Tue, Jan 27, 2015 at 5:44 PM, bl0ck3r martin.danjo...@gmail.com wrote:

 The Git Plugin tells me that it is Scheduling another build to catch up
 with project-integration
 I do not use polling, I do not use any triggers, I have a plain job
 triggered by hand.
 How do I turn off any and all of the automatic scheduling performed by the
 Git Plugin?

 Thanks,
 Martin

  --
 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/10864b38-38cf-40bb-8f63-b0f5e9196072%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/10864b38-38cf-40bb-8f63-b0f5e9196072%40googlegroups.com?utm_medium=emailutm_source=footer
 .
 For more options, visit https://groups.google.com/d/optout.




-- 
Thanks!
Mark Waite

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