ec2-plugin: now really slow on first build

2020-05-28 Thread James Green
Hi,

I'm aware that a recent ec2-plugin upgrade has led us to switch to the
"recommended" ssh handshake protocol.

However, my team are now complaining that new EC2 instances are taking
minutes to get started whereas before a couple of weeks ago it was
bearable. Subsequent builds by the same agent instance are snappy.

Jenkins agent logs do show a wait for the ec2 console to print the
fingerprints ahead of connecting. What is not clear, is what I can do to
speed up the provisioning time, other than have constantly running ec2
instances.

Can anyone point me in the right direction?

Thanks,

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%2BaxV_-Wrte8mJ9p0fof_HfA0G6Qtgch7uX3TwfSdXTQQRg%40mail.gmail.com.


Re: Delay agent execution for auto-updates at boot

2019-09-04 Thread James Green
Hi Toni,

Looks like we are not alone:
https://issues.jenkins-ci.org/browse/JENKINS-43771 (see linked issue which
is indeed the same).

I ended up adding a vanilla Amazon Linux 2 AMI as an agent yesterday to try
things. It failed because git wasn't installed. I added a user data script
to install this but then java wasn't installed. So I added this too and the
agent log stalled entirely. Not sure what I did wrong and have not had a
chance to investigate further. Your comments well well be relevant - the
documentation inline did not make clear the difference between user data
and init script when used on an Amazon Linux 2 AMI (there is cloud-init).

If I get further I will update this thread.

James


On Tue, 3 Sep 2019 at 09:35, Toni Van de Voorde  wrote:

> Hey James,
>
> I had the same issue without understanding what happened. Meanwhile I also
> understand that it's due to the automatic updates kicking in. I solved it
> by removing the JDK from that AMI and let the master install it.
>
> You could also update your AMI and not allow auto upgrades, or you could
> add in the "init-script" of the cloud configuration in jenkins master to
> perform an upgrade. From what I see in the code (
> https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/ssh/EC2UnixLauncher.java#L184)
> it should wait for the upgrade to be finished.
>
> Hope this helps
>
> Cheers
>
> On Tuesday, September 3, 2019 at 10:26:38 AM UTC+2, James Green wrote:
>>
>> So our builds failed again yesterday due to this automatic update kicking
>> in. I checked, there was indeed a JDK security update so no complaints, but
>> I need a better system of updating Jenkins.
>>
>> Given Packer can search for and filter down AMIs, I thought the EC2
>> plugin should be able to, too. Solves our issue. Ticket if anyone is
>> interested: https://issues.jenkins-ci.org/browse/JENKINS-59180
>>
>>
>> On Thu, 29 Aug 2019 at 10:17, James Green  wrote:
>>
>>> I finally used Packer to build an AMI based on Amazon Linux 2 to act as
>>> as agent. Yesterday, the builds began failing with a Java stack trace.
>>>
>>> Turns out the EC2 instance starts, and in parallel the Jenkins agent
>>> begins and an auto-upgrade of openjdk kicked off. Further instructions
>>> failed. Rebuild the AMI and the new agent worked a treat.
>>>
>>> Is there a way of avoiding this problem by preventing Jenkins from
>>> launching the agent until the boot steps are complete? I cannot be the
>>> first to encounter this issue :-)
>>>
>>> Thanks,
>>>
>>> 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/edc2e575-ffa3-4865-9e78-9a0466497e67%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/edc2e575-ffa3-4865-9e78-9a0466497e67%40googlegroups.com?utm_medium=email_source=footer>
> .
>

-- 
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%2BazHCG%3DL0AQ040W9oYwgVz-f6qW4g6ZGO8dabydSjAuYjA%40mail.gmail.com.


Re: Delay agent execution for auto-updates at boot

2019-09-03 Thread James Green
So our builds failed again yesterday due to this automatic update kicking
in. I checked, there was indeed a JDK security update so no complaints, but
I need a better system of updating Jenkins.

Given Packer can search for and filter down AMIs, I thought the EC2 plugin
should be able to, too. Solves our issue. Ticket if anyone is interested:
https://issues.jenkins-ci.org/browse/JENKINS-59180


On Thu, 29 Aug 2019 at 10:17, James Green  wrote:

> I finally used Packer to build an AMI based on Amazon Linux 2 to act as as
> agent. Yesterday, the builds began failing with a Java stack trace.
>
> Turns out the EC2 instance starts, and in parallel the Jenkins agent
> begins and an auto-upgrade of openjdk kicked off. Further instructions
> failed. Rebuild the AMI and the new agent worked a treat.
>
> Is there a way of avoiding this problem by preventing Jenkins from
> launching the agent until the boot steps are complete? I cannot be the
> first to encounter this issue :-)
>
> Thanks,
>
> 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%2BayeuwT7N5pAuRy0ORsw4oCHk0nBhT5O1Ktvb-Ng_4WvWQ%40mail.gmail.com.


Delay agent execution for auto-updates at boot

2019-08-29 Thread James Green
I finally used Packer to build an AMI based on Amazon Linux 2 to act as as
agent. Yesterday, the builds began failing with a Java stack trace.

Turns out the EC2 instance starts, and in parallel the Jenkins agent begins
and an auto-upgrade of openjdk kicked off. Further instructions failed.
Rebuild the AMI and the new agent worked a treat.

Is there a way of avoiding this problem by preventing Jenkins from
launching the agent until the boot steps are complete? I cannot be the
first to encounter this issue :-)

Thanks,

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%2BazGdqPwmrt3U%3Ds7xgXA0v%3DoF3ygv8nxv5DGkMJCc1rCCg%40mail.gmail.com.


Re: Run script before build is deleted?

2018-10-24 Thread James Green
I filed this as https://issues.jenkins-ci.org/browse/JENKINS-54164


On Sat, 13 Oct 2018 at 16:32, Slide  wrote:

> I think James is looking for something that allows him to run a script or
> something before a build is deleted from Jenkins, NOT during a build run.
> It would have to be something based on Run listener [1]. I am not aware of
> anything off the top of my head, but you could search the jenkinsci org on
> GitHub for RunListener and see if anything implements onDeleted.
>
> 1 - https://javadoc.jenkins-ci.org/hudson/model/listeners/RunListener.html
>
> On Sat, Oct 13, 2018, 07:36 Jan Monterrubio 
> wrote:
>
>> Would the Post Build actions (execute shell) not execute in the right
>> spot?
>>
>>
>> https://www.oreilly.com/library/view/jenkins-the-definitive/9781449311155/ch05s07.html
>>
>>
>> On Fri, Oct 12, 2018 at 09:39 James Green 
>> wrote:
>>
>>> How so? I need this to run as the build gets expired but as it completes.
>>>
>>>
>>> On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio 
>>> wrote:
>>>
>>>> As a post build script, probably.
>>>>
>>>> On Thu, Oct 11, 2018 at 11:35 James Green 
>>>> wrote:
>>>>
>>>>> Is this possible?
>>>>>
>>>>> What I would like to do: examine the build and discover if there are
>>>>> any docker images. If there are, delete them from the registry first.
>>>>>
>>>>> Is this feasible?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> 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%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com?utm_medium=email_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/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com?utm_medium=email_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/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com?utm_medium=email_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/CADgiF9JQuDoNxcbxCj4bAEJrnuRDUC_k6BM%3DunV2L2_0BT_hOA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JQuDoNxcbxCj4bAEJrnuRDUC_k6BM%3DunV2L2_0BT_hOA%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because y

Re: Run script before build is deleted?

2018-10-12 Thread James Green
How so? I need this to run as the build gets expired but as it completes.


On Thu, 11 Oct 2018 at 17:58, Jan Monterrubio 
wrote:

> As a post build script, probably.
>
> On Thu, Oct 11, 2018 at 11:35 James Green 
> wrote:
>
>> Is this possible?
>>
>> What I would like to do: examine the build and discover if there are any
>> docker images. If there are, delete them from the registry first.
>>
>> Is this feasible?
>>
>> Thanks,
>>
>> 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%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAMH6%2Bazo%2Bk16XFda7qxzrcfeZvh0_4iKqFK8vK3bLfapN1eszQ%40mail.gmail.com?utm_medium=email_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/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9%2BS2dT1YfUzo%2Bsd%2BPg%2BS9yCDJHXvGUR19CK3ciSHDq-HA%40mail.gmail.com?utm_medium=email_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/CAMH6%2BawDi3Ynfc5Fw0tk50JFqown0MU6v%3DurKczUC1FAwGZcWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Run script before build is deleted?

2018-10-11 Thread James Green
Is this possible?

What I would like to do: examine the build and discover if there are any
docker images. If there are, delete them from the registry first.

Is this feasible?

Thanks,

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


Advanced / Deprecated plugins

2018-01-04 Thread James Green
Within the "Sample Step" drop-down we have an end listing Advanced /
Deprecated plugins.

How can I tell which ones are Advanced, and which are Deprecated?

I am, in particular, very confused concerning our use of docker private
registries which I'm reading we may be using the wrong plugin for.

Thanks,

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


Pipeline options incorrectly documented?

2018-01-02 Thread James Green
Ref: https://jenkins.io/doc/book/pipeline/syntax/

I've just added `timestamps()` to my Jenkinsfile:

options {
buildDiscarder(logRotator(numToKeepStr: '20'))
timestamps()
}

And the build fails immedidately:

WorkflowScript: 5: Invalid option type "timestamps". Valid option types:
[authorizationMatrix, buildDiscarder, catchError, disableConcurrentBuilds,
dockerNode, overrideIndexTriggers, retry, script, skipDefaultCheckout,
skipStagesAfterUnstable, timeout, waitUntil, withContext, withCredentials,
withEnv, ws] @ line 5, column 9.
   timestamps()
   ^

The documentation's list of options and the accepted options seem to differ
quite a bit and there's nothing noted in the Changelog about this.

What gives?

Thanks,

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%2Bax8u0XOJLOSm3%2BR%3DygGjTFv3M9%2BBATba5gwBjzf5c6QLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [multibranch] [bitbucket] Code push tells Jenkins, Jenkins doesn't build anything

2017-12-22 Thread James Green
Solved!

We had been using the "BitBucket Plugin" to receive the web hook
notifications from BitBucket.org and expected this to continue to work.

https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#bitbucket
mentions Web Hook Registration yet we saw no such option (else this may
have provided a hint).

Then we found a Q describing the issue and declaring the URL in here:
https://support.cloudbees.com/hc/en-us/articles/11553051-How-to-Trigger-Multibranch-Jobs-from-BitBucket-Server-

If only the first article had that URL... If only the job creation screen
mentioned the need for a new web hook... Oh well!

James


On 22 December 2017 at 09:27, James Green <james.mk.gr...@gmail.com> wrote:

> I've just converted a Pipeline job that built every time a change was
> pushed into BitBucket to the equivalent as a multibranch project.
>
> Trouble is, pushes no longer trigger builds. BitBucket is still getting a
> 200 OK from the webhook when it hits Jenkins, but nothing else happens.
>
> On inspection, the multibranch project created a `master` child job which
> has an option "Build when a change is pushed to BitBucket" but this is NOT
> checked, and the child job lacks any save button with which to change
> things. When I created the project the master branch built just fine first
> time.
>
> This appears to be a bug but I might expect more complaints when I search
> for it. I wonder if it is some requirement of the user that connects to
> BitBucket - like it doesn't have sufficient rights for something not
> involving cloning?
>
> Thoughts?
>
> 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%2BawnVM4EJUwB57Mf__VdaJimQX9Mnn5_oF5ZbK_71Gf%3D1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[multibranch] [bitbucket] Code push tells Jenkins, Jenkins doesn't build anything

2017-12-22 Thread James Green
I've just converted a Pipeline job that built every time a change was
pushed into BitBucket to the equivalent as a multibranch project.

Trouble is, pushes no longer trigger builds. BitBucket is still getting a
200 OK from the webhook when it hits Jenkins, but nothing else happens.

On inspection, the multibranch project created a `master` child job which
has an option "Build when a change is pushed to BitBucket" but this is NOT
checked, and the child job lacks any save button with which to change
things. When I created the project the master branch built just fine first
time.

This appears to be a bug but I might expect more complaints when I search
for it. I wonder if it is some requirement of the user that connects to
BitBucket - like it doesn't have sufficient rights for something not
involving cloning?

Thoughts?

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


Reliable Job Name?

2017-12-21 Thread James Green
I have a multibranch job inside a folder. It's JOB_BASE_NAME is the name of
the git branch name, not the job's base name.

I'm slightly bemused that there appears no API means of acquiring such
information, at least not from the Google Fu I have so far.

Any ideas?

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


Re: jenkins-jira-plugin: Failed to authenticate with JIRA

2017-07-26 Thread James Green
The Wiki page says:

"Starting from this plugin version 2.0, it is using JIRA REST API to
communicate instead of JIRA RPC SOAP which has been deprecated and removed
since JIRA v.7.0"

So that's the SOAP interface dropped since version 2. Inside JIRA I think
it's had a REST interface since around version 4. There's no suggestion
that the plugin should not work against the REST interface in JIRA-6.

My copy of IntelliJ is working against our JIRA-6 instance via the Tasks
component without trouble - which I strongly suspect is also using the REST
interface.

James


On 25 July 2017 at 13:48, Alex Johnson <alexjo5...@gmail.com> wrote:

> Hello James,
>
> Glancing at the plugin wiki page
> <https://wiki.jenkins.io/display/JENKINS/JIRA+Plugin> it seems you are
> correct - you need Jira v7.0 to use the latest version of the plugin.
>
> Installing version 1.41 (latest pre-2.0) could resolve this problem
> http://updates.jenkins-ci.org/download/plugins/jira/
> <http://updates.jenkins-ci.org/download/plugins/jira/1.41/jira.hpi>, but
> I'd suggest upgrading Jira to 7.0 if possible to use the latest version of
> the plugin.
>
> br,
> -Alex
>
> On Monday, July 24, 2017 at 4:02:42 AM UTC-4, James Green wrote:
>>
>> Got the latest LTS version of Jenkins with current jenkins-jira-plugin
>> and a JIRA 6.4 installation.
>>
>> I can log in to JIRA without issue and in the configuration I can see
>> that the Remote API is indeed switched on.
>>
>> When I do a wget from our Jenkins box against JIRA I get told I'm not
>> authenticated - perfect.
>>
>> When I configure the JIRA plugin within Jenkins using my credentials I
>> hit "Validate" and get told Failed to authenticate.
>>
>> Checked the Jenkins logs and I find a stack trace. An HTTP response has
>> been received - HTML output with markup that I've failed to authenticate.
>> The stack trace itself says it expected a JSON response!
>>
>> I'm sure this must be pretty fundamental. Does it somehow require a more
>> recent version of JIRA or something that I've not spotted?
>>
>> Thanks,
>>
>> 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/d4e39397-8d99-4065-a686-a1659ebb3992%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/d4e39397-8d99-4065-a686-a1659ebb3992%40googlegroups.com?utm_medium=email_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/CAMH6%2BawjwbNcbZisv0XYxGHZXq7MKsJP5UVGiT%2B0OfSqN_zuwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


jenkins-jira-plugin: Failed to authenticate with JIRA

2017-07-24 Thread James Green
Got the latest LTS version of Jenkins with current jenkins-jira-plugin and
a JIRA 6.4 installation.

I can log in to JIRA without issue and in the configuration I can see that
the Remote API is indeed switched on.

When I do a wget from our Jenkins box against JIRA I get told I'm not
authenticated - perfect.

When I configure the JIRA plugin within Jenkins using my credentials I hit
"Validate" and get told Failed to authenticate.

Checked the Jenkins logs and I find a stack trace. An HTTP response has
been received - HTML output with markup that I've failed to authenticate.
The stack trace itself says it expected a JSON response!

I'm sure this must be pretty fundamental. Does it somehow require a more
recent version of JIRA or something that I've not spotted?

Thanks,

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


Re: Discard old build artifacts?

2017-07-21 Thread James Green
Hi,

Sorry but how does this retain the logs forever but discard the artifacts?
Reading the example I would expect the logs to be rotated and the artifacts
to be maintained which is the opposite.

Where is the documentation for the other options?

Thanks,

James


On 21 July 2017 at 07:27, Breitbach, Steffen <steffen.breitb...@cgm.com>
wrote:

> My bad. So it's actually a little different:
>
>
>
> https://github.com/jenkinsci/pipeline-model-definition-
> plugin/wiki/Pipeline-properties
>
>
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@
> googlegroups.com] *On Behalf Of *Dirk Heinrichs
> *Sent:* Friday, July 21, 2017 8:09 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Discard old build artifacts?
>
>
>
> On 21.07.2017 08:05, Breitbach, Steffen wrote:
>
> I think the Log Rotator Plugin does what you're looking for. Check out
> https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_jenkinsci_job-2Ddsl-2Dplugin_wiki_The-2DConfigure-2DBlock=DwMFaQ=ZgVRmm3mf2P1-XDAyDsu4A=TsKycyisPP_6FVCeETRooIdY_8hdAsXoxwbvHso_TaI=wv4kA7CLSuSU86ow6ZNtdXLiH2ZiLB3rvP5pGf65fww=A_awz9VnJjxt4_7rijVpMLyb_NAwDE_r9bzK5AljQfc=>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@
> googlegroups.com <jenkinsci-users@googlegroups.com>] *On Behalf Of *James
> Green
> *Subject:* Discard old build artifacts?
>
>
>
> But I'm generating gigs of artifacts that I don't need. Is there a way of
> discarding these within a Jenkinsfile?
>
>
> JobDSL != Jenkinsfile
>
> Bye...
>
> Dirk
>
> --
> *Dirk Heinrichs*
> Senior Systems Engineer, Delivery Pipeline
> OpenTextTM Discovery | Recommind
> *Email*: dhein...@opentext.com
> *Website*: www.recommind.de
>
> Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
>
> Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon
> Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer HRB
> 10646
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet.
>
> --
> 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/058618bc-f884-fff1-d3bd-e0703e0b7968%40opentext.com
> <https://groups.google.com/d/msgid/jenkinsci-users/058618bc-f884-fff1-d3bd-e0703e0b7968%40opentext.com?utm_medium=email_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/5E63738AB9896844AF1601A1D09467
> 7317A71A45%40SMBXKO1.cgm.ag
> <https://groups.google.com/d/msgid/jenkinsci-users/5E63738AB9896844AF1601A1D094677317A71A45%40SMBXKO1.cgm.ag?utm_medium=email_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/CAMH6%2Baz2B1ki7R%3DXxr%3DCTTiK5qTgHKnwD5dUT93b%2By-YkB7sCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Discard old build artifacts?

2017-07-20 Thread James Green
I don't want to remove the entire job - having the logs of what the SCM
commit was and build output logs is really useful alongside the Jenkins
build number.

But I'm generating gigs of artifacts that I don't need. Is there a way of
discarding these within a Jenkinsfile?

Thanks,

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%2BawDBdLSg4x7k4BhF--sFDHMMxx%2Ba%2BNyx79a-qkzwgZC8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Per Job Dashboard: Add information from Jenkinsfile?

2017-05-12 Thread James Green
Is this possible?

I have just adapted a Jenkinsfile to set the job description based on some
dynamic values.

But what I would really like it to add entries into a simple map of
key=value pairs that can then be rendered on the job screen.

I think I saw something a little like this in the enterprise edition, not
sure if something exists for the OSS version?

Thanks,

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


file-operations-plugin: silent failure downloading from Nexus

2017-04-28 Thread James Green
This plugin works fine downloading binaries from various web sites, but
give it a file to download from Nexus and it fails instantly with no error:

[Pipeline] step

File Download Operation:
Started downloading file from
https://repository.jboss.org/asm/1.5.3/lib/asm-attrs.jar
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] End of Pipeline
ERROR: File Operations failed.
Finished: FAILURE

I would post this bug into JIRA but that is not possible:

The value 'file-operations-plugin' does not exist for the field 'component'.

Don't suppose anyone here can suggest anything?

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


Dump current JENKINS_OPTS?

2016-07-01 Thread James Green
Can't immediately see a way of doing this. I've set a new `sessionTimeout`
and I'd like to confirm that Jenkins is honouring it.

Without wishing to wait a lengthy period, is there a web console page to
dump Jenkins' current configuration?

Thanks,

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%2Baw%3DRBR4ccLv5NVcMAW%2BEavHk3fYF2w%3D5oiPdFFZvORmyw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Tools installation doesn't happen

2016-01-29 Thread James Green
My job wants to launch a Docker container. I've gone into System
Configuration and asked it to install the latest Docker CLI from docker.io

When my job runs, it fails telling me it cannot find the 'docker' binary in
the path. There appears to be no attempt to install the tool automatically.

Surely it should have installed this for me? I've even tried restarting
Jenkins...

Any ideas?

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


Re: Tools installation doesn't happen

2016-01-29 Thread James Green
Does this actually run on a master? I ask as the documentation describes
how it's useful on slaves, but does NOT state that it is exclusively for
slaves...

On 29 January 2016 at 11:08, James Green <james.mk.gr...@gmail.com> wrote:

> My job wants to launch a Docker container. I've gone into System
> Configuration and asked it to install the latest Docker CLI from docker.io
>
> When my job runs, it fails telling me it cannot find the 'docker' binary
> in the path. There appears to be no attempt to install the tool
> automatically.
>
> Surely it should have installed this for me? I've even tried restarting
> Jenkins...
>
> Any ideas?
>
> 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%2BaxMiJO8Xt_r61VV%3DJL%2BdN9XesAScDZkxuX4G0ss8yihzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Promoting a build with $POM_VERSION?

2015-10-28 Thread James Green
We have a Maven job to which I have added a "Promote builds when" clause
allowing someone to pick a build and promote it.

This promotion triggers a deployment job. This deployment job appears
pretty naive. Is there any way of getting the Maven project version into
here? From my limited understanding, by the time the promotion occurs the
$POM_VERSION has already disappeared as it is not executed at the point of
build.

Thanks,

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


Re: Jenkins and GitHub Enterprise "Forking"

2015-09-23 Thread James Green
This would require Jenkins and the SCM to share permissions, wouldn't it?
For Jenkins to be configured to "follow forks" it needs permission to
access any other user's repositories as they may be a fork of the
originally monitored repository?

Doesn't Bamboo do this? Or did I misread this feature?

On 22 September 2015 at 14:38, Nigel Magnay  wrote:

>
>> Don't use forks, use branches.
>>
>> Forks are good to allow people to contribute w/o being members of a
>> projects (i.o.w. w/o granting them push permission). This is not the case
>> for GH Enterprise, where all your devs are members of your project, aren't
>> they?
>>
>>
> Access control to the repository isn't the only use-case.
>
> Fork + Building / Validating at PR time​
> ​
> ​ is useful​, but because the forks themselves are invisible to Jenkins,
> you loose any of the benefits it might be delivering until that point.
>
>
> For example: we have Jenkins set up that when a commit occurs, one of the
> things spat out is a docker image. QA then has an easy 1-line command where
> they can start testing the feature.
>
> But we need to maintain agility. We don't want to wait until it's
> 'finished' to start doing exploratory testing. So we want Jenkins to build
> on any branch, in any fork.
>
> We tried doing this with a branch-only model with
> gerr
> ​it - but this quickly becomes unmanageable (you're back to a centralised
> repository model -- who namespaces the branches?; who is allowed to rebase
> the patch series? How does >1 developer collaborate on a feature that may
> never be committed?). No doubt process can probably find answers to that,
> but I find the github UI / model a lot more palatable.
>
> ​
> ​
> ​
> ​
> ​
> ​I think what's needed is for something like the multi-branch plugin that
> also supports multi-fork.​
>
>
> ​Best you can probably manage at the moment is to duplicate the projects.​
>
>
>
>
>
> --
> 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/CAPYP83Q%3DJP73Ap0agMre6Wri-9jHbW9EiKCJtUTASi3GbP5yAw%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/CAMH6%2BazvHkmU4qNm-26znyA9fZmXC_dqTWnng%3D91hvcF5kB_OQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins, Web application server and Nexus

2015-08-21 Thread James Green
The only point I'd make is you don't really want Jenkins to know about
your servers individually to deploy to them. Perhaps for staging purposes,
but given the elasticity in the world of production machines you probably
want to pull using a script on your production instances from your repo
manager like Nexus. Puppet can do this. Another option is to container(ise)
your builds and then use orchestration onwards.

The key is that Jenkins probably doesn't know about production boxes. There
might be many, and they may well fluctuate.


On 21 August 2015 at 06:45, Jeff predato...@gmail.com wrote:

 You can do a lot with Jenkins so you dont need GoCD.  We are using GoCD
 because I think it does  better job at visualizing and managing deployment
 pipelines (post-build) and provides idempotent revisions which we use as a
 rollback solution.  In other words, pipelines are versioned and if done
 right you can go back in time and rerun any step with the exact settings
 used previously.

 if you don't need or care about that and the complexity is not too crazy,
 stick with Jenkins.  What Jenkins does very well is the implicit Maven
 build dependences and all the other tool and  plug in integrations to get
 your initial build artifacts, source/coverage analysis such as SonarQube
 etc. and unit test reporting.

 Good luck!
 On Aug 20, 2015 8:40 PM, Martin lingv...@gmail.com wrote:

 Hi, Jeff:

 Very helpful! So it looks like between my Jenkins and Nexus, I also need
 a GoCD? Have never used it, but good to learn about it.

 Thanks,

 On Thursday, August 20, 2015 at 6:59:59 PM UTC-7, Jeff Vincent wrote:

 If (as an example) you are running Ubuntu 12.04 or 14.04, you would
 install 'tomcat7-admin'  (`sudo apt-get install tomcat7-admin).  Then there
 is a file /var/lib/tomcat7/conf/tomcat-users.xml that configures the users
 allowed to authenticate to the admin (via UI or API endpoint) to manage the
 applications deployed to Tomcat.  The url for the manager application would
 be something like:

 http://yourserver:8080/manager/html

 See https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html for
 details on using/configuring it.

 WIthout a manager API or interface, you somehow need to get the WAR file
 to the server.  If using tomcat (as an example) on Ubuntu the typical path
 (if installed via the apt package system) would be
 /var/lib/tomcat7/webapps.  Dropping the WAR file in there would cause it to
 automatically deploy/redeploy.  Again, I'm not familiar with JBoss but I
 imagine it is similar.

 At my previous company, Jenkins published the WAR file version to our
 GoCD pipeline.  It would then go to Nexus and pull that version of the WAR,
 create and RPM (CentOS based distro), push the RPM to a central repository,
 update Chef Data Bags and then initiate the Chef update which would pull
 the new RPM onto the server and push the WAR to the right folder.

 At my current company we are using GoCD with SaltStack to update the
 Salt pillar files for the application.  WHen we run the salt
 state.highstate command, the system detects a change to the WAR file, pulls
 it directly from Nexus and drops it into the tomcat webapps folder (after
 it does a stop tomcat, clean old war folder/file, restart tomcat).  It also
 provisions tomcat if needed and updates any application specific properties
 files or settings.

 Hope that was clear.

 On Thu, Aug 20, 2015 at 6:17 PM, Brent Atkinson brent.a...@gmail.com
 wrote:

 He means the Apache Tomcat manager app. It provides the means to
 programmatically deploy to Tomcat. JBoss has similar  functionality exposed
 through its management services, though you may have to enable/secure it.
 This assumes your server lives longer than a deployment, which is not how
 everyone does it.
 On Aug 20, 2015 8:05 PM, Martin ling...@gmail.com wrote:

 Hi, Jeff:

 What do you mean by the manager application in the description of
 manager application to be installed and configured? Is it Nexus? Thanks.

 On Thursday, August 20, 2015 at 7:43:34 PM UTC-4, Jeff Vincent wrote:

 I don't know anything about JBoss, but Apache (Tomcat) doesn't 'grab'
 anything.  You have to push the build to the server either using the 
 tomcat
 manager API or use some other mechanism (SCP, wget, etc.) to otherwise 
 grab
 the WAR file and get it onto the server.

 Jenkins has the 'deploy war/ear to a container' plugin to facilitate
 this, but it requires (in the case of tomcat) the manager application to 
 be
 installed and configured.  If your production environment is like ours,
 they will not install the manager application so it is either
 copied/configured manually or you can script it via a provisioning tool
 (SaltStack, Chef, Ansible, Puppet, etc.) and there are numerous ways to 
 do
 it through any of those tools.



 On Thu, Aug 20, 2015 at 5:12 PM, Martin ling...@gmail.com wrote:

 If I use Nexus OSS as a repository manager, the normal for code goes
 to production system is something like below:

 1) 

Re: Is it OK to link config.xml files?

2015-03-24 Thread James Green
Isn't this what the job-dsl-plugin was designed to fix?

On 24 March 2015 at 16:01, Steve K steve.kerxha...@carestream.com wrote:

 Hello,

 I have a set of jobs that are identical, except for their names.
 For example, I might have a job named Downstream-Post-Build-Process-Dev
 and Downstream-Post-Build-Process-Release.
 The upstream jobs that trigger these jobs tell the downstream job what
 directory to use for the processing.
 I could have the upstream jobs call the same downstream job, for example
 Downstream-Post-Build-Process-Generic,
 but that is likely to confuse the casual observer of the job's results.

 So, to ease maintenance, I would like to link
 Downstream-Post-Build-Process-Dev\config.xml to
 Downstream-Post-Build-Process-Release\config.xml.
 Are there any known gotcha's with respect to linking config.xml files?
 FWIW; the Jenkins server is on Windows.

 Thanks in advance.

 Steve K.

 --
 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/7d2bf1c5-fbfb-4421-ae2a-8a1302065226%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/7d2bf1c5-fbfb-4421-ae2a-8a1302065226%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/CAMH6%2Bax7BTDtav4g7-wkGosVX2zNG8xZsY0x9C2H4h_JPbQ-2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Promote jobs from test - staging - production

2015-03-18 Thread James Green
Going off topic rather...

I just spoke out loud in our office the fragment develop in test, test in
staging, and run in production. Consensus here is that as an industry we
have the names wrong. After all, non technical bosses expect testing before
going live, they have no idea what staging is intended to mean and
frankly the term probably won't mean anything to many developers out there
today.

... And back to topic.


On 18 March 2015 at 11:08, Jochen Hinrichsen jochen.hinrich...@kambrium.net
 wrote:

 Dear group,

 we want to follow the same rules for Jenkins jobs that our software itself
 must confirm to: development in test, testing in staging, and the official
 version in a production environment. Copy and paste will always work, but
 i'm too lazy to do that for the 200+ jobs. Maybe something more git-ish?

 From a first glance, i can see that everything credential related is
 different in the underlying xml configuration files. So a plain 1:1 copy of
 a job's external xml representation will not work.

 Did someone out here already solve this problem?

 Thanks in advance

 Jochen

 --
 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/732d0cd3-a3de-4ee2-8c59-3fc96d991659%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/732d0cd3-a3de-4ee2-8c59-3fc96d991659%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/CAMH6%2Bay9UoH-77OwiY_jLmGUeOQmQVRM%2BtoH-70Xcf_uJ1pwZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving from built-in Jenkins user DB to another source (like Google)

2015-03-10 Thread James Green
Do it with a test jenkins instance. Pure speculation otherwise.

On 9 March 2015 at 16:13, Mike Chmielewski mike.chmielew...@gmail.com
wrote:

 Hi everyone,

 I was wondering if anyone has experiences they are willing to share about
 moving the user DB from the built-in Jenkins DB to an outside one like LDAP
 or Google OpenID/Oauth (Google Oauth experience is more applicable to my
 use case).

 We have have 50-75 users with access now, and the company uses Google
 Apps, so it is a natural fit to move to the shared auth in Google, as we
 grow larger/have multiple remote offices, etc.

 Are there manual steps to migrate? Is it seamless? Does it default to
 internal?

 The only gotcha I have is that we have some outsourcing groups with
 access, with their own email systems... Is the current Google
 authentication integration flexible enough?

 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/b536b172-abe0-420e-a001-40eeeca66587%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/b536b172-abe0-420e-a001-40eeeca66587%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/CAMH6%2BaxkTGAoCaQvW-n3826KuvcOemfp1DeJwR-cX5Joa8q4hA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins API + Maven + Eclipse

2015-03-05 Thread James Green
I hate to +1 but I'm falling into agreement here. The writing of scripts is
largely dependant on api knowledge which most people expect their IDE to
auto-complete for them.

Without the Jenkins artefacts in central, this impedes community
development.

On 5 March 2015 at 11:25, Sverre Moe sverre@gmail.com wrote:

 Since I am not familiar with the Jenkins API, I would like to program my
 Groovy scripts in Eclipse. Having to check the Javadocs every time is quite
 tedious.
 Having to write the groovy in Jenkins (in a simple text area) and test it
 by starting the build is taking forever.

 I was thinking of creating a maven project, but I cannot find any jar for
 the Jenkins API in the maven repository.
 I did find the jenkins repository http://repo.jenkins-ci.org/public, but
 finding anything useful jenkins api there was like looking for a needle in
 a haystack.

 dependency
 groupIdorg.jenking/groupId
 artifactIdjenkins-api/artifactId
 version1.599/version
 /dependency

 Using the Jenkins API in Groovy, I reckon it is the same as making a
 plugin for Jenkins in Java (Same API)? I could even make my code in Java
 and use it as is in Groovy.

 Looked a little into the following Plugin tutorial. Though found it a bit
 complex to set up environment for development.

 https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingUpEnvironment


 Perhaps I should ask this in Jenkins Developers instead...

 --
 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/328208ad-ab8f-46b1-8c15-55368f845cea%40googlegroups.com
 https://groups.google.com/d/msgid/jenkinsci-users/328208ad-ab8f-46b1-8c15-55368f845cea%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/CAMH6%2BaxCSxnMpSV8dGYCGiVjDLmyxOH3Zim%3D_JvUS0wTtu69ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


SVN Credentials missing after migration

2015-03-02 Thread James Green
We tried migrating a Jenkins instance from one server to another by simply
rsync'ing /var/lib/jenkins.

This successfully produced a new server full of jobs. But on running one of
them we were told to enter SVN credentials for the repository. This is
strange given we have this on a global basis (confirmed in both old and
new).

Do we have something wrong locally or did we miss a step in our migration?
Any ideas?

Thanks,

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


When you are declined login

2014-12-10 Thread James Green
When I type in a bad username/password, I get a page asking me to try again.

Any reason I have to click the link before being prompted to type it again?
Most systems these day re-prompt with any last error message.

Just trying to cut down the mouse clicks...

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%2Baz%2BDg5hdB5bOEvQh%2Bwp4HMzs%3Dn6Ppm%2BRRTqO5ntx2AB7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Last Success shows unexpected time

2014-11-20 Thread James Green
My build just completed. It took around five minutes. The Last Success
time shows a time five minutes ago - presumably the time the build _began_.

Am I wrong in expecting the last success to be when the last successful
build _completed_?

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


Re: Restricting logins via LDAP groups

2014-11-19 Thread James Green
You either know who they are, or they are anonymous. Once you know their
identity then you can set their permissions. Everyone in our company even
sales can identify themselves against our instance but they won't see
anything unless they are in at least jenkins-users and to make changes
they require jenkins-power-users.

Seems pretty simple to me.

On 18 November 2014 15:24, Marshall mamills.gs...@gmail.com wrote:

 Hi all,

 I'm trying to restrict the people that can successfully *login* to a
 narrow set of LDAP groups.  I've tried several settings, and searched for
 solutions.  So far I'm coming up blank.  So, here I am, looking for
 assistance.

 So, given the following example setup, what would be the correct settings
 to use?

   Jenkins 1.581.1  (running as a windows service)
   Windows Server 2008 R2 64-bit
   ad.example.edu
   Limit logins only to members of the group:
 ad.example.edu/DEVS/abc1/Groups/abc1_developers

 To be clear, my needs can't be answered by matrix authorization.  The goal
 right now is to restrict *authentication*, not authorization.

 Many thanks for your time,
 Marshall

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


Re: Jenkins CI and the accessibility of it's UI

2014-10-30 Thread James Green
On 29 October 2014 14:15, R. Tyler Croy ty...@monkeypox.org wrote:

 (replies inline)

 On Wed, 24 Sep 2014, laura1fxj...@gmail.com wrote:

 
 
  I?m not sure if this is the right forum for this request, but I was
 hoping
  someone might be able to point me in the right direction?
 
  I was hoping someone might be able to provide a Voluntary Product
  Accessibility Template (VPAT) or similar
  accessibility statement for Jenkins CI.  I have included a blank VPAT for
  reference.


 What's the goal of such statements? Not being too informed on software
 accessibility challenges and requirements, I'd like to have an
 understanding of
 the cost/benefit for the Jenkins project to release/publish such a
 statement.


It's fairly narrow for Jenkins I think. A commercial provider might
consider it for large government contracts.

Given Jenkins itself is API accessible and otherwise has a convenient web
interface, adoption of WAI guidelines is probably sufficient.

Half the time these statement requirements boil down to less than a page.
It's there to ensure the supplier is aware of their responsibilities.

-- 
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/d/optout.


Re: Selenium crashes Chrome when running from Jenkins

2014-10-29 Thread James Green
That's a two year-old thread. There are other issues that are similar (
https://code.google.com/p/chromedriver/issues/detail?id=928) and current.

On 28 October 2014 17:28, Tamilarasan Rajendran tamil1...@gmail.com wrote:

 Hi, I am also facing similar issue.

 I am trying to execute my automation scripts in Jenkins.

 We have 2 slave machine.. one is Win7 (OS) and other is winxp (OS).

 When i change the slave machine to winxp, my scripts works perfectly
 without any issues.

 But, when i change ti win7 OS machine, my scripts getting failed saying,

 Chrome failed to start: crashed (Driver info: chromedriver=2.9.248315,
 platform= windows NT 6.1 SP1 x86_32).

 --
 Tamilarasan.


-- 
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/d/optout.


hudson remoting: IllegalStateException

2014-10-24 Thread James Green
I got the following stacktrace as my build aborted. I manually invoked
the build again and it worked fine. Any ideas?

[INFO] All coverage checks have been met.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:328)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Error: Unable to load resource
hudson/plugins/analysis/Messages.properties
at 
hudson.remoting.RemoteClassLoader.findResource(RemoteClassLoader.java:380)
at java.lang.ClassLoader.getResource(ClassLoader.java:1147)
at java.lang.Class.getResource(Class.java:2147)
at 
org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.java:83)
at 
org.jvnet.localizer.ResourceBundleHolder.get(ResourceBundleHolder.java:102)
at 
org.jvnet.localizer.ResourceBundleHolder.format(ResourceBundleHolder.java:139)
at 
hudson.plugins.analysis.Messages.FilesParser_Error_NoPermission(Messages.java:437)
at 
hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:269)
at 
hudson.plugins.analysis.core.FilesParser.parseSingleFile(FilesParser.java:239)
at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:198)
at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:31)
at hudson.FilePath.act(FilePath.java:918)
at hudson.FilePath.act(FilePath.java:896)
at 
hudson.plugins.checkstyle.CheckStyleReporter.perform(CheckStyleReporter.java:126)
at 
hudson.plugins.analysis.core.HealthAwareReporter.postExecute(HealthAwareReporter.java:301)
at 
hudson.maven.Maven3Builder$MavenExecutionListener.recordMojoEnded(Maven3Builder.java:634)
at 
hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:615)
at 
org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87)
at 
org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
... 21 more
Caused by: java.util.concurrent.ExecutionException:
java.lang.IllegalStateException: Invalid object ID 2 iota=18
at hudson.remoting.AsyncFutureImpl.get(AsyncFutureImpl.java:75)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
at 
hudson.remoting.RemoteClassLoader.findResource(RemoteClassLoader.java:372)
... 49 more
Caused by: java.lang.IllegalStateException: Invalid object ID 2 iota=18
 

Re: Insert the SVN repository changes comments into DB table by Jenkins

2014-08-22 Thread James Green
Nothing to do with Jenkins. Have a look for repository management tools
instead.


On 21 August 2014 22:03, Sree M sri5...@gmail.com wrote:

 Any Help Appreciated...


 On Thursday, August 21, 2014 1:03:55 PM UTC-4, Sree M wrote:

 Hello Users, I am new to Jenkins and I have a requirement on Jenkins and
 I am not sure it is possible on Jenkins. Currently, we have Jenkins Build
 on SVN Repository and its send E-mail notifications to respective
 development and application owners group. Apart Email notifications, we
 need insert all the these changes comments into Database table.

 Please help me on this.

  --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 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.
For more options, visit https://groups.google.com/d/optout.


Discard old builds - limit to snapshots?

2014-08-15 Thread James Green
I'd really like to keep build history of releases but maintain only a
limited set of snapshot history.

Is there a way to do this?

Thanks,

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


Re: Discard old builds - limit to snapshots?

2014-08-15 Thread James Green
I see a button on the per-build screen. However I'd like this configured
within Jenkins as policy to help satisfy some auditing requirements. Is
this doable or is this a an improvement to be logged?


On 15 August 2014 10:11, James Nord (jnord) jn...@cisco.com wrote:

  HI James,



 Both the m2release plugin and the release plugin have the ability to mark
 a release as keep forever – which will prevent it from being removed as
 part of the old build tidyup process.

 If you are not using any of these then you always have the ability to do
 this manually or via an API call to jenkins as part of the build.



 /James



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *James Green
 *Sent:* 15 August 2014 09:20
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Discard old builds - limit to snapshots?



 I'd really like to keep build history of releases but maintain only a
 limited set of snapshot history.



 Is there a way to do this?



 Thanks,



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


Re: Discard old builds - limit to snapshots?

2014-08-15 Thread James Green
Where is this put? What I want to avoid is each project needing the same
instruction - it should be policy that developers have no control over
(they shouldn't).


On 15 August 2014 13:43, Ginga, Dick dick.gi...@perkinelmer.com wrote:

  I use the API at the end of builds. I test a parameter called BUILD_TYPE
 then:



 For Windows:



 echo @

 echo @ Mark this build as keep forever

 echo @



 java -jar C:\Tools\BuildTools\jenkins-cli.jar -s
 http://jenkinsserver.xxx.xxx:8082/ keep-build %JOB_NAME% %BUILD_NUMBER%



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *James Green
 *Sent:* Friday, August 15, 2014 7:20 AM
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Re: Discard old builds - limit to snapshots?



 I see a button on the per-build screen. However I'd like this configured
 within Jenkins as policy to help satisfy some auditing requirements. Is
 this doable or is this a an improvement to be logged?



 On 15 August 2014 10:11, James Nord (jnord) jn...@cisco.com wrote:

 HI James,



 Both the m2release plugin and the release plugin have the ability to mark
 a release as keep forever – which will prevent it from being removed as
 part of the old build tidyup process.

 If you are not using any of these then you always have the ability to do
 this manually or via an API call to jenkins as part of the build.



 /James



 *From:* jenkinsci-users@googlegroups.com [mailto:
 jenkinsci-users@googlegroups.com] *On Behalf Of *James Green
 *Sent:* 15 August 2014 09:20
 *To:* jenkinsci-users@googlegroups.com
 *Subject:* Discard old builds - limit to snapshots?



 I'd really like to keep build history of releases but maintain only a
 limited set of snapshot history.



 Is there a way to do this?



 Thanks,



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


Re: Most downloaded plugins?

2014-06-03 Thread James Green
Does anyone actually use these? The graphs have such dense information I
can't make anything other than a curve out.

Need top one plugins in tabular format with paging: Name, Category, Brief
Description.


On 2 June 2014 18:04, Daniel Beck m...@beckweb.net wrote:

 This site provides some of that: Plugins by popularity, optionally only
 those with 500+ or 1000+ installations, in graph format:

 http://stats.jenkins-ci.org/jenkins-stats/svg/svgs.html

 On 02.06.2014, at 11:21, James Green james.mk.gr...@gmail.com wrote:

  I'm looking at https://wiki.jenkins-ci.org/display/JENKINS/Plugins
 
  I can lots of plugins across various categories.
 
  I don't necessarily know what I want or under which category it might
 exist. Would it be possible to create a page listing plugins by their
 downloads count? Most commonly used ones would then be instantly found by
 those new to the ecosystem.
 
  Thanks,
 
  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.
  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.
 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.
For more options, visit https://groups.google.com/d/optout.


Most downloaded plugins?

2014-06-02 Thread James Green
I'm looking at https://wiki.jenkins-ci.org/display/JENKINS/Plugins

I can lots of plugins across various categories.

I don't necessarily know what I want or under which category it might
exist. Would it be possible to create a page listing plugins by their
downloads count? Most commonly used ones would then be instantly found by
those new to the ecosystem.

Thanks,

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


Re: Permgen issues only when run as a Windows Service

2014-05-28 Thread James Green
For the purposes of completeness, a follow-up.

I have overcome the problem. It seems the MAVEN_OPTS environment variable
set within Windows is not read, or mine is incorrect set.

If I Configure the project, and click Advanced under Build I can add
-XX:MaxPermSize=256m to MAVEN_OPTS. This resolved the issue for me.



On 19 May 2014 16:05, James Green james.mk.gr...@gmail.com wrote:

 Right - server is now 1.563 and I restarted the Jenkins service. I still
 get PermGen errors.

 Time to file a bug..?

 Build output includes:

 Parsing POMs
 Modules changed, recalculating dependency graph
 maven31-agent.jar already up to date
 maven31-interceptor.jar already up to date
 maven3-interceptor-commons.jar already up to date
 [portal-selenium] $ C:\Program Files\Java\jdk1.7.0_55/bin/java 
 -Dmaven.test.failure.ignore=false -cp 
 c:\Jenkins\maven31-agent.jar;C:\Program 
 Files\apache-maven\boot\plexus-classworlds-2.5.1.jar;C:\Program 
 Files\apache-maven/conf/logging jenkins.maven3.agent.Maven31Main C:\Program 
 Files\apache-maven C:\Jenkins\slave.jar c:\Jenkins\maven31-interceptor.jar 
 c:\Jenkins\maven3-interceptor-commons.jar 54261
 ===[JENKINS REMOTING CAPACITY]===channel started
 Executing Maven:  -B -f c:\Jenkins\workspace\portal-selenium\pom.xml clean 
 install
 [INFO] Scanning for projects...
 [INFO]
 [INFO] Using the builder 
 org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder
  with a thread count of 1

 ...

 [INFO] Initializing ProtocolHandler [http-bio-8080]
 [INFO] Starting service Tomcat
 [INFO] Starting Servlet Engine: Apache Tomcat/7.0.47
 [INFO] No Spring WebApplicationInitializer types detected on classpath
 [INFO] Initializing Spring root WebApplicationContext

 ...

 [INFO] WSSERVLET14: JAX-WS servlet initializing
 [INFO] No Spring WebApplicationInitializer types detected on classpath
 [INFO] Initializing Spring root WebApplicationContext
 15:45:27,036  WARN 
 org.springframework.core.io.support.PropertiesLoaderSupport:181 
 loadProperties() - Could not load properties from URL 
 [file:${portal.properties.file}]: ${portal.properties.file} (The system 
 cannot find the file specified)
 Have now configured log4j using log4j.properties

 ...

 Exception in thread 
 org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-4 
 Exception in thread 
 org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3 
 15:46:42,942  INFO quartz.ReadNotificationScheduler:39 executeInternal() - 
 Executing schedule
 Exception in thread 
 org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-2 
 Exception in thread 
 org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-8 
 Exception in thread 
 org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10 
 [ERROR] Unexpected error in channel channel
 java.lang.OutOfMemoryError: PermGen space[ERROR] A child container failed 
 during startjava.lang.InterruptedException
   at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:400)
   at java.util.concurrent.FutureTask.get(FutureTask.java:187)
   at 
 org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
   at 
 org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at 
 org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at 
 org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.startup.Tomcat.start(Tomcat.java:341)
   at 
 org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1238)
   at 
 org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:592)
   at 
 org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:133)
   at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
   at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
   at 
 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
   at 
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:108)
   at 
 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
   at 
 org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
   at 
 org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155

Distributing software through web sites with automatic updates

2014-05-09 Thread James Green
We are distributing Windows software via a web site that includes an
automatic updates feature. Both the Windows software and the web site are
built using Maven and Jenkins.

At present the web site (a WAR) uses Maven to depend-on a Maven version of
the Windows software (an exe). Each customer receives this WAR so
versions are per-customer.

Currently, a developer will give the Maven windows project a build number
in a file and share that within a file of the WAR archive. I want Jenkins
to be put in charge of this. Clearly the artefact of the Windows file can
be made aware of the Jenkins build number via an environment variable
during the build process but as the WAR archive is constructed the build
number of the dependent Windows project needs to be identified and included
in the WAR itself. While we could feed this in, I'd prefer Jenkins to
remain autonomous.

At this point I'm a little lost but I suspect this sort of thing has been
done before so suggestions from experience would be appreciated.

Thanks,

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


OOM: Permgen issues only when run as a Windows Service

2014-05-08 Thread James Green
I've got a Windows 8 Pro machine connected to our Jenkins 1.562 instance as
a slave. The slave runs as a windows service.

I have set MAVEN_OPTS as a system property variable. If I open an
administrative cmd prompt and type 'set' included is the following:

MAVEN_OPTS=-Xms1024m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=356m
-XX:PermSize
=1024m -XX:MaxPermSize=2048m

If I check out a maven 3 project and clean/install it myself it works. But
the Jenkins service fails it, with OOM: Permgen Space.

Any ideas?

Thanks,

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