Re: problem with jenkins not able to access git

2017-01-12 Thread Phil Swenson
Actually I don't think it has anything to do with git... i tried 
downgrading my git plugin and got this error:


   - Failed to resolve host name updates.jenkins-ci.org. Perhaps you need 
   to configure HTTP proxy? 
   <http://ace-jenkins.cable.comcast.com:3/pluginManager/advanced>


On Thursday, January 12, 2017 at 1:13:30 PM UTC-7, Phil Swenson wrote:
>
> I have a new jenkins server I'm trying to stand up 2.4 with all latest 
> plugins... it works for a day and then starts giving me errors like this:
>
> Started by timer
>  > git rev-parse --is-inside-work-tree # timeout=10
> Setting origin to g...@bitbucket.org:myco/ace-esni-datastore.git
>  > git config remote.origin.url 
> g...@bitbucket.org:mygo/ace-esni-datastore.git # timeout=10
> Fetching & pruning origin...
> Fetching upstream changes from origin
>  > git --version # timeout=10
> using GIT_SSH to set credentials 
>  > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* 
> --prune
> FATAL: Failed to recompute children of ace-esni-datastore-test
> hudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  Command "git fetch --tags --progress origin 
> +refs/heads/*:refs/remotes/origin/* --prune" returned status code 128:
> stdout: 
> stderr: ssh: Could not resolve hostname bitbucket.org: Name or service not 
> known
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1772)
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1516)
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:67)
> at 
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:318)
> at 
> jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:203)
> at 
> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:233)
> at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148)
> at 
> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
> at 
> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:187)
> at 
> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:139)
> at hudson.model.ResourceController.execute(ResourceController.java:98)
> at hudson.model.Executor.run(Executor.java:404)
> Finished: FAILURE
>
>
>
> All the jobs do this (all pipeline jobs)
>
> I had this problem yesterday as well and restored from a snapshot and got 
> it going again... then I upgraded to jenkins 2.4 and updated all the 
> plugins.  Everything was great, but all of a sudden this error popped up 
> again.
>
>
>
> Any ideas? 
>
> thanks,
> phil
>
>

-- 
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/ef0c978f-a07e-43bf-b782-265840bb838d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


problem with jenkins not able to access git

2017-01-12 Thread Phil Swenson
I have a new jenkins server I'm trying to stand up 2.4 with all latest 
plugins... it works for a day and then starts giving me errors like this:

Started by timer
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to g...@bitbucket.org:myco/ace-esni-datastore.git
 > git config remote.origin.url g...@bitbucket.org:mygo/ace-esni-datastore.git 
 > # timeout=10
Fetching & pruning origin...
Fetching upstream changes from origin
 > git --version # timeout=10
using GIT_SSH to set credentials 
 > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/* 
 > --prune
FATAL: Failed to recompute children of ace-esni-datastore-test
hudson.plugins.git.GitException 
:
 Command "git fetch --tags --progress origin 
+refs/heads/*:refs/remotes/origin/* --prune" returned status code 128:
stdout: 
stderr: ssh: Could not resolve hostname bitbucket.org: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1772)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1516)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:67)
at 
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:318)
at 
jenkins.plugins.git.AbstractGitSCMSource.doRetrieve(AbstractGitSCMSource.java:203)
at 
jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:233)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:148)
at 
jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
at 
com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:187)
at 
com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:139)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Finished: FAILURE



All the jobs do this (all pipeline jobs)

I had this problem yesterday as well and restored from a snapshot and got 
it going again... then I upgraded to jenkins 2.4 and updated all the 
plugins.  Everything was great, but all of a sudden this error popped up 
again.



Any ideas? 

thanks,
phil

-- 
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/d03bc1a6-4ad1-4514-bd85-aa4bea47602e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: notifications on pipeline builds

2016-11-28 Thread Phil Swenson
thanks!  I also found this: 
 https://github.com/fabric8io/fabric8-pipeline-library

On Monday, November 28, 2016 at 3:34:34 PM UTC-7, Daniel Beck wrote:
>
>
> > On 28.11.2016, at 23:19, Phil Swenson > 
> wrote: 
> > 
> > is there a plugin I'm missing that manages this stuff across many jobs 
> given that this code is pure boiler-plate? 
> > 
>
>
> https://github.com/jenkinsci/workflow-cps-global-lib-plugin/blob/master/README.md#pipeline-shared-libraries
>  
>
>

-- 
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/2dba02b3-0db2-44ea-9d27-17e55e470414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


notifications on pipeline builds

2016-11-28 Thread Phil Swenson
I've been researching ways to do build complete/fail notifications for 
pipeline jobs


I'm surprised to only find solutions like this:  

https://jenkins.io/blog/2016/07/18/pipline-notifications/
https://bitbucket.org/snippets/fahl-design/koxKe

basically copy/paste code into all the jenkinsfiles across all the source 
repositories... 

is there a plugin I'm missing that manages this stuff across many jobs 
given that this code is pure boiler-plate?

thanks for any thoughts,
phil

-- 
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/4ee8299a-fb59-4769-8cca-d4a9e0467799%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 2 Pipeline script triggering itself. How to not poll for changes by git user Jenkins?

2016-09-14 Thread Phil Swenson
Hi, we have a Jenkins Pipeline job that changes a pom.xml file and checks 
in the change.  This of course causes the job to kick itself off again.

Is there a way to configure the job to ignore the jenkins user?

I tried this:

   git url: 'g...@bitbucket.org:myrepo.git', excludedUsers: 'jenkins', 
branch: branch, credentialsId: 'mycredstuff', variable: 'CREDENTIALS'

This didn't seem to work.

I see there is an issue opened against jenkins here:

https://issues.jenkins-ci.org/browse/JENKINS-36195


Is there a way to work around this issue?

Thanks
phil
 

-- 
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/db03411a-6510-47a1-a8d6-6e86b07f2c8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Detect the git repo for multi-branch pipeline

2016-09-13 Thread Phil Swenson
Thanks, worked great!

On Monday, September 12, 2016 at 12:10:09 AM UTC-6, Sverre Moe wrote:
>
> Use instead
> checkout scm
>
> It will checkout code from the repository
>
> fredag 9. september 2016 19.15.03 UTC+2 skrev Phil Swenson følgende:
>>
>> Hi, I have a multi branch pipeline configuration job working fine so 
>> far
>>
>> However every single repository has exactly the same jenkinsfile except 
>> for the git repo name.
>>
>> a typical jenkinsfile looks like:
>>
>> node('docker-slave') {
>> withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 
>> 'NEXUS', usernameVariable: 'NEXUS_USERNAME', passwordVariable: 
>> 'NEXUS_PASSWORD']]) {
>> git url: 'g...@bitbucket.org:myco/myprob.git', branch: 
>> env.branch_name, credentialsId: '08df8ab41de0', variable: 'CREDENTIALS'
>> stage 'Test'
>> sh 'env > env.txt'
>> sh 'cat env.txt'
>> sh 'make verify'
>> }
>> }
>>
>>
>> What I'd like to do is detect which git repo triggered the build so I don't 
>> have to hardcode it in the jenkinsfile.  
>>
>>
>>
>> So what I'd like is to change the git line to something like:
>>
>>
>>  git url: *env.GIT_URL*, branch: env.branch_name, credentialsId: 
>> '08df8ab41de0', variable: 'CREDENTIALS'
>>
>>
>>
>> This gets me closer to my eventual goal of storing my Jenkinsfile in a 
>> common location instead of having to copy it repo to repo and modify it repo 
>> to repo.
>>
>>
>> Any ideas?
>>
>>
>> Thanks
>>
>> phil
>>
>>

-- 
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/bbfd8d8e-5e54-4460-9d0b-490a8f73fada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Detect the git repo for multi-branch pipeline

2016-09-09 Thread Phil Swenson
Hi, I have a multi branch pipeline configuration job working fine so far

However every single repository has exactly the same jenkinsfile except for 
the git repo name.

a typical jenkinsfile looks like:

node('docker-slave') {
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 
'NEXUS', usernameVariable: 'NEXUS_USERNAME', passwordVariable: 
'NEXUS_PASSWORD']]) {
git url: 'g...@bitbucket.org:myco/myprob.git', branch: env.branch_name, 
credentialsId: '08df8ab41de0', variable: 'CREDENTIALS'
stage 'Test'
sh 'env > env.txt'
sh 'cat env.txt'
sh 'make verify'
}
}


What I'd like to do is detect which git repo triggered the build so I don't 
have to hardcode it in the jenkinsfile.  



So what I'd like is to change the git line to something like:


 git url: *env.GIT_URL*, branch: env.branch_name, credentialsId: 
'08df8ab41de0', variable: 'CREDENTIALS'



This gets me closer to my eventual goal of storing my Jenkinsfile in a common 
location instead of having to copy it repo to repo and modify it repo to repo.


Any ideas?


Thanks

phil

-- 
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/5654e752-80b3-4c83-a6e8-597f411b082e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Pipeline: how to access credentials variable??

2016-08-09 Thread Phil Swenson
I am using the Jenkins Pipeline Plugin, but having trouble getting my 
docker config credential to do what I need.


using code like:

node('docker-slave') { 

withCredentials([[$class: 'UsernamePasswordMultiBinding', 
credentialsId: 'NEXUS', usernameVariable: 'NEXUS_USERNAME', 
passwordVariable: 'NEXUS_PASSWORD'],
 [$class: 'FileBinding', credentialsId: 'DOCKER_REGISTRY', variable: 
'DOCKER_CONFIG_PATH']]) {
def dockerConfigPath = "$DOCKER_CONFIG_PATH"




the dockerConfigPath above does not get populated as I'd hope...



The variable DOCKER_CONFIG_PATH passes in the absolute path to the docker 
config file. I only need the directory path, NOT the file path. 

So if the DOCKER_CONFIG_PATH is something like 
/jenkins/tmp/393939kdk/config.json , I need to set the DOCKER_CONFIG 
environment variable to  /jenkins/tmp/393939kdk/

Given all the security stuff that's built in to the groovy script, I 
haven't been able to do this.

My question boils down to this:  how do I get access to the variable 
DOCKER_CONFIG_PATH that is pulled from the credentials.  I need to drop the 
filename at the end off the string.



Thanks
phil

-- 
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/03da6c39-62c7-4ce6-8a69-840b3f967f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


consolidated test reporting

2014-12-09 Thread phil swenson
When you have many jenkins jobs configured, the test reports get spread
among these jobs.

Is there a plugin that offers consolidated test reports?

thanks
phil

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


Re: best approach to automate/manage jenkins jobs?

2014-02-25 Thread phil swenson
thanks for the tip on jenkins job builder!  looks great


On Mon, Feb 24, 2014 at 7:10 AM, William Soula <
william.so...@drillinginfo.com> wrote:

>  Dang I tried to make sure I had read all the replies before I sent this
> same thing.
>
> Will
>
>
> On 02/22/14 22:19, Richard Bywater wrote:
>
> To add another (that I didn't see listed but apologies if it was), we use
> Jenkins Job Builder - http://ci.openstack.org/jenkins-job-builder/
>
>  Richard.
>
> On Saturday, February 22, 2014, phil swenson 
> wrote:
>
>> Hi, we have a large number of jenkins jobs and would like to automate and
>> version control their configuration.
>>
>>  From what I can tell, most people just manually config their jobs via
>> the UI.  Unless there are only a few very simple jobs, this leads to an
>> unmanageable mess.
>>
>>  I think the jobs should be coded in a DRY fashion, version controlled,
>> and deployed via a scripted system.
>>
>>  Here are the approaches I am aware of:
>>
>>  1) scripting via command line (jenkins cli)
>> 2) scripting via the rest web services
>> 3) chef cookbook http://community.opscode.com/cookbooks/jenkins
>>
>>  What are most people doing?
>> Any recommendations?
>>
>>  thanks
>> phil
>>  --
>> 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.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>  --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>  --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: best approach to automate/manage jenkins jobs?

2014-02-22 Thread phil swenson
thanks for the replies!

No chef stories?  interesting...


On Fri, Feb 21, 2014 at 9:20 AM, James Nord (jnord)  wrote:

>  Finger slipped - this time with some links.
>
>
>
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin
>
> [2]
> http://www.cloudbees.com/jenkins-enterprise-by-cloudbees-features-templates-plugin.cb
>
>
>
> *From:* James Nord (jnord)
> *Sent:* 21 February 2014 16:20
> *To:* jenkinsci-users
> *Subject:* RE: best approach to automate/manage jenkins jobs?
>
>
>
> Hi Phil,
>
>
>
> There is also the Job DSL plugin[1] and Cloudbees Templates[2].
>
> The DSL plugin (not used it) can store the DSL in source control - you can
> add the Cloudbees templates (done it) to an SCM like git and commit & push
> them after you make any changes.
>
>
>
> /James
>
>
>
> *From:* jenkinsci-users@googlegroups.com [
> mailto:jenkinsci-users@googlegroups.com ]
> *On Behalf Of *phil swenson
> *Sent:* 21 February 2014 15:15
> *To:* jenkinsci-users
> *Subject:* best approach to automate/manage jenkins jobs?
>
>
>
> Hi, we have a large number of jenkins jobs and would like to automate and
> version control their configuration.
>
>
>
> From what I can tell, most people just manually config their jobs via the
> UI.  Unless there are only a few very simple jobs, this leads to an
> unmanageable mess.
>
>
>
> I think the jobs should be coded in a DRY fashion, version controlled, and
> deployed via a scripted system.
>
>
>
> Here are the approaches I am aware of:
>
>
>
> 1) scripting via command line (jenkins cli)
>
> 2) scripting via the rest web services
>
> 3) chef cookbook http://community.opscode.com/cookbooks/jenkins
>
>
>
> What are most people doing?
>
> Any recommendations?
>
>
>
> thanks
>
> phil
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>--
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


best approach to automate/manage jenkins jobs?

2014-02-21 Thread phil swenson
Hi, we have a large number of jenkins jobs and would like to automate and
version control their configuration.

>From what I can tell, most people just manually config their jobs via the
UI.  Unless there are only a few very simple jobs, this leads to an
unmanageable mess.

I think the jobs should be coded in a DRY fashion, version controlled, and
deployed via a scripted system.

Here are the approaches I am aware of:

1) scripting via command line (jenkins cli)
2) scripting via the rest web services
3) chef cookbook http://community.opscode.com/cookbooks/jenkins

What are most people doing?
Any recommendations?

thanks
phil

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


better views for tests (plugin?)

2013-12-03 Thread phil swenson
We have our test suite sharded across 15 jenkins nodes because they take so
long to execute.  We have really struggled with getting a nice aggregate
view into all the test results.  Right now we have to drill into each job
and view the test results by job (no aggregation).

Does anyone have a suggestion on a plugin or an approach to give a nice
aggregation test result view?

thanks for any thoughts.

phil

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Join Plugin triggering job twice (using Git)

2013-06-11 Thread phil swenson
I'm using the Join Plugin with Git.  My join job config looks like:

git SVN polling job with config that looks like this:  http://cl.ly/PZfA

This mostly works, however, my Post Join build which waits for some
test jobs to finish gets called twice.  In the first call, the git
revision gets passed correctly.  In the second call, it is not passed
correctly (the revision would be the "latest" even if the calling jobs
were on a different revision)

Does anyone know why the Post Join build job would get called twice?

Perhaps the join plugin doesn't play well with the Trigger
Parameterized build on other projects?

Thanks for any thoughts

phil

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




GIT: triggering "promotion" job on multiple git test jobs succeeding

2013-06-06 Thread phil swenson
I want to set up a git "promotion" that runs on a "dev" branch and
promotes it from dev to master after a set of test jobs succeed.

So I would have 10 test jobs all run on the same git revision and when
ALL of them pass, I want the Promote job to promote the revision to
Master and push to origin.

I see that if I have a job trigger another job, the git revision
automatically gets passed on to the other job.  This is great

What I don't understand is
1) how to have all the git test jobs launch simultaneously on the same
revision (maybe set up another job that polls and launches the 10 test
jobs?)
2) how to make the promotion job execute on successful complete of ALL
upstream test jobs and make sure it is running on the same revision as
those test jobs

Thanks for 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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: force a a job run on every node

2012-10-03 Thread phil swenson
Just got it going.  I switched from using labels in the Configuration
Matrix to Individual Nodes and it works.

Not sure why, but I'm happy

On Wed, Oct 3, 2012 at 3:46 PM, Richard Lavoie  wrote:
> Matrix build should let you run a job multiple times and iirc there is 
> aplugin to add a node label axis (might be node label plugin)
>
>
>
> On 2012-10-03, at 17:26, phil swenson  wrote:
>
>> well, it's not running on every node.  I kick off a job and it only
>> goes to one node.
>>
>> so still stuck….
>>
>> On Wed, Oct 3, 2012 at 3:21 PM, phil swenson  wrote:
>>> trying a multi-configuration build now.  think this will give me what i want
>>>
>>> On Wed, Oct 3, 2012 at 2:54 PM, phil swenson  wrote:
>>>> I'm using gradle and periodically I need to run a specific task on
>>>> every node to clean out the cache.
>>>>
>>>> Is there a way I can force a job to run on all nodes?
>>>>
>>>> thanks


Re: force a a job run on every node

2012-10-03 Thread phil swenson
well, it's not running on every node.  I kick off a job and it only
goes to one node.

so still stuck….

On Wed, Oct 3, 2012 at 3:21 PM, phil swenson  wrote:
> trying a multi-configuration build now.  think this will give me what i want
>
> On Wed, Oct 3, 2012 at 2:54 PM, phil swenson  wrote:
>> I'm using gradle and periodically I need to run a specific task on
>> every node to clean out the cache.
>>
>> Is there a way I can force a job to run on all nodes?
>>
>> thanks


Re: force a a job run on every node

2012-10-03 Thread phil swenson
trying a multi-configuration build now.  think this will give me what i want

On Wed, Oct 3, 2012 at 2:54 PM, phil swenson  wrote:
> I'm using gradle and periodically I need to run a specific task on
> every node to clean out the cache.
>
> Is there a way I can force a job to run on all nodes?
>
> thanks


force a a job run on every node

2012-10-03 Thread phil swenson
I'm using gradle and periodically I need to run a specific task on
every node to clean out the cache.

Is there a way I can force a job to run on all nodes?

thanks


create a report based on stdout

2012-09-19 Thread phil swenson
I have a jenkins job (gradle dependency report) that outputs a report to
standard out.

I'd like to look for a pattern in standard out like "---dependency
report---" and save everything from that point on to a file.  Then I'd like
jenkins to save this text file as an artifact so we can capture history.

Any thoughts?  Guessing there is a plugin that does this, but couldn't find
it.

thanks
phil


Jenkins Windows Slave Service startup is flakey

2012-09-17 Thread phil swenson
We have troubles with Jenkins Slaves stopping working and having to
manually restart the windows service on every node (15 nodes).

Last week, windows update ran and all the servers got restarted.  The
Jenkins Slave service only started on 5 of the 15.  I had to ssh into each
and start the service.

Today all nodes are marked offline.

The services were not running, I suspect every machine was bounced by
windows update.


It appears that the jenkins service startup is flakey.   Even when I run it
manually I get stuff like this:

Administrator@DAEAP86187 ~
$ net start "Jenkins Slave"
The service is not responding to the control function.

More help is available by typing NET HELPMSG 2186.


Administrator@DAEAP86187 ~
$ net start "Jenkins Slave"
The Jenkins Slave service is starting.
The Jenkins Slave service was started successfully.


Ideas?  Suggestions?


Re: kill all jobs/empty the queue?

2012-08-23 Thread phil swenson
works great.  can't find anything for killing all the current jobs though.

But this helps, thanks!

On Wed, Aug 22, 2012 at 5:26 PM, Jesse Farinacci  wrote:

> Greetings,
>
> On Wed, Aug 22, 2012 at 7:21 PM, phil swenson 
> wrote:
> > When you have a bunch of jobs that are queued up and destined to fail
> (won't
> > compile for example)…. there should be a way to kill all the jobs and
> empty
> > the queue.
> > Is there a plugin for this?
>
> https://wiki.jenkins-ci.org/display/JENKINS/Purge+Build+Queue+Plugin
>
> -Jesse
>
> --
> There are 10 types of people in this world, those
> that can read binary and those that can not.
>


kill all jobs/empty the queue?

2012-08-22 Thread phil swenson
When you have a bunch of jobs that are queued up and destined to fail
(won't compile for example)…. there should be a way to kill all the jobs
and empty the queue.

Is there a plugin for this?

thanks
phil


restart broken build when certain string is detected?

2012-08-06 Thread phil swenson
I have a large Jenkins setup in Germany running against SVN in the US.
 Unfortunately, I get quite a few broken builds from SVN flaking out
(network drops I assume).  We've never had this problem with
everything being in the same datacenter.

I don't have a good solution to preventing the problem, so what I'd
like to do is rerun the job when a certain text string is detected
(org.tmatesoft.svn.core.SVNException: svn: E175002: REPORT
/svn/sag/!svn/vcc/default failed).

ideas?

thanks


Re: workspace deletion

2012-08-06 Thread phil swenson
The problem with this plugin is it cleans the workspace EVERY run.
This is simply a periodic maintenance task I want to run...

On Fri, Aug 3, 2012 at 10:48 AM, Stanley, Jason
 wrote:
> Install the "Workspace Cleanup Plugin"
>
> -Original Message-
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of phil swenson
> Sent: Friday, August 03, 2012 12:23 PM
> To: jenkinsci-users
> Subject: workspace deletion
>
> Is there an easy way to delete all the workspaces on all nodes?
>
> I looked at the CLI - doesn't appear to help.
>
> thanks
>


Re: workspace deletion

2012-08-03 Thread phil swenson
right but I have to do that on every node.  I have 15 of them and have
needed to do this several times….


On Fri, Aug 3, 2012 at 10:39 AM, David Weintraub  wrote:
> In Unix, you could do something like this:
>
> $ rm -rf $JENKIN_HOME/jobs/*/workspace/*
>
> Another possibility is:
>
> $ cd $JENKINS_HOME/jobs
> $ find .  -regex "\./[^/]+/workspace/[^/]+" -exec rm {} \;
>
> On Fri, Aug 3, 2012 at 12:23 PM, phil swenson  wrote:
>> Is there an easy way to delete all the workspaces on all nodes?
>>
>> I looked at the CLI - doesn't appear to help.
>>
>> thanks
>
>
>
> --
> David Weintraub
> qazw...@gmail.com


workspace deletion

2012-08-03 Thread phil swenson
Is there an easy way to delete all the workspaces on all nodes?

I looked at the CLI - doesn't appear to help.

thanks


forcing english locale

2012-08-02 Thread phil swenson
I have a jenkins server in germany but our team are pure english
speakers.  Jenkins is running on a windows server set to a system
locale of English.

Unfortunately, some of the Jenkins text is coming back in German.
Does anyone know why and how to force to English?

example, see "usage":  http://cl.ly/IVWK

Thanks
phil


Re: jenkins nodes keep losing connectivity - how to avoid manual restart of node service?

2012-07-30 Thread phil swenson
Just an FYI:  I manually installed the nodes as a service.  Jenkins
did not install the service (I've never been able to get that
functionality to work)



On Mon, Jul 30, 2012 at 9:02 AM, Mandeville, Rob  wrote:
> Just off the top of my head, so I could be horribly wrong:
>
> If your Virginia server is launching the German nodes, I could easily see 
> this happening.  If you launched your nodes from the German sites and simply 
> told them where to find the Virginia server, I wonder if it would respond to 
> a disconnect by trying to reconnect.
>
> Then again, you mention that you are restarting the Windows service, which 
> implies that you're already doing this.  If that is the case (that your 
> German Windows boxes are launching slaves as a service independently and 
> auto-connecting to Virginia), there might be a way in Windows to make a 
> service auto-restart.  That way, when you lose connectivity, Windows itself 
> will try to restart the slave node.
>
> --Rob
>
> -Original Message-
> From: jenkinsci-users@googlegroups.com 
> [mailto:jenkinsci-users@googlegroups.com] On Behalf Of phil swenson
> Sent: Monday, July 30, 2012 10:48 AM
> To: jenkinsci-users
> Subject: jenkins nodes keep losing connectivity - how to avoid manual restart 
> of node service?
>
> We have our Jenkins server running in virginia but all the nodes run in 
> germany.  Our nodes often lose connectivity briefly and the node gets stuck 
> "offline".  I have to manually go the the node and restart the windows 
> service.  This always works
>
> Does anyone have a remedy for this so I don't have to go thru this manual 
> step (we have 16 nodes, so it's a pain).??
>
> thanks
> phil
>
> The information in this message is for the intended recipient(s) only and may 
> be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
> protected from disclosure. If you are not the intended recipient(s), or an 
> employee or agent responsible for delivering this message to the intended 
> recipient, you are hereby notified that any use, dissemination, distribution 
> or copying of this communication is prohibited. If you have received this 
> communication in error, please notify Litle & Co. immediately by replying to 
> this message and then promptly deleting it and your reply permanently from 
> your computer.


jenkins nodes keep losing connectivity - how to avoid manual restart of node service?

2012-07-30 Thread phil swenson
We have our Jenkins server running in virginia but all the nodes run
in germany.  Our nodes often lose connectivity briefly and the node
gets stuck "offline".  I have to manually go the the node and restart
the windows service.  This always works….

Does anyone have a remedy for this so I don't have to go thru this
manual step (we have 16 nodes, so it's a pain).??

thanks
phil


best approach for aggregating test results across many nodes/jobs

2012-07-26 Thread phil swenson
We have many nodes and many jobs running tests.  What is the best way
to get all the test results in one report so we know our full status
in one view?

thanks


update job via config.xml post

2012-06-27 Thread phil swenson
I wrote some code that successfully updates Jenkins via an HTTP post
of config.xml to jenkins at
http://jenkinsserver/createItem?name=jobname

This is fine…. but what if I want to update the config.xml?

Thanks for any help!


Re: troubles with svn externals - auth error

2012-06-21 Thread phil swenson
I figured it out.  The external was on a different server.  Apparently
the svn client that jenkins uses isn't smart enough to apply the
credentials to a different server.  The native client/tortoise do
handle this case.
So I had to enter a second svn url for the external and then enter the
credentials.  Then the credentials get stored the the jenkins server.
I can then delete the second svn url from the job.

On Thu, Jun 21, 2012 at 4:15 AM, Brian Smith  wrote:
> It seems likely that to resolve the externals, svn needs credentials for the
> US instance.
>
> You may be able to resolve this by logging into the o/s as the user which
> does the checkout, and doing any checkout from the US svn.
>
> You should be prompted to enter credentials, and svn will cache them in
> ~/.subversion/auth/svn.simple.
>
> If you look in this location now you will probably see a file containing
> credentials for the Germany instance, and after having done a checkout from
> the US instance you should see an additional file.
>
> Good luck
>
> Brian
>
>
> On 21 June 2012 10:55, phil swenson  wrote:
>>
>> I guess I didn't explain very well.  I am setting up a job on a new
>> Jenkins server that points to a particular SVN Url.  This SVN repo has
>> several externals.  The job runs on one specific node that is in
>> Germany, but the Jenkins Server and the SVN repo are both in the US
>> (not sure if that could matter, but they are in different windows
>> domains).
>>
>> When the job executes, it checks out code from SVN and is successful
>> the code in the main repo, but fails to sync the externals "(Caused
>> by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No
>> >> credential to try. Authentication failed)"
>>
>> We have a similar setup (all US) that works fine.
>>
>> Does that explain the situation any better?
>>
>> thanks
>> phil
>>
>>
>>
>> On Thu, Jun 21, 2012 at 2:03 AM, Neil Bird  wrote:
>> > Around about 21/06/12 00:36, phil swenson typed ...
>> >
>> >> I am setting up a new jenkins server and am running into a problem.
>> >> when synching my svn repo I get this error on the externals:
>> >>
>> >> Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No
>> >> credential to try. Authentication failed
>> >
>> >
>> >  What exactly are you doing?
>> >
>> >  I had a similar issue on our server when using websvn+https with a repo
>> > that has externals.  The access to the repo. was authenticated as normal
>> > from the client, but websvn then uses the command line on the server to
>> > do
>> > some things (like deliver ZIPs) and *that* was failing when trying to
>> > check
>> > out externals (access to the repo itself is direct via file:, but the
>> > externals were being fetched “properly” with https: URLs).
>> >
>> >  I had to add access (and include certificate acceptance) to the
>> > server's
>> > user.
>> >
>> >  Or it was something along those lines, it was a while ago.
>> >
>> > --
>> > [neil@fnx ~]# rm -f .signature
>> > [neil@fnx ~]# ls -l .signature
>> > ls: .signature: No such file or directory
>> > [neil@fnx ~]# exit
>> >
>> >
>
>


Re: troubles with svn externals - auth error

2012-06-21 Thread phil swenson
I guess I didn't explain very well.  I am setting up a job on a new
Jenkins server that points to a particular SVN Url.  This SVN repo has
several externals.  The job runs on one specific node that is in
Germany, but the Jenkins Server and the SVN repo are both in the US
(not sure if that could matter, but they are in different windows
domains).

When the job executes, it checks out code from SVN and is successful
the code in the main repo, but fails to sync the externals "(Caused
by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No
>> credential to try. Authentication failed)"

We have a similar setup (all US) that works fine.

Does that explain the situation any better?

thanks
phil



On Thu, Jun 21, 2012 at 2:03 AM, Neil Bird  wrote:
> Around about 21/06/12 00:36, phil swenson typed ...
>
>> I am setting up a new jenkins server and am running into a problem.
>> when synching my svn repo I get this error on the externals:
>>
>> Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No
>> credential to try. Authentication failed
>
>
>  What exactly are you doing?
>
>  I had a similar issue on our server when using websvn+https with a repo
> that has externals.  The access to the repo. was authenticated as normal
> from the client, but websvn then uses the command line on the server to do
> some things (like deliver ZIPs) and *that* was failing when trying to check
> out externals (access to the repo itself is direct via file:, but the
> externals were being fetched “properly” with https: URLs).
>
>  I had to add access (and include certificate acceptance) to the server's
> user.
>
>  Or it was something along those lines, it was a while ago.
>
> --
> [neil@fnx ~]# rm -f .signature
> [neil@fnx ~]# ls -l .signature
> ls: .signature: No such file or directory
> [neil@fnx ~]# exit
>
>


troubles with svn externals - auth error

2012-06-20 Thread phil swenson
I am setting up a new jenkins server and am running into a problem.
when synching my svn repo I get this error on the externals:

Caused by: org.tmatesoft.svn.core.SVNCancelException: svn: E200015: No
credential to try. Authentication failed
at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:37)
at 
org.tmatesoft.svn.core.internal.wc.SVNErrorManager.cancel(SVNErrorManager.java:32)
at 
org.tmatesoft.svn.core.internal.wc.DefaultSVNAuthenticationManager.getFirstAuthentication(DefaultSVNAuthenticationManager.java:185)
at 
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection._request(HTTPConnection.java:598)
at 
org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
... 40 more
Caused by: svn: E200015: No credential to try. Authentication failed
at 
org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:208)
at 
org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:154)
at 
org.tmatesoft.svn.core.SVNErrorMessage.create(SVNErrorMessage.java:97)
... 45 more


The credentials used for the main repo should work everywhere (they do
on other Jenkins instances).

Any ideas?

And what is the proper procedure to update credentials?

thanks


Re: troubles with svn on jenkins slave

2012-06-18 Thread phil swenson
an upgrade to the svn plugin solved the prob

On Mon, Jun 18, 2012 at 2:36 PM, phil swenson  wrote:
> I tried to bring my windows 2008 server slave online and get this in
> the build console output:
>
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> hudson.scm.SubversionSCM
>   at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:758)
>
> ideas?


Re: managing many jobs/nodes - better way than UI

2012-06-04 Thread phil swenson
if i want to make a change to every job, I have to do it 50 times.

if i want to make a change to every node, I have to do it 20 times

On Mon, Jun 4, 2012 at 4:03 PM, Les Mikesell  wrote:
> On Mon, Jun 4, 2012 at 3:51 PM, phil swenson  wrote:
>> I am finding it impossible to manage all my jenkins nodes and jobs via
>> the UI.  We have 20 nodes and 50 jobs.
>>
>> Suggestions on the best way to deal with this?
>
> Usually they mostly take care of themselves. What is it that is hard
> to manage? You can group the jobs into views to reduce the clutter and
> make it easier to see related jobs.
>
> --
>   Les Mikesell
>     lesmikes...@gmail.com


managing many jobs/nodes - better way than UI

2012-06-04 Thread phil swenson
I am finding it impossible to manage all my jenkins nodes and jobs via
the UI.  We have 20 nodes and 50 jobs.

Suggestions on the best way to deal with this?


jdk install via jenkins doesn't work???

2012-06-04 Thread phil swenson
I configured Jenkins to be able to install JDKs and get this error
when the job kicks off.  Ideas?

Building remotely on rdvmden20
Installing D:/jenkins/work/tools/jdk6/jdk.exe
[jdk6] $ D:/jenkins/work/tools/jdk6/jdk.exe /s '/v/qn
REBOOT=ReallySuppress INSTALLDIR=\"D:\jenkins\work\tools\jdk6\" /L
\"D:/jenkins/work/tools/jdk6/jdk.exe.install.log\"'
java.io.IOException: Cannot run program
"D:/jenkins/work/tools/jdk6/jdk.exe" (in directory
"D:\jenkins\work\tools\jdk6"): CreateProcess error=87, The parameter
is incorrect
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.(Proc.java:244)
at hudson.Proc$LocalProc.(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:707)
at hudson.Launcher$ProcStarter.start(Launcher.java:338)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:932)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:899)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:60)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=87, The parameter
is incorrect
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 17 more
Retrying after 10 seconds


Re: configuring gradle plugin with jenkins

2012-06-04 Thread phil swenson
think I got it.  You configured JDKS under the manage jenkins and
select the JDK per job.  I'll see if the auto-install stuff works,
co-worker tells me that it doesn't.

On Mon, Jun 4, 2012 at 12:13 PM, phil swenson  wrote:
> We've had a lot of trouble getting Jenkins to recognize the correct
> JVM when using the gradle plugin.
> What is the correct approach for getting it to always use the JDK 1.6?
>
> The JDK drop down seems to have no effect (what populates the drop
> down anyway?).  Setting JAVA_HOME on the box itself isn't working.
>
> thanks for any thoughts
> phil


configuring gradle plugin with jenkins

2012-06-04 Thread phil swenson
We've had a lot of trouble getting Jenkins to recognize the correct
JVM when using the gradle plugin.
What is the correct approach for getting it to always use the JDK 1.6?

The JDK drop down seems to have no effect (what populates the drop
down anyway?).  Setting JAVA_HOME on the box itself isn't working.

thanks for any thoughts
phil