Re: How is it possible to get notifications for a build in Pipelines?

2018-02-12 Thread Christopher Orr
Hi there,

On Mon, 12 Feb 2018, at 11:00, akseki...@gmail.com wrote:
> How is it possible to get notifications for a build in Pipelines?

Assuming you're talking about sending notifications when a build 
completes/fails/etc., this URL leads to multiple pieces of documentation on the 
Jenkins site that cover this exact topic:
https://lmgtfy.com/?q=jenkins+pipeline+notification

For example:
https://jenkins.io/doc/pipeline/tour/post/
https://jenkins.io/blog/2017/02/15/declarative-notifications/

Regards,
Chris

-- 
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/1518441339.1884667.1267901240.37D8A8F2%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative Pipeline with variable number of stages

2017-12-17 Thread Christopher Orr
Hi there,

On Sun, 17 Dec 2017, at 13:21, Andreas Røsdal wrote:
> I would like to implement a declarative pipeline in Jenkin, using only one 
> Jenkinsfile,
> but have variable number of stages depending upon which branch of the project 
> is being built. 
> 
> Is this possible? Can I dynamically change the number of stages in a dynamic 
> pipeline?
> Can I dynamically change the label text of a stage in a declarative pipeline?

You can conditionally run certain stages, using the `when`  directive
and the `branch` conditions:
https://jenkins.io/doc/book/pipeline/syntax/#when
https://youtu.be/YWb5Is6VwPg

I'm not sure whether you can dynamically specify a stage name, but
calling a shared library function that returns a String could
potentially work.

Regards,
Chris

-- 
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/1513514344.3701997.1207744840.5607CA83%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Cannot signup for new accout

2017-10-11 Thread Christopher Orr
On Thu, 12 Oct 2017, at 00:29, Dennis Hoer wrote:
> When entering info on https://accounts.jenkins.io/signup and clicking on 
> Sign Up, I get the following:
> 
> HTTP ERROR 500

As mentioned a couple of times on this mailing list today, it's a
temporary infrastructure issue:
https://groups.google.com/d/msg/jenkinsci-users/jVBiOR7exzM/Hy8oGwdJAwAJ

-- 
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/1507761451.3295478.1135837496.34A9ACDC%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't sign up at accounts.jenkins.io

2017-10-11 Thread Christopher Orr
On Wed, 11 Oct 2017, at 15:26, dandeliondodgeball wrote:
> Ok, but, I ran into the same issue when creating a new account.  So I
> don't think this is purely a password reset issue.  Thanks.

Creating an account sends you an email with a temporary password, so
it's broken as well.

-- 
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/1507761373.3294870.1135836880.7762D37F%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't sign up at accounts.jenkins.io

2017-10-11 Thread Christopher Orr
Hi there,

On Wed, 11 Oct 2017, at 01:34, Andrew Brock wrote:
> If I visit https://accounts.jenkins.io/signup and fill out the form, 
> clicking the Sign Up button gets me a stack trace like so:
> 
> 
> 
> HTTP ERROR 500
> 
> Problem accessing /doSignup. Reason:
> 
> Server Error
> 
> Caused by:
> 
> javax.servlet.ServletException: javax.servlet.ServletException:
> javax.mail.AuthenticationFailedException: 535 Authentication failed:
> account disabled

There's currently an infrastructure issue preventing password reset
links from being emailed out:
https://issues.jenkins-ci.org/browse/INFRA-1360

Your account has been created, but you'll have to wait for that issue to
be resolved before you can try to send a password reset email.

Regards,
Chris

-- 
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/1507711101.3221443.1134958024.3DDF78DF%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to reset password

2017-10-11 Thread Christopher Orr
Hi there,

On Wed, 11 Oct 2017, at 02:51, 'Jurgen Weber' via Jenkins Users wrote:
> I have not used my account in a while, the error says to 'contact us'..
> Not 
> sure where to do that... so trying here:
> 
> If I try to create a new account, it says to reset my password.. If I go
> to 
> rest my password I get the below:
> 
> http://take.ms/yKPGg

There's currently an infrastructure issue preventing password reset
links from being emailed out:
https://issues.jenkins-ci.org/browse/INFRA-1360

You'll have to wait for that to be resolved before you can try to send
another password reset email.

Regards,
Chris

-- 
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/1507711058.3221336.1134957384.12DCBD0A%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Inventory of development flows for Jenkinsfile and Pipeline Library

2017-09-06 Thread Christopher Orr
On Wed, 6 Sep 2017, at 16:23, Martin d'Anjou wrote:
> I'd like to inventory the current development flows for unit testing, 
> integration testing and release of Jenkinsfile and Pipeline DSL
> libraries.

Sounds good.

> I am guessing everyone's objective is to reach a level where a single 
> "gradle" or "mvn" command runs all tests and deploys a new set of 
> Jenkinsfile/Pipeline Libraries to production servers.
> 
> There is a ticket open on this 
> topic: https://issues.jenkins-ci.org/browse/JENKINS-33925
> 
> Here is what I have found so far:
> 
>- The replay button in Jenkins
>  - Not much of process here

There is the possibility to automate this somewhat, via the
`replay-pipeline` CLI command:
https://jenkins.io/blog/2016/04/14/replay-with-pipeline/

Regards,
Chris

-- 
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/1504738750.3222408.1097699136.07B10473%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a Jenkins Google App Engine plugin

2017-09-06 Thread Christopher Orr
On Wed, 6 Sep 2017, at 17:37, phanikumar wrote:
> I came across a video
> https://www.youtube.com/watch?v=L4d2HvXNfv0&feature=youtu.be where it is
> using Google App Engine plugin. But I didn't find it in pre built
> plugins.
> can someone state what is the exact plugin used for this.

AFAICT, the plugin seen at 1:05 in the video is a proprietary plugin
that was part of the CloudBees DEV@Cloud product — but I don't think
that service exists any more.

You'd have to get in touch with that company for more information.

Regards,
Chris

-- 
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/1504738597.3221716.1097696632.2752A2AF%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Checkout from multiple SCMs/repos in declarative pipeline?

2017-06-08 Thread Christopher Orr
On Wed, 7 Jun 2017, at 17:36, Kirill Peskov wrote:
> Due to some project restrictions I have to combine sources from 3
> repositories (1 Subversion and 2 Git repos), is there an easy way to
> achieve that in a declarative pipeline? Neither project subdirs nor
> files in the root of each repo are not overlapping with each other, so
> merging them in one workspace is actually safe.
> 
> Something like that:
> 
> pipeline {
> agent {
> dockerfile { dir 'ubuntu-xenial-mysql' }
>
> }
> stages {
> stage('Sources & Additional Tools Checkout'){
> steps {
> svn url:'url-to-installer-sources'
> git url:'url-to-test-tools'
> git url:'url-to-packager-sources'
> }
> }
> stage('Test suite') {
> steps {
> // Do some tests ...
> }
> stage('Build the package') {
> steps {
> // Invoke deb-package builder ...
> }
>
> }
> 
> I've tested the simplified version of it trying to combine 2 GIT repos,
> it didn't work, second 'git' step wipes everything out of workspace...

I'm not sure exactly what the `git` step does, but you could try using
the `checkout` step 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/1496922139.1116734.1002827528.4B531A33%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Favorite plugin

2017-06-08 Thread Christopher Orr
Hi there,

On Thu, 8 Jun 2017, at 11:34, Eberhard Beilharz wrote:
> I'm using https://updates.jenkins-ci.org/stable/update-center.json as 
> URL for the update site.
> 
> When I check the JSON that gets returned from the update site I see that 
> it contains the favorite plugin in version 1.16 from 7/2013, so there 
> seems to be clearly something wrong. Would be good if that could be
> fixed.

Yeah, this is unfortunate, but it is at least a known issue; see
https://issues.jenkins-ci.org/browse/INFRA-1215

Regards,
Chris

-- 
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/1496914817.1093022.1002723264.2058E39E%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Display Test Results in Blue Ocean

2017-06-01 Thread Christopher Orr
I've wondered about this as well, but looking at JIRA, it seems to be by
design at the moment:
https://issues.jenkins-ci.org/browse/JENKINS-43892


On Thu, 1 Jun 2017, at 06:22, Daniel Becroft wrote:
> Hi,
> I'm currently experimenting with converting our standard builds into
> pipelines, and have an initial question.
> When there are tests, and they all pass, I can only see a page under
> Tests
> that says "All tests are passing  77 tests for this pipeline are
> passing."
> Is there anywhere (other than the original Jenkins UI) where we can see
> all
> the tests for the pipeline, passing or not?
> Cheers,
> Daniel B.

-- 
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/1496325415.132266.995429088.2893232E%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Blue ocean pipeline chaining

2017-06-01 Thread Christopher Orr
You can use the `build` step:
https://jenkins.io/doc/pipeline/steps/pipeline-build-step/#code-build-code-build-a-job


On Thu, 1 Jun 2017, at 08:01, viral chande wrote:
> Hi,
>   Is there a way we can have one pipeline trigger another pipeline?
> Thanks,
> Regards,
> Viral Chande

-- 
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/1496325261.131930.995426400.545E5422%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does the dir() rule ever work?

2017-05-09 Thread Christopher Orr
On Mon, 8 May 2017, at 16:32, Jay Miller wrote:
> JENKINS-33510 says: 
> "dir('foo') inside 'docker.image().inside{}' does not affect CWD of 
> launched processes".  My Jenkinsfile doesn't appear to have an 
> *image().inside* block (right?), yet *dir()* is failing in the same way.

That description of the issue comes from Scripted Pipeline syntax —
you're using the `agent { docker }` directive from the Declarative
Pipeline syntax, which probably causes the `image().inside` stuff to
happen under the hood.  So that's likely why you're hitting that issue.

Regards,
Chris

-- 
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/1494322418.2181985.970527909.7AEBA53E%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Chaining freestyle with a Pipeline on the same Git hash?

2017-04-26 Thread Christopher Orr
Hi there,

On Wed, 26 Apr 2017, at 08:40, Dan Tran wrote:
> I have no issue chaining 2 freestyle jobs the same git commit, however,
> not possible from FS to Pipeline which throws exception.  Is there any one 
> successfully doing so?

It's not entirely clear to me what you're asking — how exactly are you
trying to chain the jobs, and what exception are you seeing, when and
where?

Regards,
Chris

-- 
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/1493197583.1641161.956641248.1B1B2B80%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Declarative Pipeline - Agent wonderment

2017-04-25 Thread Christopher Orr
On Thu, 20 Apr 2017, at 15:02, Danny Rehelis wrote:
> Help me understand this please, in case my Pipeline looks like this -
> 
> stage ('Stage #1') {
> agent { label 'builder' }
> stage ('Stage #2') {
> agent { label 'builder' }
> 
> Will the second stage run on the same builder labeled server instance
> (same one from first stage) or will pick any other possibly idle labeled 
> server
> available at the time?
> Is it possible to force "stickiness" for explicitly configured agents?

In this case, there's no guarantee that the two builds will run in the
same workspace, or even on the same agent, if there are multiple agents
with the 'builder' label.

For stickiness, you'd probably have to define your `agent` once at the
top level of the Pipeline, and then maybe do `agent none` in the stages
where you don't need that agent (not entirely sure whether that works).

Regards,
Chris

-- 
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/1493111797.3897618.955339536.6BB709B6%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting started with Multibranch pipeline

2017-04-19 Thread Christopher Orr
Hi there,

On Wed, 19 Apr 2017, at 10:03, David Aldrich wrote:
> I am just getting started with the Multibranch pipeline project type
> (though I am familiar with conventional job types).
> 
> I am not using Docker.  The job will run on multiple svn branches and
> will simply run a command step to build our C++ software using a
> makefile.
> 
> I want to store my Jenkinsfile in svn.  Where on the configuration page
> do I specify the location of the Jenkinsfile?

You need to tell Jenkins where to find the branches that you want to
build — this is called the "branch source".  So long as you have the
Subversion plugin installed, you'll see it listed as a branch source;
see the screenshot in the documentation:
https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Jenkins will then inspect each of the branches in the repo, and create a
new Pipeline job for any branches which contain a `Jenkinsfile` in the
root of the branch directory.

Regards,
Chris

-- 
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/1492613647.3524194.949396448.2B33BCA9%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Storing pipeline script "as-is", in config.xml?

2017-04-13 Thread Christopher Orr
Hi,

On Thu, 13 Apr 2017, at 15:41, 'Michael Hüttermann' via Jenkins Users
wrote:
> setting up a Jenkins 2 pipeline script, it will be stored with special 
> chars in config.xml. Example:
> stage('Setup') 
> 
>  Is it possible to force Jenkins to store the snippet as it was insert
>  into the build job, in this example:
>  stage('Setup')

Unlikely, as Jenkins is just doing plain old XML serialisation, and
`'` is the predefined XML entity for the apostrophe character. 
You're not likely to get more control over how the XML is serialised.

At least for me, POSTing a config.xml without entities, and then
fetching it again does return the original XML that I POSTed, e.g.
`stage('First') { echo 'hey' }`.

If you need the XML without entities, just run it through your XML
processor of choice, for example:
$ curl -s http://localhost:8080/job/test/config.xml | xmllint --format -
…
stage('First') { echo 'hey' }
…

Regards,
Chris

-- 
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/1492094157.2561764.943705280.743379F0%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get started with pipeline jobs?

2017-04-13 Thread Christopher Orr
On Thu, 13 Apr 2017, at 14:08, David Aldrich wrote:
> Thanks for your answer, it was very helpful.
> 
> Regarding the SCM, in Blue Ocean I clicked 'New Pipeline' and was asked
> 'Where do you store your code?'. I was offered Git or Github.  Does that
> mean I can't store a Jenkinsfile in svn?

Ah, yeah, that particular Blue Ocean shiny new setup workflow thingy
currently only supports Git / GitHub.  I have no idea whether adding SVN
is planned, but I wouldn't hold my breath.  Maybe one of the developers
can chime in, or you can check JIRA for related feature requests.

But you certainly should be able to store your Jenkinsfile in SVN — when
you create a new Pipeline job (via the "classic" UI), you can choose
"Jenkinsfile from SCM" and there you should be able to point it at your
repo URL.

According to this blog post, you should even be able to use the
multibranch functionality with SVN (which I find surprising; not sure if
it's true):
https://jenkins.io/blog/2015/12/03/pipeline-as-code-with-multibranch-workflows-in-jenkins/

Regards,
Chris


> > -Original Message-
> > From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-
> > us...@googlegroups.com] On Behalf Of Christopher Orr
> > Sent: 13 April 2017 12:44
> > To: jenkinsci-users@googlegroups.com
> > Subject: Re: How to get started with pipeline jobs?
> > 
> > Hi there,
> > 
> > On Thu, 13 Apr 2017, at 13:25, David Aldrich wrote:
> > > We use the traditional 'Freestyle' job style for most of our Jenkins
> > > jobs.  We also use the 'Freestyle multi-branch project' for some jobs.
> > > I note that the Multi-Branch Project Plugin is now deprecated, so I
> > > think now is the time for us to seriously look at moving to Pipeline jobs.
> > >
> > > The 'New Item' page states that a 'Pipeline' job 'Orchestrates long
> > > running activities that span multiple build slaves'.  Our jobs don't
> > > fit that description - they aren't necessarily long and certainly
> > > don't span multiple slaves. I guess I'm saying that we don't need
> > > 'staging'. Is Pipeline still the recommended way for us to go?
> > 
> > I guess that's not the greatest description — it describes what *is* 
> > possible (in
> > contrast with Freestyle), but you don't necessarily have to do such things 
> > with
> > it.
> > 
> > Pipeline is the recommended way to go, even if you don't need to orchestrate
> > large build pipelines, but it has a variety of other
> > benefits: https://jenkins.io/doc/book/pipeline/#why
> > 
> > 
> > > What is the best way to get started with Pipeline jobs?  Do I need to
> > > learn the scripting language or should I use Blue Ocean to generate
> > > the jobs graphically?
> > 
> > Go through that documentation link to get a flavour of what it looks like —
> > you can use the newer Declarative syntax, so you don't necessarily have to
> > learn the Scripted syntax.  Or use the Blue Ocean visual editor; it will 
> > generate
> > the same declarative syntax for you.
> > 
> > 
> > > Finally, we use svn exclusively, not git.  Will that cause us any
> > > problems?
> > 
> > Nope, the SVN plugin has Pipeline support.
> > 
> > Regards,
> > Chris
> > 
> > --
> > 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/1492083843.288602.943536008.703C4D92%40webmail.messagingengin
> > e.com.
> > For more options, visit https://groups.google.com/d/optout.
> > 
> > 
> >  Click
> > https://www.mailcontrol.com/sr/xvYRbG2FSALGX2PQPOmvUuToodiywuSOlb
> > ++fJoyXy+OtsKiyuqV!lfw2Oiz3tuYmV0!TP2mtcSNc!rJiVGaJg==  to report this
> > email as spam.
> 
> -- 
> 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/095481598a864cd18e0a213ba974adee%40EUX13SRV1.EU.NEC.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/1492092817.2557814.943680752.27C98E14%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get started with pipeline jobs?

2017-04-13 Thread Christopher Orr
Hi there,

On Thu, 13 Apr 2017, at 13:25, David Aldrich wrote:
> We use the traditional 'Freestyle' job style for most of our Jenkins
> jobs.  We also use the 'Freestyle multi-branch project' for some jobs.  I
> note that the Multi-Branch Project Plugin is now deprecated, so I think
> now is the time for us to seriously look at moving to Pipeline jobs.
> 
> The 'New Item' page states that a 'Pipeline' job 'Orchestrates long
> running activities that span multiple build slaves'.  Our jobs don't fit
> that description - they aren't necessarily long and certainly don't span
> multiple slaves. I guess I'm saying that we don't need 'staging'. Is
> Pipeline still the recommended way for us to go?

I guess that's not the greatest description — it describes what *is*
possible (in contrast with Freestyle), but you don't necessarily have to
do such things with it.

Pipeline is the recommended way to go, even if you don't need to
orchestrate large build pipelines, but it has a variety of other
benefits: https://jenkins.io/doc/book/pipeline/#why


> What is the best way to get started with Pipeline jobs?  Do I need to
> learn the scripting language or should I use Blue Ocean to generate the
> jobs graphically?

Go through that documentation link to get a flavour of what it looks
like — you can use the newer Declarative syntax, so you don't
necessarily have to learn the Scripted syntax.  Or use the Blue Ocean
visual editor; it will generate the same declarative syntax for you.

 
> Finally, we use svn exclusively, not git.  Will that cause us any
> problems?

Nope, the SVN plugin has Pipeline support.

Regards,
Chris

-- 
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/1492083843.288602.943536008.703C4D92%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Getting an exception when using Job import plugin

2017-04-12 Thread Christopher Orr
Sounds like https://issues.jenkins-ci.org/browse/JENKINS-40577


On Tue, 11 Apr 2017, at 00:21, Prasu S wrote:
> I'm trying to import jobs from Jenkins 1.658 to Jenkins 2.45 . I receive 
> the below error. Can anyone please help.
> 
> java.lang.NoClassDefFoundError: 
> com/google/inject/internal/guava/base/$Preconditions
> at 
> org.jenkins.ci.plugins.jobimport.CredentialsUtils$NullSafeCredentials.(CredentialsUtils.java:50)
> at 
> org.jenkins.ci.plugins.jobimport.CredentialsUtils.getCredentials(CredentialsUtils.java:29)
> at 
> org.jenkins.ci.plugins.jobimport.JobImportAction.doQuery(JobImportAction.java:168)
> at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:335)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:175)
> at 
> org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:108)
> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
> at 
> org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> Caused: javax.servlet.ServletException
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:362)
> at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
> at 
> com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at javax.servlet.FilterChain$doFilter.call(Unknown Source)
> at 
> com.ceilfors.jenkins.plugins.jiratrigger.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.groovy:29)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at 
> hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:95)
> at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
> at 
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
> at 
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
> at 
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at 
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
> at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
> at 
> org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.ja

Re: Move location of build history, separate from config

2017-03-10 Thread Christopher Orr
On Thu, 9 Mar 2017, at 22:37, Gastro Man wrote:
> Is it possible to configure Jenkins so the jobs' build history is not 
> contained in the same directory as the config.xml?
> 
> Ideally, I would prefer all the configs to be together in an area 
> ("job_config" folder)  that I can put in source control, backup, quickly 
> search and compare, and manage.
> 
> And then the gigabytes of data stored in histories could be in another 
> location ("job_history" folder) where I don't care about source control, 
> don't need to include when searching across configs, etc.
> Possibly even store this on a separate storage device..
> 
> I find it frustrating to have the mixing of "control" and "data" inside 
> every single job subfolder, but I haven't found a way around this so far.

You could mark the "builds" subdirectories as ignored in source control?

Or if you go to Manage Jenkins > Configure System and click "Advanced"
at the top of the page, you'll be able to alter where build data is
stored ("Build Record Root Directory").

If you change this to "${JENKINS_HOME}/builds/${ITEM_FULLNAME}", for
example, then all of the build data will be stored there.

At this point, the only thing left in ${JENKINS_HOME}/jobs/ (i.e.
${ITEM_ROOTDIR}) will be the job config.xml, and the metadata about
build numbers and last success/failure symlinks etc..

Note that changing this value will not automagically migrate all of your
existing data to the new location you've specified.

Regards,
Chris

-- 
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/1489202633.4096064.907672768.7D5713DF%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: "Page expects a form submission" error when trying to remotely trigger job

2017-03-10 Thread Christopher Orr
On Thu, 9 Mar 2017, at 18:18, Substance586 wrote:
> I'm trying to trigger a Jenkins job from my local CLI and, while it
> worked 
> yesterday, today I can't get past "javax.servlet.ServletException: This 
> page expects a form submission but had only 
> {token=[Ljava.lang.String;@} exceptions.  Here is my CLI command:
> 
> curl -v -X POST http:///jenkins/job//build?token=12345
> 
> I've seen numerous ways to trigger builds remotely and the way that I've 
> chosen is to set the token above in the destination job's "Trigger builds 
> remotely" section and use the preceding curl command.  I'm open to better 
> ways to accomplish this.  
> 
> Stack Trace:
> * Connected to  (10.34.184.89) port 80 (#0)
> > POST //build?token=12345 HTTP/1.1
> > Host: 
> > User-Agent: curl/7.43.0
> > Accept: */*

Your curl command says /jenkins/job/, but your curl output has
only / as the path prefix?
You also don't need to use POST for this endpoint.

Using the CLI is a good way to start a build, and doesn't require a
token:
https://jenkins.io/doc/book/managing/cli/#build

-- 
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/1489201854.4093659.907667952.0C398082%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: multibranch pipeline will not poll

2017-03-10 Thread Christopher Orr
On Thu, 9 Mar 2017, at 15:53, Travis Camechis wrote:
> Hey guys,
> 
> I have a multibranch pipeline defined but it will not poll.  It is set up 
> like such
> 
> node {
> 
>   git poll: true, url: 'ssh://.'
> 
>   stage("build") {
> checkout scm
>   }
> 
> 
> Any suggestions on why this would not poll ?  Also how do you tell it how 
> often ?

You should preferably be using Git webhooks to tell Jenkins when there
has been a change:
https://plugins.jenkins.io/git#GitPlugin-Pushnotificationfromrepository

But you can additionally tell Jenkins to regularly re-scan the
repository for new branches, by using the "periodically if not otherwise
run" option:
https://jenkins.io/doc/book/pipeline/multibranch/#creating-a-multibranch-pipeline

Regards,
Chris

-- 
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/1489200938.4091222.907662888.60E15F31%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pretested Integration Plugin

2017-03-10 Thread Christopher Orr
On Thu, 9 Mar 2017, at 14:00, Masaru Tsuchiyama wrote:
> Hi.
> 
> A Free Style Project' has 'Use Pretested Integration' option in Build 
> Environment section.
> 
> But a Multi-configuration multi-branch project doesn't have the option.
> 
> Doesn't it support the option?

Apparently not:
https://github.com/jenkinsci/pretested-integration-plugin/blob/pretested-integration-2.4.1/src/main/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationBuildWrapper.java#L144-L146

-- 
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/1489200529.4089009.907661200.29EC2706%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem spawning background process from Groovy script

2017-03-10 Thread Christopher Orr
On Thu, 9 Mar 2017, at 13:23, Dirk Heinrichs wrote:
> Hi,
> 
> I've got a job that runs a Groovy script which should pull from a
> Mercurial repo, merge a given branch and then serve the result to sub
> jobs running in a multijob phase to perform builds on different OS's.
> For this to achieve, the script should spawn a "hg serve" process into
> the background. Once the Multijob phases have finished, another script
> should then kill that process again.
> 
> That works fine as long as I execute the Groovy script standalone (the
> script finishes and the background process keeps running). But if
> executed from Jenkins, the "hg serve" process is killed when the script
> finishes, which is of course not what I want.
> 
> How can I spawn a background process from a Groovy script in Jenkins so
> that it's still running when the script ends?

Sounds like
https://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build

-- 
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/1489200300.4088274.907659200.1FBE77A9%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Interactive input with new DSL

2017-03-10 Thread Christopher Orr
On Thu, 9 Mar 2017, at 05:13, suresh kumar wrote:
> I see another thing which is missing in pipelines "post build steps". How 
> Jenkins community is addressing this, Is there any such document or notes 
> which explains this? This will help me.

There is documentation for Declarative Pipeline:
https://jenkins.io/doc/book/pipeline/syntax/#post

And examples on the blog for Scripted Pipeline:
https://jenkins.io/blog/2016/07/18/pipline-notifications/

Regards,
Chris

-- 
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/1489199578.4086665.907653128.1A46AEC0%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: upgrade from 1.625.18.3 à 1.651.x.x first à 2.32.2.6

2017-03-10 Thread Christopher Orr
On Fri, 10 Mar 2017, at 05:23, Sukumar Reddy wrote:
> When we upgrade from 1.625.18.3 à 1.651.x.x first à 2.32.2.6 will there
> be any impact or affect to existing folder, pipeline, free-style and maven 
> style jobs 

Those version numbers look odd — possibly versions of Jenkins provided
by CloudBees?
If so, you should ask them.

But most likely the answer is yes, especially when coming from such old
versions.
Refer to the upgrade guide for more recent LTS releases:
https://jenkins.io/doc/upgrade-guide/

Regards,
Chris

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


Re: Git fetch not working from jenkins, working from command line

2017-02-23 Thread Christopher Orr
On Wed, 22 Feb 2017, at 18:54, Diganta Paladhi wrote:

>> Hi Guys, I am facing this issue with Git plugin version 3.0.5 Any
>> idea how to solve this? I have tried all possible suggestions, but
>> failed to resolve this :( **
>> *17:07:29*  > /usr/bin/git rev-parse --verify HEAD # timeout=10
>> *17:07:29* No valid HEAD. Skipping the resetting *17:07:29*  >
>> /usr/bin/git clean -fdx # timeout=10 *17:07:29* Fetching upstream
>> changes from  *17:07:29*  > /usr/bin/git --version #
>> timeout=10 *17:07:29* using GIT_ASKPASS to set credentials *17:07:29*
>> > /usr/bin/git fetch --tags --progress 
>> +refs/heads/*:refs/remotes/origin/*
>>
>> *17:07:29* ERROR: Error fetching remote repo 'origin' *17:07:29*
>> hudson.plugins.git.GitException[1]: Failed to fetch from 
>> *17:07:29*  at
>> hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:806)[2] *17:07:29*
>> at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)[3]
>> *17:07:29*  at
>> hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)[4] *17:07:29*
>> at hudson.scm.SCM.checkout(SCM.java:495)[5] *17:07:29*  at
>> hudson.model.AbstractProject.checkout(AbstractProject.java:1278)[6]
>> *17:07:29*  at hudson.model.AbstractBuild$AbstractBuildExecution.def-
>> aultCheckout(AbstractBuild.java:604)[7] *17:07:29*  at jenkins.scm.S-
>> CMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)[8]
>> *17:07:29*  at hudson.model.AbstractBuild$AbstractBuildExecution.run-
>> (AbstractBuild.java:529)[9] *17:07:29*  at
>> hudson.model.Run.execute(Run.java:1728)[10] *17:07:29*  at
>> hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)[11]
>> *17:07:29*  at hudson.model.ResourceController.execute(ResourceContr-
>> oller.java:98)[12] *17:07:29*  at
>> hudson.model.Executor.run(Executor.java:404)[13]
>>


It looks like you haven't pasted the full error message — usually the
lines after that part of the stacktrace indicate why the clone failed.

Regards,

Chris


Links:

   1. 
http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException
   2. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method
   3. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method
   4. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method
   5. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method
   6. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method
   7. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method
   8. 
http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method
   9. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method
  10. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method
  11. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method
  12. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method
  13. 
http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method

-- 
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/1487845750.3225691.890287960.75EC7890%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline 'Almost complete' is misleading

2017-02-23 Thread Christopher Orr
Hi there,



On Wed, 22 Feb 2017, at 18:54, Dan Tran wrote:

> Hi

> 

> I am not sure about  'Almost complete' progress bar,  it keeps the
> same text regardless of the length of the build
> 

> Thoughts?



If you're seeing this consistently, and can reproduce it easily, it
seems like https://issues.jenkins-ci.org/browse/JENKINS-39188 would be
the place to add this info.


Regards,

Chris

-- 
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/1487845575.3225450.890286464.7F8363F6%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread Christopher Orr
Hi there,



On Mon, 13 Feb 2017, at 12:28, christian polzer wrote:

> Hello,

> 

> I am currently trying to spread pipeline usage for a jenkins
> environment within my fellow coworkers.
> Of course, th jenkins pipeline is greatly embrased :)

> 

> But what is the documentation in the jenkins book about? Fellow
> CoCoders stumble over the jenkinsfile chapter as the examples are not
> working:
> https://jenkins.io/doc/book/pipeline/



The documentation under jenkins.io/doc/ website should be up-to-date.



The Declarative Pipeline example listed on that page is just an example.
The syntax is correct, but it wouldn't make sense to copy-paste this
particular example directly into Jenkins, unless you're running on a
Unix platform, have a project with a `Makefile` checked in, has a
`check` target that produces JUnit reports etc…


But it would work, assuming you have the Declarative Pipeline plugin
installed (aka Pipeline Model Definition), which comes as standard if
you upgrade the main Pipeline plugin.  You would also need the JUnit
plugin since there's a `junit` step in that example.


Can you say exactly what is not working, so that we can fix it?



You can also report issues via JIRA, using the WEBSITE project (rather
than JENKINS):
https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue



Specific fixes can also be contributed via GitHub by using the "Improve
this page" link at the bottom of every page.


Regards,

Chris

-- 
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/1486994808.3372461.879344152.6EAFE308%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with docker agent (declarative syntax)

2017-02-10 Thread Christopher Orr
Quick correction:



On Fri, 10 Feb 2017, at 12:36, Christopher Orr wrote:

> Hi there,

> 

> On Thu, 9 Feb 2017, at 13:38, Bartłomiej Kruczyk wrote:

>> agent {
>> docker {
>> image: 'myimage'

>> registry: 'localhost:5000'



>> }
>> } 


> 

> A couple of points:

> 

> 1. The syntax documentation is wrong at the moment: you should not add
>a colon after the key
> 2. The key you're looking for is "registryUrl"

> 

> Source:
> https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/3222d5a/pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/AbstractDockerAgent.java#L33-L37
> 

> For example:

> agent {

>   docker {

> image 'foo'

> registryUrl 'registry.example.com'

>   }

> }



The 'registryUrl' value needs to be a proper URI, e.g. '
https://registry.hub.docker.com'


-Chris

-- 
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/1486728135.379567.876708264.4E0EF4AE%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with docker agent (declarative syntax)

2017-02-10 Thread Christopher Orr
Hi there,



On Thu, 9 Feb 2017, at 13:38, Bartłomiej Kruczyk wrote:

> agent {
> docker {
> image: 'myimage'

> registry: 'localhost:5000'



> }
> }
> 





A couple of points:



1. The syntax documentation is wrong at the moment: you should not add a
   colon after the key
2. The key you're looking for is "registryUrl"



Source: 
https://github.com/jenkinsci/pipeline-model-definition-plugin/blob/3222d5a/pipeline-model-definition/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/agent/AbstractDockerAgent.java#L33-L37


For example:

agent {

  docker {

image 'foo'

registryUrl 'registry.example.com'

  }

}



Regards,

Chris




-- 
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/1486726573.373537.876691200.05BF2406%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


Re: Git Client Plugin wiki page missing data?

2016-06-01 Thread Christopher Orr
Hi there,

> On 01 Jun 2016, at 18:53, Dunnigan, Terrence J 
>  wrote:
> Does anyone know why the Git Client Plugin wiki page is missing most of its 
> data?
>  
> Both of these URLs appear to point to the same page, and both appear to be 
> missing everything save the Plugin Information table.
>  
> https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin 
> 
> https://wiki.jenkins-ci.org/pages/viewpage.action?pageId=97091701 
> 
I’ve fixed it (I think).

Confluence, for some odd reason, appears not to understand "+" in a URL like 
everybody else does, and somebody seems to have added an empty 
„Git+Client+Plugin“ page a couple of months ago.
I’ve deleted that page now, and when accessing that URL (bypassing our wiki 
cache), it properly displays the existing „Git Client Plugin“ page:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Client+Plugin?nocache

Regards,
Chris

-- 
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/9CC7E58C-AB84-4FAB-A72F-332EDC5BC573%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Android Emulator plugin is no longer working

2016-04-06 Thread Christopher Orr
According to the log, your AVD called "nexus" is already running, so 
Jenkins isn't able to start it.


Regards,
Chris


On 30/03/16 08:44, Akash Rai wrote:

Hi all,

I recently integrated Android SDK with jenkins, i tried to run the
emulator, but now Jenkins is failing to launch Android Emulator with it.
the skin of emulator was availble with the sdk.
Not sure what's the issue, but here is the log I got. Is there any other
place I can look for log?

Jenkins version: Jenkins ver. 1.472
Android Emulator plugin version: 2.13.1
Android SDK revision: 25.0.4



  > git config --local --remove-section credential # timeout=10
  > git rev-parse
refs/remotes/origin/shiksha_espresso_automation^{commit} # timeout=10
  > git rev-parse
refs/remotes/origin/origin/shiksha_espresso_automation^{commit} # timeout=10
Checking out Revision c23e38160697c68821f85d646305dc07dd9b79d3
(refs/remotes/origin/shiksha_espresso_automation)
  > git config core.sparsecheckout # timeout=10
  > git checkout -f c23e38160697c68821f85d646305dc07dd9b79d3
  > git rev-list c23e38160697c68821f85d646305dc07dd9b79d3 # timeout=10
$ /home/akash/Android/Sdk/tools/android list target
[android] Using Android SDK: /home/akash/Android/Sdk
[android] Waiting 100 seconds before starting emulator...
$ /home/akash/Android/Sdk/platform-tools/adb start-server
* daemon not running. starting it now on port 6637 *
* daemon started successfully *
$ /home/akash/Android/Sdk/platform-tools/adb start-server
$ /home/akash/Android/Sdk/tools/emulator -snapshot-list -no-window -avd
nexus
[android] Starting Android emulator and creating initial snapshot
[android] Erasing existing emulator data...
$ /home/akash/Android/Sdk/tools/emulator -ports 6635,6636 -avd nexus
-no-snapshot-load -no-snapshot-save -wipe-data -no-window
WARNING: SD Card image already in use:
/home/akash/.android/avd/nexus.avd/sdcard.img
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore
option from your config file is ignored.
emulator: WARNING: userdata image already in use, changes will not persist!

emulator: WARNING: cache image already in use, changes will not persist!

[android] Emulator did not appear to start; giving up
$ /home/akash/Android/Sdk/platform-tools/adb disconnect localhost:6636
error: no such device 'localhost:6636'
[android] Stopping Android emulator
$ /home/akash/Android/Sdk/platform-tools/adb kill-server
Archiving artifacts
Finished: NOT_BUILT





On Tuesday, August 28, 2012 at 2:38:00 AM UTC+5:30, Christopher Orr wrote:

Hi again,

As I just wrote in http://jenkins-ci.org/issue/14901
<http://jenkins-ci.org/issue/14901> -- I'm really
having a tough time reproducing this myself.

Can you give any other hints about your environment?  Which OS?  32- or
64-bit?  Did this work on a previous version of the Android SDK
Tools --
if so, which version?  Are your jobs running on the master, or on a
slave?

Any help or ideas would be appreciated!

Thanks,
Chris


On 08/23/2012 11:52 PM, Sam Xiao wrote:
 > Hi all,
 >
 > I updated the Android SDK in my build machine, so I can now run
ICS emulator image, but now Jenkins is failing to launch Android
Emulator with it.  This very same machine + setup used to work well
with my Gingerbread setup.
 >
 > Not sure what's the issue, but here is the log I got. Is there
any other place I can look for log?
 >
 > Jenkins version:Jenkins ver. 1.472  <http://jenkins-ci.org/>
 > Android Emulator plugin version:  2.3
  <http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses 
<http://105.68.13.72:8080/pluginManager/plugin/android-emulator/thirdPartyLicenses>>
 > Android SDK revision: 20.0.3
 >
 >
 >
 > Starting xvnc
 > [workspace] $ /usr/bin/vncserver :2 -geometry 1024x768
 >
 > New 'X' desktop is localhost:2
 >
 > Starting applications specified in /var/lib/jenkins/.vnc/xstartup
 > Log file is /var/lib/jenkins/.vnc/localhost:2.log
 >
 > $ /android_sdk/android-sdk-linux/tools/android list target
 > [android] Using Android SDK: /android_sdk/android-sdk-linux
 > [android] Waiting 60 seconds before starting emulator...
 > $ /android_sdk/android-sdk-linux/platform-tools/adb start-server
 > [android] Starting Android emulator
 > $ /android_sdk/android-sdk-linux/tools/emulator -no-boot-anim
-ports 48312,49016 -avd ics -no-snapshot-load -no-snapshot-save
-no-window
 > * daemon not running. starting it now on port 58303 *
 > * daemon started successfully *
 > *[android] Emulator did not appear to start; giving up*
 > $ /android_sdk/android-sdk-linux/platform-tools/adb disconnect
localhost:49016
 > [android] Stopping Android emulator
 &

Re: active deploy plugin for cf

2016-03-20 Thread Christopher Orr

On 14/03/16 08:14, dileep kumar baratam wrote:


Hi

I need a plugin which can push an app to bluemix/cloud , simply
active deploy plugin for CF .


Do you really need a plugin?

Deploying to Cloud Foundry should be fairly straightforward; indeed I've 
done it from an "Execute shell" steps, and I've seen others do fancier 
implementations with the Pipeline plugin.


IBM themselves have an article and sample shell scripts for Active 
Deploy with Jenkins:

https://developer.ibm.com/bluemix/2016/03/11/active-deploy-service-in-continuous-delivery-pipeline/

Regards,
Chris

--
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/56E9FD9B.8000908%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Included regions feature

2016-03-19 Thread Christopher Orr

On 15/03/16 16:24, Andy Billy wrote:

hi:

  where could I find the option button in jenkins web ui for
included regions feature of gradlescm plugin ?


There isn't a "Gradle SCM" nor a plugin with a similar name.

If you mean the Git SCM, the Git plugin has an "included regions" field, 
which you can find in a job's configuration page by clicking "Add" next 
to "Additional behaviours" and choosing "Polling ignores commits in 
certain paths".


Regards,
Chris

--
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/56EA0121.3030507%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Buildflow/workflow executes code block till next build step even after failure

2016-03-19 Thread Christopher Orr
Sorry, I don't have a good answer, but AFAIK the Build Flow plugin isn't 
really in development any more — you should be able to achieve what 
you're looking for with the Pipeline plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin

Regards,
Chris


On 13/03/16 09:20, Jayan M N wrote:


Here is my FlowScript. `dev.AlwaysFail` is job that will always fail.


def afterFail=false;
def afterFail_2= false;
guard {
 b = build( "dev.AlwaysFail" )
 out.println ("must not appear")//executed even after the error.
 afterFail = true; //executed even after the error.
 b = build( "dev.AlwaysFail" )
 afterFail_2 = true;
} rescue {
 out.println afterFail
 out.println afterFail_2
}

Result from execution
=

guard {
 Schedule jobdev.AlwaysFail 
 Builddev.AlwaysFail #3   
started
 dev.AlwaysFail #3   completed 
 : FAILURE
must not appear
} rescue {
true
false
}
Finished: FAILURE

=



Is there a way to directly execute "guard" when build triggered from flow 
execute?


Thanks,

Jayan

--
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/3a5b966a-410d-4ea1-ba1c-da8e9cb93083%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56E9FC68.2090808%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Environment Variable

2016-03-19 Thread Christopher Orr

On 14/03/16 16:44, Jayesh Iyer wrote:

Hi,

I am using jenkins environment variable, i am specifying property
something like

count=1

the same is present in my build file as




I have specified a property file something as

C:\Users\myname.i\workspace\Project\application.properties

When i trigger the build, the property file gets updated as
count=${env.count} and not the value which is 1 ( I am passing this as a
parameter from jenkins)

Can anyone say what wrong i am doing here


Without more details, not really.

You're right that a build parameter should be exported as an environment 
variable.


It sounds possibly like you're using an Ant build file (perhaps?) to 
write a properties file.


If so, have you included  in your Ant build?

Regards,
Chris

--
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/56E9FEA2.10908%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Best Practices with LTS Updates

2016-03-19 Thread Christopher Orr

On 14/03/16 19:36, Mark Bidewell wrote:

I am managing the Jenkins Server for my company.  Recently, we moved
from 1.609.3 to 1.625.3.  I noticed however that the Required Core
Dependencies for Pipe line skipped 1.625.x and went from 1.609.1 to 1.642.1.

What are the best practices for selecting LTS versions to update?  Would
an upgrade from say 1.609.3 to 1.642.2 be safe?


You're already on LTS, so there aren't many more "best practices", other 
than update regularly :)


But there should generally be no problem with upgrading between releases 
that are relatively close like those two are.


Regards,
Chris

--
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/56E9FF94.4060700%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Equivalent of Throttle Concurrent Builds for Pipeline

2016-03-18 Thread Christopher Orr

On 16/03/16 19:56, Rinaldo DiGiorgio wrote:

Hi

I want to limit the number of pipeline jobs to some number.  Any
ideas on how to do that with pipeline.


I don't know about doing it at the build level, but you can certainly 
prevent individual pipeline stages from running in parallel:

https://github.com/jenkinsci/workflow-plugin/blob/master/TUTORIAL.md#creating-stages

Regards,
Chris

--
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/56EA0251.5070403%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Regarding information on REST API of Jenkins

2016-03-10 Thread Christopher Orr
Visit the link you posted, click on "View Configuration" on the left, 
and scroll to the bottom ("Plot build data"), where the graphs are 
generated.


As you can see there, they are generated from CSV files.

You can see more details on the wiki page for this plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Plot+Plugin


On 08/03/16 16:46, Rohit Sakala wrote:

Hey,

   Thanks for the reply. The graph is an image. I really didn't find
any csv files. Could you please tell me in detail where are these csv
files ? . Also the link you specified has no csv files and no data
related to graph. Could you please explain me a bit detail. I am new to
this.

   Thanks ,

Regards,
SVK Rohit
B.Tech 3rd Year,
International Institute of Information Technology Hyderabad,
India.
https://researchweb.iiit.ac.in/~rohit.sakala/
<https://researchweb.iiit.ac.in/~rohit.sakala/>

On Tuesday, 8 March 2016 06:47:54 UTC+5:30, Christopher Orr wrote:

Hi there,

On 07/03/16 16:35, Rohit Sakala wrote:
 > Is there any API which can give me the data in json
format for
 > the data in the url
 >

https://jenkins.opendaylight.org/releng/view/openflowplugin/job/openflowplugin-csit-1node-periodic-cbench-daily-only-boron/plot/

<https://jenkins.opendaylight.org/releng/view/openflowplugin/job/openflowplugin-csit-1node-periodic-cbench-daily-only-boron/plot/>


No, the Plot Plugin just draws graphs, it doesn't re-interpret and
expose your data for you.

But since you're generating the graphs from CSV files, you could
archive
those CSV files (via the "Archive the artifacts" post-build step),
which
would make them accessible them via a permalink like this one:

https://jenkins.opendaylight.org/releng/view/openflowplugin/job/openflowplugin-csit-1node-periodic-cbench-daily-only-boron/lastSuccessfulBuild/artifact/

<https://jenkins.opendaylight.org/releng/view/openflowplugin/job/openflowplugin-csit-1node-periodic-cbench-daily-only-boron/lastSuccessfulBuild/artifact/>


Then another tool could use those URLs to do the necessary
processing to
create the data format you need.

Regards,
Chris

--
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
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/ce897c5c-fc9a-440b-b05a-2235892e4d87%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/ce897c5c-fc9a-440b-b05a-2235892e4d87%40googlegroups.com?utm_medium=email&utm_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/56E21C0D.2080204%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Regarding information on REST API of Jenkins

2016-03-07 Thread Christopher Orr

Hi there,

On 07/03/16 16:35, Rohit Sakala wrote:

Is there any API which can give me the data in json format for
the data in the url
https://jenkins.opendaylight.org/releng/view/openflowplugin/job/openflowplugin-csit-1node-periodic-cbench-daily-only-boron/plot/


No, the Plot Plugin just draws graphs, it doesn't re-interpret and 
expose your data for you.


But since you're generating the graphs from CSV files, you could archive 
those CSV files (via the "Archive the artifacts" post-build step), which 
would make them accessible them via a permalink like this one:

https://jenkins.opendaylight.org/releng/view/openflowplugin/job/openflowplugin-csit-1node-periodic-cbench-daily-only-boron/lastSuccessfulBuild/artifact/

Then another tool could use those URLs to do the necessary processing to 
create the data format you need.


Regards,
Chris

--
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/56DE283B.4050201%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Web Interface Improvements

2016-03-07 Thread Christopher Orr

Hi there,

Please read the information and follow the instructions here:
https://wiki.jenkins-ci.org/display/JENKINS/Google+Summer+Of+Code+2016

This includes posting to the jenkinsci-dev mailing list (i.e. not this 
mailing list).


This project is *not* related to the Jenkins website, but rather the 
user interface of Jenkins itself.  Please check the archives of the 
other mailing list for more details, as a few people have asked about 
this project.


Regards,
Chris


On 07/03/16 12:56, Devesh Garg wrote:

I am really interested in the project


  "Jenkins Web Interface Improvements "

Can you please guide me where and how to begin?
Do we need to improve the UI of jenkins website?


--
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/56DE26C0.3020102%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Want urgent answer on issue : Disable Configure page http://localhost:8080/configure after installing GO plugin for GOLANG code integration https://wiki.jenkins-ci.org/display/JENKINS/Go+Plugin .

2016-02-21 Thread Christopher Orr
Hi there,

On 18/02/16 07:12, Mahesh Wabale wrote:
> I have to integrate GO lang code with jenkins for autobuild and
> autodeployment feature . Jenkins Has plugin for GO code
> https://wiki.jenkins-ci.org/display/JENKINS/Go+Plugin ..
> But after i installing GO plugin successfully and restart the jenkins
> server , I cant able to edit my system-configuration  for
> jenkins http://localhost:8080/configure . 
> 
> Please give me solution on this issue . And also give ans on if there is
> an alternate solution on this available .

This is a known issue with the Go Plugin, with a workaround:
https://issues.jenkins-ci.org/browse/JENKINS-27499

For future reference, you can find a list of open issues for any plugin
by clicking on the "Open issues" link on the plugin wiki page, e.g.:
https://wiki.jenkins-ci.org/display/JENKINS/Go+Plugin

Regards,
Chris

-- 
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/56C9DED1.4040900%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Workspace directory location for a pipeline!!!

2016-02-21 Thread Christopher Orr
On 18/02/16 06:13, ok999 wrote:
> The workspace of a pipeline/workflow is weird. Its not the usual path on
> the slaves but rather on the master inside the jobs directory. Is this
> the way how it should be?

Generally you shouldn't care where on the build machine the workspace is
created.

With Pipeline, a workspace directory is allocated automatically when you
use the `node` step.  If you want to do work within a workspace on a
build slave, you need to make sure you're specifying that machine as an
argument to the `node` step.

If that doesn't help, it would be helpful to see a concrete example of
what your pipeline looks like and what you expect to see.

Regards,
Chris

-- 
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/56C9DB53.7070206%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: play-autotest-plugin no longer available

2016-02-09 Thread Christopher Orr
I fixed the "Open issues" link — the component name in JIRA was wrong.

Everything else (aside from the wiki URL in POM) seems fine.

Regards,
Chris

P.S. This mail would have been better suited to the jenkinsci-dev
mailing list :)


On 10/02/16 02:01, Rafael Rezende wrote:
> Ok.
> Could it be caused by the mismatching between the artifactId and the
> wiki page Id (if there is such a thing)?
> 
> The first maintainer assigned artifactId "play-autotest-plugin", but a
> wiki page simply as "play-plugin".
> 
> In the Open Issues link I also get an error message: "The value
> 'play-autotest-plugin' does not exist for the field 'component'."
> 
> On Feb 10, 2016 01:47, "Daniel Beck"  > wrote:
> 
> We require that every plugin has a wiki page and links to it from
> the POM.
> 
> For some reason, this plugin's wiki page exists and was still
> rejected. I suggest we wait a bit to see whether this resolves
> itself, otherwise I'll need to investigate.
> 
> On 08.02.2016 , at 10:46, Rafael Rezende
> mailto:rafaelrez...@gmail.com>> wrote:
> 
> > The current release (1.0.0) and the archive pages are unavailable
> (404 not found) from the plugin's wiki:
> > https://wiki.jenkins-ci.org/display/JENKINS/play-plugin
> >
> > Archive link:
> > http://updates.jenkins-ci.org/download/plugins/play-autotest-plugin/
> >
> > Current version:
> > http://updates.jenkins-ci.org/latest/play-autotest-plugin.hpi
> >
> > Was this plugin removed/banned? Or is there some misconfiguration?

-- 
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/56BA9D4F.2090408%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: play-autotest-plugin no longer available

2016-02-09 Thread Christopher Orr
Hi there,

The plugin wiki page was renamed, seemingly in late November, from:
https://wiki.jenkins-ci.org/display/JENKINS/play-plugin?nocache

To:
https://wiki.jenkins-ci.org/display/JENKINS/Play%21+Framework+Plugin

But the POM still points to the old URL that no longer exists:
https://github.com/jenkinsci/play-plugin/blob/play-autotest-plugin-1.0.1/pom.xml#L14

As Daniel mentioned, this means that the plugin won't be included in the
Update Centre because it doesn't have a valid wiki URL:
https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins#HostingPlugins-CreatingaWikipage

However, the old wiki page URL *appears* to still exist (without the
"?nocache"), but this is unfortunately due to a known wiki bug:
https://issues.jenkins-ci.org/browse/INFRA-301

Therefore I've submitted a pull request to override the wiki URL for
your plugin temporarily:
https://github.com/jenkinsci/backend-update-center2/pull/39

i.e. if that PR gets merged, your plugin should reappear in the Update
Centre within a few hours.

But please update the  field in your pom.xml (and maybe add a space
to the  field ;), and next time you make a release maybe let us
know, so that we can remove this temporary override.

Regards,
Chris


On 10/02/16 01:47, Daniel Beck wrote:
> We require that every plugin has a wiki page and links to it from the POM.
> 
> For some reason, this plugin's wiki page exists and was still rejected. I 
> suggest we wait a bit to see whether this resolves itself, otherwise I'll 
> need to investigate.
> 
> On 08.02.2016, at 10:46, Rafael Rezende  wrote:
> 
>> The current release (1.0.0) and the archive pages are unavailable (404 not 
>> found) from the plugin's wiki:
>> https://wiki.jenkins-ci.org/display/JENKINS/play-plugin
>>
>> Archive link:
>> http://updates.jenkins-ci.org/download/plugins/play-autotest-plugin/
>>
>> Current version:
>> http://updates.jenkins-ci.org/latest/play-autotest-plugin.hpi
>>
>> Was this plugin removed/banned? Or is there some misconfiguration?

-- 
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/56BA9C4D.8090708%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: PeriodicWork not running periodically

2016-01-14 Thread Christopher Orr
On 14/01/16 21:30, Kevin wrote:
> Hi all, I've got some custom cloud providers that don't seem to get
> triggered, I've traced it back to NodeProvisionerInvoker not being
> called (even after 30 minutes of waiting), I can call the
> nodeProvisioners by hand (using the update function) in the same way
> that the NodeProvisionerInvoker does in the groovy script console and
> things seem to work.  Actually it seems like a number of bits related to
> PeriodicWork classes aren't working since I assume git polling and the
> periodic build setting are a PeriodicWork things, but they're also not
> triggering.
> 
> I did also look at PeriodicWork.all().collect {it.class.name}
> and println jenkins.util.Timer.get() and got:
> 
> hudson.diagnosis.HudsonHomeDiskUsageChecker,
> hudson.diagnosis.MemoryUsageMonitor,
> hudson.model.FingerprintCleanupThread,
> hudson.model.LoadStatistics$LoadStatisticsUpdater,
> hudson.model.WorkspaceCleanupThread,
> hudson.slaves.ComputerRetentionWork,
> hudson.slaves.ConnectionActivityMonitor,
> hudson.slaves.NodeProvisioner$NodeProvisionerInvoker,
> hudson.triggers.Trigger$Cron,
> jenkins.model.DownloadSettings$DailyCheck,
> org.jenkinsci.plugins.periodicreincarnation.PeriodicReincarnation]
> 
> 
> and 
> 
> jenkins.util.ErrorLoggingScheduledThreadPoolExecutor@6d72bb0e[Running,
> pool size = 10, active threads = 10, queued tasks = 2521, completed
> tasks = 1134830]

If the number of active threads remains equal to the pool size, then I
would guess that some tasks are getting stuck.

Can you see a bunch of timer-related or otherwise suspicious-looking
tasks running if you go to /threadDump on your Jenkins instance?

Regards,
Chris

-- 
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/56980F9F.2030009%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Slack Plugin doesn't notify channel

2016-01-14 Thread Christopher Orr
Feel free to just add documentation to the wiki page (as it suggests you
do), since that's the place most people will look for information:
https://wiki.jenkins-ci.org/display/JENKINS/Slack+Plugin says

Regards,
Chris


On 14/01/16 19:28, Brenton wrote:
> So who wants to write up a PR? :)
> 
> On 13 January 2016 at 21:47, Mike Meluso  > wrote:
> 
> Yes I agree, it should be added to the instructions. I'm glad I
> found this thread or I would've given up.
> 
> On Monday, March 30, 2015 at 4:31:34 PM UTC-4, Brantone wrote:
> 
> Agreed would be handy ... even anything at this point since it's
> pretty scarce.
> It does seem slightly counter-intuitive that a Post-build action
> would be required for something that could send a notification
> before it even builds ... but, there ya have it.
> 
> On 30 March 2015 at 13:23, Hugo M  wrote:
> 
> Wow! I didn't know that I should add it as a post-build
> action. It worked like a charm. Thanks!!
> 
> Maybe this should be added to "Jenkins Instructions" section
> of the repo README?
> 
>  
> Hugo Massaroli on about.me
>   
> Hugo Massaroli
> about.me/hugo.massaroli
>  
> 
> 
> 
> 2015-03-30 14:27 GMT-03:00 Brenton Bartel :
> 
> No other dependency as far as I'm aware. Have you added
> Slack as a post-build action and checked off necessary
> options in the job itself?
> 
> 
> On 30 March 2015 at 10:13, Hugo M  wrote:
> 
> Another discovery, when I press "Test connection" I
> see things happening in the jenkins.log. But If I
> start a job, or if that job fails (job configured
> with Slack plugin), nothing appears on the log
> (nothing related with Slack plugin).
> 
> Does Slack plugin has a dependency on another
> plugin? It seems that is simply not triggering the
> post when a job start / fail / etc.
> 
>  
> Hugo Massaroli on about.me
>   
> Hugo Massaroli
> about.me/hugo.massaroli
>  
> 
> 
> 
> 2015-03-30 10:10 GMT-03:00 Hugo M :
> 
>  Hi Brantone, thanks for your answer.
> 
> Both "Test connection" in job configuration and
> in Global Settings work in the sense that a
> message is posted on Jenkins: "Slack/Jenkins
> plugin: you're all set."
> 
> If I put wrong data there I get "Success" too
> but no message is posted, and I can see errors
> in the Jenkins log.
> 
> My problem is that I'm not getting the
> notifications from the jobs anyway.
> 
> Maybe this is related with the fact that I'm
> using a private channel? But I can see the
> Jenkins message even if it's a private channel,
> so it souldn't be an issue.
> 
> 
> 
>  
> Hugo Massaroli on about.me
>   
> Hugo Massaroli
> about.me/hugo.massaroli
>  
> 
> 
> 
> 2015-03-30 4:46 GMT-03:00 Brantone
> :
> 
> I'm guessing part of what you're seeing is
> mentioned
> here: 
> https://github.com/jenkinsci/slack-plugin/issues/51
> 
> Have you verified your configs in the Manage
> Jenkins > Configure System > Global Slack
> Notifier Settings  ?
> 
> I've found that that's a better test of
> configuration and values stick better when
> individual jobs use them.
> 
> 
> On Thursday, 26 March 2015 11:59:09 UTC-7,
> Hugo M wrote:
> 
> Hello, I'm using:
> 
> https://wiki.jenkins-ci.org/__display/JENKINS/Slack+Plugin
> 
> 
> 
> Version: 1.7
>

Re: Security best practice for Cloudbees Docker Workflow?

2016-01-09 Thread Christopher Orr
On 09/01/16 13:44, Thomas Goeppel wrote:
> Hello community,
> 
> I've been experimenting with the Cloudbees Docker Workflow plugin, and I
> really like the ease of use of this DSL. Now I'd like to get security right.
> 
> Problem: the plugin assumes that the docker binary is in the path
> .
> In my understanding this has the implication that the user that issues
> docker commands (e.g. jenkins) has to be in the docker group!
> 
> The *docker* variable provided by the docker workflow plugin limits the
> security impact by explicitly setting a non-priviledged  user with the
> "-u" option. However, at least in docker 1.9.1 I can pass a second "-u"
> option which overwrites the original settings:
> 
> docker.image('ubuntu').inside ('-v /etc:/etc-host -u 0') {
> sh '''
> whoami
> # -> root
> awk '{gsub(/[A-Z]/,"!"); print}' /etc-host/shadow
> # -> slightly masked password hashes
> '''
> }
> 
> I could also have passed in the "--privileged" flag.
> 
> For a moment I asked myself it it would be worthwhile filing an ER, as
> to have the plugin sanitize the "docker run" parameters. But the
> fundamental problem is that a Jenkins job has the right to run the
> docker commands. Running the following script would be even worse:
> 
> node {
> sh 'docker run  -v /etc:/etc-host ubuntu cat /etc-host/shadow'
> } 
> 
> 
> One option would be to write a shim for the docker command, that only
> allows a subset of commands, and sanitizes the options and parameters.

Even if you do that, the jenkins user, as part of the docker group, will
still have direct access to the unix socket that the Docker daemon uses.

As is quite often the case with a CI server, you most likely need to
either trust the users who can configure jobs (or edit Workflow scripts
(if in source control)), or lock down the Jenkins configuration to allow
only specific users.

The Docker security guide also says "only trusted users should be
allowed to control your Docker daemon":
https://docs.docker.com/engine/articles/security/

Regards,
Chris

-- 
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/5691A024.8030504%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Problem in Cloudbees custom build environment plugin integration with Jenkins

2016-01-08 Thread Christopher Orr
Hi there,

On 08/01/16 09:59, puneet singh wrote:
> I am using cloudbees custom build environment plugin to create docker
> container and run CI build inside it.
> I'm facing following error kindly help me with this.
> 
> ERROR: Processing failed due to a bug in the code. Please report this to 
> jenkinsci-users@googlegroups.com
> java.lang.RuntimeException
> : 
> Failed to build docker image from project Dockerfile
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:127)
> 
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage(DockerfileImageSelector.java:41)
> 
>   at 
> com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:167)
> 

You didn't mention which version of the plugin you're using, but it
seems to be the latest version.

The plugin appears to be wrongly causing that "processing failed" error
message to be shown — that should be handled more gracefully.  Code:
https://github.com/jenkinsci/docker-custom-build-environment-plugin/blob/docker-custom-build-environment-1.6.4/src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java#L120-L128

According to that part of the source code, running the `docker build`
command failed, and any output from the docker command will have been
written to the build log, right before the error message you've posted
here.  So try looking there.

I also note that there has been a lot of activity since the most recent
plugin release, so maybe the maintainers will make a new release soon,
which will fix this or add more checks or more logging etc..

Regards,
Chris


-- 
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/569050B4.9080208%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Thread hijacking

2016-01-08 Thread Christopher Orr
On 08/01/16 07:58, Dirk Heinrichs wrote:
> please don't hijack other peoples threads, it's considered bad habit.

False accusations are bad as well ;)

The parent didn't hijack any threads, as you can see from a regular
email client, the Google Groups web page for the thread, or from the
headers of the email.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56904E33.2090107%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Java API for Team Foundation Server

2016-01-08 Thread Christopher Orr
On 07/01/16 18:01, Andy Falanga wrote:
> Does anyone know the source (not the code but who produces) for the Java
> API used by the Jenkins Team Foundation Server plugin?

The plugin bundles a com.microsoft.tfs.sdk JAR file:
https://github.com/jenkinsci/tfs-plugin/blob/0364972/pom.xml#L219-L225

This appears to come from Microsoft's TFS SDK for Java.

Regards,
Chris

-- 
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/56904DE7.303%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: which logo do you like best?

2015-12-14 Thread Christopher Orr
Something like #2 would be good — #6 is also ok.

Don't forget to get permission to use the Jenkins trademark! :D

Regards,
Chris


On 14/12/15 20:17, Alyssa Tong wrote:
> Hello,
> 
> Planning is underway for Jenkins World 2016 in Santa Clara, CA. This
> will be a three days Jenkins conference for 2016.  I wanted to solicit
> feedback for the new Jenkins World logo.  Attached are some options to
> choose from, let us know which logo you like best and if you have better
> pls do share.
> 
> thnx
> alyssa

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/566F2588.3010605%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: [xvfb-plugin] fails second time

2015-12-10 Thread Christopher Orr
On 10/12/15 21:19, V. Mark Lehky wrote:
> I have just installed the xvfb-plugin on my Jenkins:
> - Linux jenkins 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u6 x86_64 GNU/Linux
> - Xvfb Version: 2:1.12.4-6+deb7u6
> - Jenkins ver. 1.641
> - Xvfb plugin 1.1.2
> 
> I configured everything with defaults as per documentation.
> 
> The first time I run a job, in the logs I can see:
> 
> Xvfb starting$ Xvfb :1 -screen 0 -fbdir
> /var/lib/jenkins/xvfb-99-1021388786522495009.fbdir
> and my job runs fine.
> 
> Every *subsequent* run, the logs say:
> Xvfb starting$ Xvfb :1 -screen 0 -fbdir
> /var/lib/jenkins/xvfb-100-2665068639033469958.fbdir
> 
> ERROR: Xvfb failed to start, consult the lines above for errors
> 
> The "lines above" are just those two, nothing else. Is there a log
> somewhere? If I reboot the server, then I am back to "first time";
> however this is a pretty drastic workaround.
> What do I do to resolve this?
> 
> TIA for any advice.

I would guess that Xvfb isn't actually getting shut down after the
initial build?  Do you see it still running after a build completes?

Do you see the "Xvfb stopping" line in the output, and any other errors
around the same time?

Regards,
Chris

-- 
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/566A05E4.4060902%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy Question: revision from job?

2015-12-10 Thread Christopher Orr
Well, I had the advantage of having used that API in my own plugin before :)

But yeah, Git is just plugin like any other, so there's no magical way
of knowing how to access data from its internals.

Though if you know that "Actions" exist, and are a mechanism for plugins
to associate data with a build, you might be able to get somewhere in
general by using the Script Console as Brian mentioned, coupled with a
bit of digging on GitHub.

If you have specific questions, the mailing list or IRC are also good
bets :)

Regards,
Chris


On 10/12/15 15:18, Guy Matz wrote:
> Nicely done!!  How the heck was I supposed to know that!?  :-(  The API
> is less than intuitive and does not seem to be well documented.  Any
> advice on how to best use it?
> 
> Thanks again!!
> 
> On Wed, Dec 9, 2015 at 7:28 PM, Christopher Orr  <mailto:ch...@orr.me.uk>> wrote:
> 
> Hi there,
> 
> On 09/12/15 23:40, Guy Matz wrote:
> > Hi!  Anyone know how I can retrieve the git revision from a job?
> >
> > I can get to the build:
> >
> > j = Jenkins.instance.getJob('render-master')
> > b475 = j.getBuildByNumber(475)
> >
> > but I can't find a way to to get the git revision associated with that
> > build.  Any thoughts would be appreciated!
> 
> Git metadata is stored in a `BuildData` action, so something like this
> (untested) should work:
> 
> 
> b475.getAction(hudson.plugins.git.util.BuildData.class).lastBuiltRevision.sha1String
> 
> Regards,
> Chris
> 
> --
> 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
> <mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/jenkinsci-users/5668C714.30504%40orr.me.uk.
> 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
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CABnTgtWXk1o10d537DPv37zJe-uFwtnvo9rjZ8E%2BzLkb%3D%2BOitw%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CABnTgtWXk1o10d537DPv37zJe-uFwtnvo9rjZ8E%2BzLkb%3D%2BOitw%40mail.gmail.com?utm_medium=email&utm_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/566A03EA.20902%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Groovy Question: revision from job?

2015-12-09 Thread Christopher Orr
Hi there,

On 09/12/15 23:40, Guy Matz wrote:
> Hi!  Anyone know how I can retrieve the git revision from a job?
> 
> I can get to the build:
> 
> j = Jenkins.instance.getJob('render-master')
> b475 = j.getBuildByNumber(475)
> 
> but I can't find a way to to get the git revision associated with that
> build.  Any thoughts would be appreciated!

Git metadata is stored in a `BuildData` action, so something like this
(untested) should work:

b475.getAction(hudson.plugins.git.util.BuildData.class).lastBuiltRevision.sha1String

Regards,
Chris

-- 
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/5668C714.30504%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Zero Day attack due to Apache Commons statement to widespread Java object de-serialisation vulnerability

2015-12-07 Thread Christopher Orr
Also note that, if you're planning a Jenkins upgrade anyway, there's
another Jenkins release coming out tomorrow (1.625.3) to fix one or more
new security issues:
https://groups.google.com/forum/#!topic/jenkinsci-advisories/UbJeKl4Vxbw

So, you may want to apply the CLI workaround from the blog post that
Mark linked to just now, and do a full upgrade tomorrow (or more likely
Thursday, as releases seem to be done in US West Coast working hours).

Regards,
Chris


On 08/12/15 02:09, Mark Waite wrote:
> Yes, based
> on 
> https://jenkins-ci.org/content/mitigating-unauthenticated-remote-code-execution-0-day-jenkins-cli
>  ,
> that is impacting Jenkins.
> 
> The link you posted states that Jenkins is affected.  It includes the
> link to the above Jenkins blog posting which describes a remediation you
> can take with your existing Jenkins version, and a statement that
> 1.625.2 includes the fix.  If you read those two postings, you'll be
> able to answer your own questions, including describing the bug and its
> vulnerability (whatever that means to you).
> 
> Never waste a crisis.  In this case, use it as the opportunity to
> upgrade your environment to Java 8 (or at least to Java 7), and to
> install the latest Jenkins long term support release (1.625.2).
> 
> Mark Waite
> 
> On Mon, Dec 7, 2015 at 5:56 PM Indra Gunawan (ingunawa)
> mailto:ingun...@cisco.com>> wrote:
> 
> 
> https://blogs.apache.org/foundation/entry/apache_commons_statement_to_widespread
> 
> Building on Frohoff's tool ysoserial
> , Stephen Breen (@breenmachine
> ) of Foxglove Security inspected
> various products like WebSphere, JBoss, Jenkins, WebLogic, and
> OpenNMS and describes
> 
> (http://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/)
> for each of them various attack scenarios.
> 
> Both research works show that developers put too much trust in Java
> Object Serialization. Some even de-serialize objects
> pre-authentication. When deserializing an Object in Java you
> typically cast it to an expected type, and therefore Java's strict
> type system will ensure you only get valid object trees.
> Unfortunately, by the time the type checking happens, platform code
> has already created and executed significant logic. So, before the
> final type is checked a lot of code is executed from the
> readObject() methods of various objects, all of which is out of the
> developer's control. By combining the readObject() methods of
> various classes which are available on the classpath of the
> vulnerable application an attacker can execute functions (including
> calling Runtime.exec() to execute local OS commands).
> 
> The best protection against this, is to avoid using a complex
> serialization protocol with untrusted peers. It is possible to limit
> the impact when using a custom ObjectInputStream which
> overridesresolveClass
> 
> 
>  to
> implement a whitelist
> approach http://www.ibm.com/developerworks/library/se-lookahead/.
> This might however not always be possible, such as when a framework
> or application server provides the endpoint. This is rather bad
> news, as there is no easy fix and applications need to revisit their
> client-server protocols and overall architecture.
> 
> …
> 
> Is this truly impacting Jenkins?  Our IT suggests the following
> Jenkins version to upgrade before the end of year shut-down.  I want
> to know the impact of this bug, and its vulnerability.  
> 
> Remediation:
> 
>   * Jenkins main line users should update to 1.638
>   * Jenkins LTS users should update to 1.625.2
> 
> 
> Thank you
> -Indra
> 
> -- 
> 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/D28B6AAB.3D25B%25ingunawa%40cisco.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

Re: Get job schedule from API

2015-12-04 Thread Christopher Orr
Only part of the job config is exposed in the API.  For example, SCM
info is there, but not build triggers.  I imagine you could file a
feature request for that :)

Though there is at least a way of programmatically grabbing the job
config, so if you're authenticated, you can parse the XML, e.g.:

curl -s https://ci.jenkins-ci.org/job/infra_update_center_v3/config.xml
| xpath -e '/project/triggers/hudson.triggers.TimerTrigger/spec/text()'

Regards,
Chris


On 04/12/15 17:02, cchap...@kinaxis.com wrote:
> Thanks Victor but I'm not trying to "schedule" a build.  I want a way to
> access the recurring schedule of the job from the API (i.e.  The "0 0 *
> * *" in the picture below).
> 
> 
> 
> 
> 
> On Friday, December 4, 2015 at 10:08:17 AM UTC-5, Victor Martinez wrote:
> 
> https://YOUR_JENKINS_URL/job/YOUR_JOB/api/
> 
> 
> Look at the Perform a build section
> 
> Cheers
> 
> On Friday, 4 December 2015 15:35:04 UTC+1, ccha...@kinaxis.com wrote:
> 
> Is there a way to get the schedule for a job from the API?  I
> can't find it anywhere. :(
> 
> Thanks,
> Clint
> 
> -- 
> 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/ddc8ca2e-0571-4b35-836c-41095dd19e4d%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5661DF45.1060502%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: How to use proxy socks with Jenkins

2015-12-01 Thread Christopher Orr
>From the example on the wiki page, you add them as Java options:

  java -D -D -jar jenkins.war


You don't mention which OS or Jenkins package you're using, or how you
modified the startup script, so it's hard to give specific info.

But on Debian, you would modify JAVA_ARGS in /etc/default/jenkins, and
JENKINS_JAVA_OPTIONS in /etc/sysconfig/jenkins for the RPM package.

There's some more info to be found on the wiki here:
https://wiki.jenkins-ci.org/display/JENKINS/Use+Jenkins#UseJenkins-RunningJenkinsasadaemon

Regards,
Chris


On 30/11/15 10:55, donovan.bailey2...@gmail.com wrote:
> Thanks but where do you specify the socks proxy settings? Can this be
> added to the jenkins startup script? I have tried but the process
> doesn't start so i am clearly putting it in the wrong place. Has anyone
> got this successfully working?
> 
> 
> On Friday, 27 November 2015 23:52:58 UTC, Christopher Orr wrote:
> 
> It should work if you use the regular Java proxy properties:
> https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy
> <https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy>
> 
> i.e. "socksProxyHost" and co:
> 
> https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html
> 
> <https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html>
> 
> 
> Regards,
> Chris
> 
> 
> On 27/11/15 12:34, donovan.b...@gmail.com  wrote:
> > Hi, i have installed Jenkins inside our corporate network. I would
> like
> > to SSH to Github to pull down code but i can't work out how to
> configure
> > Jenkins to use socks proxy 5 instead of a normal http proxy. We
> can only
> > SSH outside if we use a socks proxy. Is it a system wide change or a
> > change we need to make in Jenkins?
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Jenkins Users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send
> > an email to jenkinsci-use...@googlegroups.com 
> > <mailto:jenkinsci-users+unsubscr...@googlegroups.com >.
> > To view this discussion on the web visit
> >
> 
> https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com
> 
> <https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com>
> 
> >
> 
> <https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com?utm_medium=email&utm_source=footer
> 
> <https://groups.google.com/d/msgid/jenkinsci-users/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com?utm_medium=email&utm_source=footer>>.
> 
> > For more options, visit https://groups.google.com/d/optout
> <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
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/f4059e21-db64-4214-bc4f-b252862a2801%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/f4059e21-db64-4214-bc4f-b252862a2801%40googlegroups.com?utm_medium=email&utm_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/565E3FF7.9040507%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Build flow "build" function doesn't return a build object if FAILED or UNSTABLE

2015-12-01 Thread Christopher Orr
Hi there,

On 01/12/15 14:17, Valeriy Leykin wrote:
> I'm using the build flow in my jobs and I would like to get any build
> result from build object even if the build is failed or unstable.

I haven't used Build Flow, but I would guess that this is a basic
scoping problem.

BUILD_TO_RETURN is defined in the "try" block, which means it's not
visible outside of that block, i.e. it won't exist and so returns `null`
when the "catch" block tries to access it.

Try defining your variable before the "try" block:

  def BUILD_TO_RETURN
  try {
BUILD_TO_RETURN = build(...)
  } catch (...) {
...
  }

Regards,
Chris

-- 
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/565E3E1E.2050208%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Get API token using API

2015-12-01 Thread Christopher Orr
On 30/11/15 16:51, cchap...@kinaxis.com wrote:
> Is it possible to get the API token using the API after authenticating
> with the users real password?

No, user API tokens are not exposed via the API.

Regards,
Chris

-- 
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/565E3BA5.80201%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: android-x86 or Genymotion emulators with Jenkins

2015-12-01 Thread Christopher Orr
Genymotion emulators should automatically become available via adb, so
you shouldn't have to do any special setup.

If not, you can get the IP address of the emulator via the Genymotion
shell (I believe the shell command is "devices list"), and then run `adb
connect $IP`.


On 01/12/15 14:36, Kirshan Luhana wrote:
> Greetings
> 
> did anyone tried android-x86 genymotion emulators with Jenkins, who do
> you connect and get console output ?
> 
> 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/565E3454.2030101%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: How to use proxy socks with Jenkins

2015-11-27 Thread Christopher Orr
It should work if you use the regular Java proxy properties:
https://wiki.jenkins-ci.org/display/JENKINS/JenkinsBehindProxy

i.e. "socksProxyHost" and co:
https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html

Regards,
Chris


On 27/11/15 12:34, donovan.bailey2...@gmail.com wrote:
> Hi, i have installed Jenkins inside our corporate network. I would like
> to SSH to Github to pull down code but i can't work out how to configure
> Jenkins to use socks proxy 5 instead of a normal http proxy. We can only
> SSH outside if we use a socks proxy. Is it a system wide change or a
> change we need to make in Jenkins?
> 
> -- 
> 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/573d3825-290d-47dc-af47-bea8591f1606%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5658ECCC.8090809%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not saving P12 certificate from Google Service Account from private key

2015-11-21 Thread Christopher Orr
Which platform is this happening on?

There's a report from a Windows user here:
https://issues.jenkins-ci.org/browse/JENKINS-31638

It did seem to be working for me on Linux, as that user also reports.


On 21/11/15 00:30, Christopher Orr wrote:
> Weird.  There should be `emailAddress` and `p12KeyFile` tags within
> `serviceAccountConfig`.
> 
> I see that v0.4 of the plugin came out recently which, from a quick look
> at the code changes, makes some changes in how the data is stored — but
> I tested with 0.3, upgrading to 0.4, and re-saving with 0.4 and
> everything worked fine (and there were no data changes on disk).
> 
> Do you see any errors in the Jenkins logs when you save the credential?
>  Does the .p12 file get saved to $JENKINS_HOME/gauth?
> 
> Regards,
> Chris
> 
> 
> On 20/11/15 02:11, Andrew Novinger wrote:
>> I do not see the file being saved in the credentials.xml file.
>>
>> Here is the Google Store portion of the credentials.xml file
>>
>>   
>>
>> > plugin="google-oauth-plugin@0.4">
>>   
>>   Google
>>   > class="com.google.jenkins.plugins.credentials.oauth.JsonServiceAccountConfig"/>
>>
>> 
>>   
>>
>> -- 
>> 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
>> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/d829d30c-eecc-4a2d-829b-f3577a402265%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/d829d30c-eecc-4a2d-829b-f3577a402265%40googlegroups.com?utm_medium=email&utm_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/565092A2.6010302%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not saving P12 certificate from Google Service Account from private key

2015-11-20 Thread Christopher Orr
Weird.  There should be `emailAddress` and `p12KeyFile` tags within
`serviceAccountConfig`.

I see that v0.4 of the plugin came out recently which, from a quick look
at the code changes, makes some changes in how the data is stored — but
I tested with 0.3, upgrading to 0.4, and re-saving with 0.4 and
everything worked fine (and there were no data changes on disk).

Do you see any errors in the Jenkins logs when you save the credential?
 Does the .p12 file get saved to $JENKINS_HOME/gauth?

Regards,
Chris


On 20/11/15 02:11, Andrew Novinger wrote:
> I do not see the file being saved in the credentials.xml file.
> 
> Here is the Google Store portion of the credentials.xml file
> 
>   
>
>  plugin="google-oauth-plugin@0.4">
>   
>   Google
>class="com.google.jenkins.plugins.credentials.oauth.JsonServiceAccountConfig"/>
>
> 
>   
> 
> -- 
> 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/d829d30c-eecc-4a2d-829b-f3577a402265%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/564FAD0B.4050704%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins not saving P12 certificate from Google Service Account from private key

2015-11-18 Thread Christopher Orr
Do you see the files being created in $JENKINS_HOME/credentials/gauth
(that's from memory, so not 100% sure on the path)?

Are those gauth p12 filenames listed in $JENKINS_HOME/credentials.xml?


On 18/11/15 19:45, Andrew Novinger wrote:
> For some reason Jenkins lost the original p12 certificate from Google
> for the API Service account to upload to google.  I have recreated a new
> P12 certificate, and downloaded it my local machine.  When I try to add
> the certificate to the account, it shows up, when I hit save and reopen
> the credentials, the certificate is missing.  I have tried removing the
> Google Plugin, removing all the config files I could find for it, and
> reinstall plugin, and same result as before.  Any other thoughts or
> suggestions to try to get this to work.
> 
> 
> -- 
> 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/c35d2174-6f4b-4c6e-ac17-df48ce2f11c7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/564D1DF1.3030003%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Future of the Maven Project Type

2015-11-18 Thread Christopher Orr
On 18/11/15 11:47, Stephen Connolly wrote:
> My plan, once I come up with a better name for literate, is to have that
> project type be able to provide smart builds of Maven projects with near
> zero configuration (other than adding a marker file to say literate
> should consider this as a valid branch)

Sounds good!


> I am a sad panda that this project type did not take off... but whatever

Am I missing something?  There are posts here every so often that
mention the amazingness of Literate, yet it's never had a release, so
nobody can install it, so I'm not surprised it hasn't taken off...

Unless you scroll to the bottom of a blog post on jenkins-ci.org from
2013, or to the bottom of the infobox-less wiki page, and then change
your Update Centre, you'll never see the plugin.

If it works even half-decently, just release it.. right? :)

Regards,
Chris

-- 
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/564D1D8E.70503%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: how to get prqa-plugin.hpi

2015-11-18 Thread Christopher Orr
See https://issues.jenkins-ci.org/browse/INFRA-489


On 13/11/15 03:19, zhangkm wrote:
> Hi,
> why I can't get the plugin(prqa-plugin.hpi) from
> https://wiki.jenkins-ci.org/display/JENKINS/Programming+Research+Plugin ? 
> 
> It always prompts error ,"The requested URL /latest/prqa-plugin.hpi was not
> found on this server."  
> who can tell me another way to get the prqa-plugin.
> 
> Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/564D1AEA.6050707%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Global environmental variables

2015-10-16 Thread Christopher Orr
You can do something similar with the EnvInject plugin; there's a build
step to export some properties to the environment — that would at least
avoid the necessity to `source` the script everywhere.


On 16/10/15 21:53, Peter Berghold wrote:
> Yah... thought of that and I'm trying to avoid that.
> 
> 
> On Fri, Oct 16, 2015, 15:14 John Mellor  > wrote:
> 
> I write out a file containing the globals and then source it
> wherever required.  For downstream jobs, I have to make the file an
> artifact, so it gets copied to the master node, and then use the
> Copy-To-Slave plugin to pull it over to the current node.
> 
> __ __
> 
> P.S, all of my builds use various forms of freestyle projects, so I
> don’t know how this would work in some other make engine like mvn.
> 
> __ __
> 
> *From:*jenkinsci-users@googlegroups.com
> 
> [mailto:jenkinsci-users@googlegroups.com
> ] *On Behalf Of *Peter Berghold
> *Sent:* October-16-15 14:57
> *To:* jenkinsci-users@googlegroups.com
> 
> *Subject:* Global environmental variables
> 
> __ __
> 
> Riddle me this Batman.
> 
> __ __
> 
> Is there a way in Jenkins to set a global value that build jobs can
> access in a shell? 
> 
> __ __
> 
> Reason I ask is I'm about to create a build job that sets up files
> for release by gathering a host of modules, staging them and then
> creating not one but two tarballs for distribution.   I need to
> designate what the build tag is to help name the tarballs.
> 
> __ __
> 
> modules-{TAG}-{SEMANTIC VERSION}-release.tar.gz
> 
> __ __
> 
> I'd like the to set the TAG and SEMANTIC VERSION in one place and
> have it carry everywhere
> 
> __ __
> 
> -- 
> 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/CAArvnv3Uo5wuYOXhcpOm-mnf6tP9ON9KAUhJE%3DzzpRc761W16w%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/97e85cf2af374fe0b66a54ca5bd1c1f4%40mbx01colo01p.esentire.local
> 
> .
> 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/CAArvnv1o7-SEiq1jDrHhMNmaP_ZhFQpYNDfy7i9RWFeLYr%3D9sg%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/5621685F.3040003%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: NullPointerException received during build for my project

2015-10-15 Thread Christopher Orr
On 15/10/15 15:50, Youngho Cho wrote:
> Today I installed 1.633
> 
> And I got following console output during my project build.
> 
> Is that already known issue ?

Google seems to think so:
https://www.google.com/search?q=jenkins+javax.mail.internet.InternetAddress.toString(InternetAddress.java:461)
https://issues.jenkins-ci.org/browse/JENKINS-26740


> How can I avoid this ?

Double-check that your "Reply-to" email address is valid (or empty) in
the Jenkins system config.  Otherwise, that issue suggests downgrading
to version 1.12 of the Mailer plugin.


> ERROR: Processing failed due to a bug in the code. Please report this to 
> jenkinsci-users@googlegroups.com
> java.lang.NullPointerException
>   at 
> javax.mail.internet.InternetAddress.toString(InternetAddress.java:461)
>   at 
> javax.mail.internet.InternetAddress.toString(InternetAddress.java:426)
>   at 
> javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707)
>   at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694)
>   at 
> jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179)

-- 
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/561FDAF0.3070203%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Slave for Android UI Test

2015-10-14 Thread Christopher Orr
On 14/10/15 00:58, Kirshan Luhana wrote:
> I heard there is some difference between running UI / Android projects
> from studio and Jenkins.

I don't know where/what you heard, but there shouldn't be any
Jenkins-specific issues.  You can already build Android apps from the
command line using Gradle, and doing it in Jenkins is no different.


> We are setting Jenkins slave first time for UI test, is there any
> special consideration for setting Android / Gradle environment ,
> versions, environment variables and some special plugins / tools to
> install ?

The easiest way to build an app with Jenkins (or anywhere) is to add the
SDK Manager Gradle plugin to your Android project:
https://github.com/JakeWharton/sdk-manager-plugin

Building on Jenkins then just requires checking out the source code, and
running the ./gradlew task(s) you want — either with an "Execute shell"
step, or by using the Gradle plugin.

If you additionally want Jenkins to run an emulator for UI tests, you
can use this plugin:
https://wiki.jenkins-ci.org/display/JENKINS/Android+Emulator+Plugin

Regards,
Chris

-- 
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/561E5F16.9030603%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Remote build with token parameter crashing

2015-09-17 Thread Christopher Orr
It would probably help to post the error message somewhere.

Regarding the Build Token Root Plugin, its documentation says you should
use /buildByToken/build?job=NAME&token=TOKEN — so I guess that deciding
to use /job/NAME/buildByToken/build?token=TOKEN isn't likely to work.

Regards,
Chris


On 16/09/15 14:35, John Marks wrote:
> The same thing happens with the Build Token Root Plugin (X is used
> instead of the real server DNS):
> 
> curl -X POST
>  
> http://X:8915/jenkins/job/build-entity-service/buildByToken/build?token=gmasbuild
> 
> I'm running with Tomcat 7.0.47, so I also made sure that URI encoding is
> UTF-8 (I don't get a warning in the Jenkins console anymore.)
> 
> Something else is wrong. Should I try running with a different container
> or installing the latest version?
> 
> On Tuesday, September 15, 2015 at 1:30:03 PM UTC-4, John Marks wrote:
> 
> I'm using the following linux command line to do a remote build
> using Jenkins version 1.613
> 
> curl -X POST
>  
> http://gmastst-app2.cadm.harvard.edu:8915/jenkins/job/build-gmas-entity-service/build
> 
> 
> --data token=gmasbuild
> 
> What I get looks like a long HTML response that's expecting a log in
> followed by a stack trace which says it can't find method
> java.net.URLEncoder.encode().
> 
> A similar command line (host, build name and token differ) run
> against version 1.541 works flawlessly. I've tried the above using
> both Java 1.7. and 1.8 with the same result.
> 
> Can someone help me figure out what might be wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55FB3FE4.40901%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins HTTP frontend not acceccable, jenkins/java service needs most CPU/RAM capacity on jenkins service

2015-09-12 Thread Christopher Orr
Please don't post 3MB+ log files (twice) to a list with ~7000 people on it.

The suggestion was to take a thread dump when Jenkins "goes crazy",
rather than to post a log file covering a huge period of time.


On 08/09/15 07:40, jje wrote:
> Find attached jenkins syslog. I've to admit log is pretty messy. Mainly
> exceptions are related to following topics:
> 
>   * connection problems as different nodes are not
> needed(java.net.NoRouteToHostException)
>   *  java.lang.NumberFormatException related to plot plugin. Actually i
> was wondering, why this exception appeared that much frequently -
> pls. refer to end of log
> 
> Cheers
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jenkinsci-users+unsubscr...@googlegroups.com
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/90eb7000-cfa1-483c-849d-b16bedc495a4%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55F4A825.10305%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: REST API in Jenkins not giving more than 100 results...

2015-09-01 Thread Christopher Orr
On 01/09/15 22:54, khmarbaise wrote:
> I have tried to get information about jobs of my jenkins via REST API
> simply like this:
> 
> http://server/job/JOBNAME/api/json?pretty
> 
> but there is a limitation in number of results...
> 
> I would understand if there is default to give max. number of 100
> results back..but the question is: I would like to have all results or a
> limited number? Does exist a parameter for this?
> 
> After diving into this a little bit more i tried one of the following:
> 
> http://server/job/JOBNAME/api/json?tree=builds[number]{1,10}
> 
>  so this prints out 10 entries...ok so i tried to get 100 which seemed
> to be working
> 
> http://server/job/JOBNAME/api/json?tree=builds[number]{1,100}
> 
> but if i try to get more than 100 entries like this:
> 
> http://server/job/JOBNAME/api/json?tree=builds[number]{1,150}
> 
> it gave me the same number of results...which looks like a problem which
> i don't understand or it is a bug...?

The `builds` information is limited to returning only the most recent
100 results.

You can replace that with `allBuilds`, and use the `{m,n}` paging
mechanism you mentioned.  Though note that it starts at 0, not 1..

So you can use {0,100} to get the first 100, then {100,200} to get the
next hundred, and so on.

Regards,
Chris

-- 
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/55E61A9A.7080500%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Ran lint on variant debug: 1 issues found

2015-08-31 Thread Christopher Orr
I see a few different problems here.

This doesn't have anything to do with Jenkins, so a better place to ask
would have been an Android mailing list, Stack Overflow, or the Android
Tools (adt-dev) mailing list etc..

The error explanation says that all backslashes *and colons* need to be
escaped, which you haven't done.

Yes, the suggested fix that Lint provides is wrong (it only includes the
backslashes, not the colon), but that was fixed in the bug you linked
to.  That bug was fixed in January, so it seems you're still using a
outdated version of the Android SDK tools.

If you believe you have the latest SDK tools, you're escaping the path
correctly, and you *still* have this problem, you can always ignore the
`PropertyEscape` error, or downgrade it to a warning:
https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide#TOC-Lint-support

Regards,
Chris


On 30/08/15 21:25, Kirshan Luhana wrote:
> Thanks again for your feedback.
> Yes I tried this pattern already but same problem see bellow results.
> There is some discussion on this issue but I am not getting, may be some
> experience can guide.
> 
> https://code.google.com/p/android/issues/detail?id=92789
> 
> 
> 
> 
> sdk.dir=C:/Users/kirshan/AppData/Local/Android/sdk
> ~~
> 
>Explanation for issues of type "PropertyEscape":
>All backslashes and colons in .property files must be escaped with a
>backslash (\). This means that when writing a Windows path, you must escape
>the file separators, so the path \My\Files should be written as
>key=\\My\\Files.
> 
> 1 errors, 0 warnings
> Wrote XML report to D:\jenkinsjobs\workspace\build\reports\lint.xml
> :*lint* FAILED
> 
> 
> 
> 
> On Sunday, 30 August 2015 17:21:49 UTC+2, walter.kelt wrote:
>  
> 
> Have you tried using a single  "/" instead of "\" or "\\". Windows
> can deal with both
> types of "separators".
> 
>>> C:/Users/kirshan/AppData/Local/Android/sdk
> 
> 
> 
> On Aug 30, 2015, at 7:22 AM, Kirshan Luhana wrote:
> 
>> Thanks for quick response. Yes I tried many pattern but all fails :(
>> tried also shell commands to alter local.property fie as guided
>> here 
>> https://wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project
>> 
>> 
>>  
>>
>>
>> On Sunday, 30 August 2015 13:09:13 UTC+2, walter.kelt wrote:
>>
>> Seems that the error message is documenting the issue nicely.
>> Have you tried the suggested resolution of escaping the
>> backslash ?
>>
>> Sent from my iPad
>>
>> On Aug 30, 2015, at 6:50 AM, Kirshan Luhana
>>  wrote:
>>
>>> Hi
>>>
>>> I am trying to solve this issue from few days but still can
>>> not get any solution please guide how can I fix it.
>>>
>>> I am running Jenkins on Windows 10 when I compile Android
>>> application I am getting error 
>>>
>>>
>>> :*compileLint*
>>>
>>> :*lint*
>>> Ran lint on variant debug: 1 issues found
>>> Ran lint on variant release: 1 issues found
>>> D:\jenkinsjobs\workspace\local.properties:2: Error: Windows 
>>> file separators (\) must be escaped (\\); use 
>>> C:\\Users\\kirshan\\AppData\\Local\\Android\\sdk [PropertyEscape]
>>> sdk.dir=C:\\Users\\kirshan\\AppData\\Local\\Android\\sdk
>>> 
>>>
>>>Explanation for issues of type "PropertyEscape":
>>>All backslashes and colons in .property files must be 
>>> escaped with a
>>>backslash (\). This means that when writing a Windows path, 
>>> you must escape
>>>the file separators, so the path \My\Files should be written 
>>> as
>>>key=\\My\\Files.
>>>
>>> 1 errors, 0 warnings
>>> Wrote XML report to 
>>> D:\jenkinsjobs\workspace\build\reports\lint.xml
>>> :*lint* FAILED
>>>
>>> FAILURE: Build failed with an exception.
>>>
>>> * What went wrong:
>>> Execution failed for task ':lint'.
>>> > Lint found errors in the project; aborting build.
>>>
>>> Fix the issues identified by lint, or add the following to your 
>>> build script to proceed with errors:
>>> ...
>>> android {
>>> lintOptions {
>>> abortOnError false
>>> }
>>> }
>>> ...
>>>
>>> * Try:
>>> Run with --stacktrace option to get the stack trace. Run with 
>>> --info or --debug option to get more log output.
>>>
>>> BUILD FAILED

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop rece

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

2015-08-07 Thread Christopher Orr
That's most likely happening because you're overriding ANDROID_HOME — 
remove environment customisations like that and then the SDK should 
install fine.


Learning about Unix file system permissions is a task better suited to 
Google than this mailing list.


Regards,
Chris


On 08/08/15 01:34, Pratik Jaiswal wrote:

After adding android-sdk-manager plugin to the build.gradle, it says permission 
denied. Can someone help me in adding more permission ?


Started by useranonymous  
[EnvInject] - Loading node environment variables.
Building in workspace /Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace
  > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
  > git config remote.origin.urlhttps://github.com/jpratik21/Testing  # 
timeout=10
Fetching upstream changes fromhttps://github.com/jpratik21/Testing
  > git --version # timeout=10
using .gitcredentials to set credentials
  > git config --local credential.helper store 
--file=/Users/Shared/Jenkins/tmp/git495701130454661106.credentials # timeout=10
  > git -c core.askpass=true fetch --tags 
--progresshttps://github.com/jpratik21/Testing  +refs/heads/*:refs/remotes/origin/*
  > git config --local --remove-section credential # timeout=10
  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 326d20feb5be2e81cc51f954e7c0a7453283a9f0 
(refs/remotes/origin/master)
  > git config core.sparsecheckout # timeout=10
  > git checkout -f 326d20feb5be2e81cc51f954e7c0a7453283a9f0
  > git rev-list 3a3c7825ebf737c3193903368914a4b3c9528a4f # timeout=10
[Gradle] - Launching build.
[workspace] $ "/Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace/gradlew" clean build

Downloadhttps://jcenter.bintray.com/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.pom

Downloadhttps://jcenter.bintray.com/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.pom
Downloadhttps://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-parent/25/commons-parent-25.pom
Downloadhttps://jcenter.bintray.com/org/apache/apache/9/apache-9.pom
Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-compress/1.8/commons-compress-1.8.pom
Downloadhttps://jcenter.bintray.com/org/tukaani/xz/1.5/xz-1.5.pom

Downloadhttps://jcenter.bintray.com/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.jar

Downloadhttps://jcenter.bintray.com/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.jar
Downloadhttps://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar

Android SDK not found. Downloading...

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace/build.gradle' line: 17

* What went wrong:
A problem occurred evaluating root project 'workspace'.

Failed to apply plugin [id 'android-sdk-manager']

> /Users/jpratik/Library/Android/android-sdk.temp (Permission denied)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.

BUILD FAILED

Total time: 12.369 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
[android-lint] Skipping publisher since build result is FAILURE
Archiving artifacts

Recording test results
ERROR: Publisher 'Publish JUnit test result report' failed: No test report 
files were found. Configuration error?
Finished  : FAILURE


On Friday, August 7, 2015 at 4:03:40 PM UTC-7, Pratik Jaiswal wrote:

Log:

Started by user anonymous 

[EnvInject] - Loading node environment variables.
Building in workspace /Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace
  > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
  > git config remote.origin.urlhttps://github.com/jpratik21/Testing  
  # timeout=10
Fetching upstream changes fromhttps://github.com/jpratik21/Testing  

  > git --version # timeout=10
using .gitcredentials to set credentials
  > git config --local credential.helper store 
--file=/Users/Shared/Jenkins/tmp/git6483021201942154298.credentials # timeout=10
  > git -c core.askpass=true fetch --tags 
--progresshttps://github.com/jpratik21/Testing  
  +refs/heads/*:refs/remotes/origin/*
  > git config --local --remove-section credential # timeout=10
  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3a3c7825ebf7

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

2015-08-07 Thread Christopher Orr

That's a message from the Android Gradle plugin, not Jenkins.

Does the directory exist *and* does the "Jenkins" user have full access 
to that directory, and to execute files within it?


-Chris

PS. It would be easier to use the Android SDK Manager Plugin for Gradle:
https://github.com/JakeWharton/sdk-manager-plugin/


On 08/08/15 01:03, Pratik Jaiswal wrote:

Log:

Started by user anonymous 

[EnvInject] - Loading node environment variables.
Building in workspace /Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace
  > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
  > git config remote.origin.urlhttps://github.com/jpratik21/Testing  # 
timeout=10
Fetching upstream changes fromhttps://github.com/jpratik21/Testing
  > git --version # timeout=10
using .gitcredentials to set credentials
  > git config --local credential.helper store 
--file=/Users/Shared/Jenkins/tmp/git6483021201942154298.credentials # timeout=10
  > git -c core.askpass=true fetch --tags 
--progresshttps://github.com/jpratik21/Testing  +refs/heads/*:refs/remotes/origin/*
  > git config --local --remove-section credential # timeout=10
  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3a3c7825ebf737c3193903368914a4b3c9528a4f 
(refs/remotes/origin/master)
  > git config core.sparsecheckout # timeout=10
  > git checkout -f 3a3c7825ebf737c3193903368914a4b3c9528a4f
  > git rev-list 3a3c7825ebf737c3193903368914a4b3c9528a4f # timeout=10
[Gradle] - Launching build.
[workspace] $ "/Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace/gradlew" clean build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.

The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug 
option to get more log output.

BUILD FAILED

Total time: 9.163 secs

Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
[android-lint] Skipping publisher since build result is FAILURE
Archiving artifacts
Recording test results

ERROR: Publisher 'Publish JUnit test result report' failed: No test report 
files were found. Configuration error?
Finished  : FAILURE



My screenshot attached says that the android SDK does exist but jenkins says it 
doesn't. Tried with ENV var:ANDROID_HOME too / ski.dir=pathtosdk...Any help 
??


--
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/6eb43fba-4ee8-463e-a56c-773f7188f4cc%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55C53ADE.1090204%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Git plugin: how does it decide to build instead of aborting?

2015-08-04 Thread Christopher Orr

On 02/08/15 02:44, bl0ck3r wrote:

The git-plugin clones and fetches everything without any problem, but it
errors out in the end. I am puzzled.

Here is the configuration:
Repo URL: ${UPSTREAM_REPO}
Name: upstream
Refspec:
+refs/heads/${UPSTREAM_BRANCH}:refs/remotes/upstream/${UPSTREAM_BRANCH}

Repo URL: ${FORK_REPO}
Name: fork
Refspec: +refs/heads/${FORK_BRANCH}:refs/remotes/fork/${FORK_BRANCH}



The the user hits build, and the git-plugin ends with an error:
Seen branch in repository fork/master
Seen branch in repository upstream/master
Seen 2 remote branches
ERROR: Couldn't find any revision to build. Verify the repository and
branch configuration for this job.


What do you have in your "Branches to build" configuration?  It would 
appear that it's something that doesn't match any of the remote branches.


--
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/55C146DE.8080005%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Oops error after login

2015-08-04 Thread Christopher Orr

Hi there,

On 03/08/15 13:41, Ss Oi wrote:

Hello, I get the following error after the login window. I tried new
start of computer and the thread, but nothing helps. Here is the error
list:

Oops !!

A problem occurred while processing the request. Please check _our bug
tracker_  to see if a similar problem
has already been reported.


Did you follow this instruction?

Searching for the top "hudson" line of the stacktrace, or the "80040e37" 
error code in the bug tracker throws up two existing issues:


https://issues.jenkins-ci.org/issues/?jql=text%20~%20%2280040e37%22

I would read the details, comments and follow the links on 
https://issues.jenkins-ci.org/browse/JENKINS-13894


If you are able to narrow down further what the Active Directory-related 
cause is and file a new bug with the info, that may be helpful.


Regards,
Chris

--
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/55C1447F.4020806%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Getting a HTTP Status 500 error, when logging into https://issues.jenkins-ci.org/login.jsp

2015-07-30 Thread Christopher Orr

Hi there,

It's a known issue — it seems like the OSUOSL, who host the database, 
are having problems at the moment (e.g. http://osuosl.org itself is 
having problems).


No ETA for it coming back at the moment.

Regards,
Chris


On 31/07/15 01:29, Nick wrote:

The following page is displayed (and login fails), when I attempt to log
in to https://issues.jenkins-ci.org/login.jsp

Is anyone else experiencing this? (Is it temporary?)


  HTTP Status 500 - com.atlassian.jira.exception.DataAccessException:
  org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while
  executing the following:SELECT attribute_name, attribute_value FROM
  cwd_user_attributes WHERE user_id=? AND directory_id=? (Table
  'hudson_jira.cwd_user_attributes' doesn't exist)


--
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/55BAB914.4010007%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Username of active directory user who started the build using API token

2015-07-28 Thread Christopher Orr
Are you not seeing the information you need in the causes?  What are you 
seeing instead?



On 29/07/15 01:18, Mandy wrote:

Anyone?


On Friday, July 24, 2015 at 2:00:52 PM UTC-7, Mandy wrote:

The build is not being started by the logged in user. It is started
by another user on a remote machine using some other account
credentials on command line. It looks like following

User test1 is looged into Jenkins
User test2 is logged into some remote machine and specifies
"testuser" credentials in command line.




On Friday, July 24, 2015 at 1:36:28 PM UTC-7, Christopher Orr wrote:

On 24/07/15 22:23, Mandy wrote:
 > I have active directory authentication on Jenkins and I am
launching job
 > remotely using the following command line
 >
 > curl -u  testuser:7658756hfjsdngsd8908593486
 > http://jenkinsserver:8080/job/testjob/build?token=onlytest
 >
 > How can I using groovy get access to this username in the job?

The solution is essentially the same as your last question about
getting
the IP address of a user starting a job.

If the user was started by a logged-in user, the "cause" of the
build
will be UserCause, rather than RemoteCause:


https://github.com/jenkinsci/jenkins/blob/ed2988f/core/src/main/java/hudson/model/Cause.java#L374-L376


--
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
<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/fb0514f8-14cb-4781-a134-2d121e7fc43b%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/fb0514f8-14cb-4781-a134-2d121e7fc43b%40googlegroups.com?utm_medium=email&utm_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/55B8236B.8040204%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Username of active directory user who started the build using API token

2015-07-24 Thread Christopher Orr

On 24/07/15 22:23, Mandy wrote:

I have active directory authentication on Jenkins and I am launching job
remotely using the following command line

curl -u  testuser:7658756hfjsdngsd8908593486
http://jenkinsserver:8080/job/testjob/build?token=onlytest

How can I using groovy get access to this username in the job?


The solution is essentially the same as your last question about getting 
the IP address of a user starting a job.


If the user was started by a logged-in user, the "cause" of the build 
will be UserCause, rather than RemoteCause:


https://github.com/jenkinsci/jenkins/blob/ed2988f/core/src/main/java/hudson/model/Cause.java#L374-L376

--
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/55B2A1BC.5010507%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Remote host IP

2015-07-23 Thread Christopher Orr

On 24/07/15 01:02, Mandy wrote:

Jenkins build log shows "Started by remote host xx.xx.xx.xx". Is there a
way to access this IP address in a groovy script?


I imagine something like this should work, if you're using the Groovy 
Script plugin:


build.getCauses().grep(hudson.model.Cause.RemoteCause).each {
  println it.getAddr()
}

Regards,
Chris

--
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/55B18DDC.2080108%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: grayed-out font style in build history list

2015-07-19 Thread Christopher Orr
It would be easier to use the Simple Theme Plugin to override the CSS in 
question than rebuilding the WAR yourself:

https://wiki.jenkins-ci.org/display/JENKINS/Simple+Theme+Plugin

I haven't noticed the text change you mention, possibly due to the 
version I'm running, but if it's really difficult to read, then it would 
filing it as an issue:

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

Regards,
Chris


On 13/07/15 19:05, Tony Wallace wrote:

Sometime between Jenkins 1.580.3 and 1.609.1 the font used for the build
description in the build history list changed from a normal readable
font to a greyed-out style font which includes some mouse-over effect.
The build descriptions in the new build history are a lot harder to
read, and I would like to change them back to the 1.580.3 font. However,
someone went to some trouble to put in that new build history format,
and no one else is complaining, so Jenkins is probably going to stay the
way it is - I get that.

Is there any way I could change that font style in my local
configuration?  Right now I use the built-in Jetty container, but I'd
change to some other if it would help. I would also rebuild jenkins.war
for this. Any ideas welcome.

The other changes in the new build history format are okay- don't care
much either way.  Just want to change that hard-to-read greyed-out font
style back to a normal font.  I went to some trouble adding additional
information to those Jenkins build descriptions.  Having that info
clearly-readable in the build history lists helps our developers, and
reduces the number of separate build jobs I need to maintain.

--
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/c22a14ff-6772-44ed-819d-55fc3ece618a%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55ABF4A3.5060602%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Email Server configuration

2015-07-15 Thread Christopher Orr

On 14/07/15 09:54, Martin Min wrote:

Hello, I am using the almost latest Jenkins release and have a question
on configuration email notification. Why are there only two fields for this?


There aren't only two fields — there is also an "Advanced" button, which 
reveals more options.  You even mention the "Use SSL" checkbox, which is 
in the advanced section.




I unchecked the SSL box for a quick test. and received this error
message below. I put in my gmail user name and password.


If it didn't work when you disabled SSL, have you tried enabling SSL?
This is what Gmail wants when it says that STARTTLS is required.

Regards,
Chris

--
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/55A680A3.6020406%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Disabling Jenkins Security

2015-07-08 Thread Christopher Orr

On 08/07/15 04:37, Kevin Meredith wrote:

When disabling security (via *Configure Global Security*), is it
possible to enable a prompt, double-checking that the user wants to
disable it?

If not, would it be reasonable to prompt the user, "Are you sure that
you'd like to disable security?"


There are arguably worse things can do with admin access to Jenkins, and 
with great power comes great responsibility ;)


But you could add this as an improvement to the issue tracker:
https://issues.jenkins-ci.org

(or submit a pull request :)

Regards,
Chris

--
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/559CD624.10707%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins-cli never respond

2015-06-25 Thread Christopher Orr

On 25/06/15 19:50, Anthony Green wrote:



On Wednesday, 24 June 2015 10:38:05 UTC+1, Richard Bywater wrote:

The CLI doesn't use the JNLP port - you need to point it at the
normal web port (e.g. 8080)



Are you sure? What I've read regarding setting up Jenkins in a Docker
suggests that's exactly what it uses.


Everybody is right :)  The CLI client automatically discovers the JNLP 
port and communicates via that.  So, as Richard mentions, you don't need 
to know the JNLP port — you just provide the regular Jenkins web URL 
when running the CLI client command.


Regarding the posted error message, check the comments on this 
(seemingly identical) issue:

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

Regards,
Chris

--
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/558C63A3.907%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins

2015-06-25 Thread Christopher Orr

On 24/06/15 22:40, Murthy Gandikota wrote:

Hi All:


Using Jenkins 1.596


See this in the Console output:


ERROR: Asynchronous execution failure

java.util.concurrent.ExecutionException
:
java.lang.ClassCastException: java.lang.String cannot be cast to
hudson.model.Fingerprint
...
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast
to hudson.model.Fingerprint
...

Is there an easy fix for this?


Sounds somewhat similar to:
https://issues.jenkins-ci.org/browse/JENKINS-23566

As mentioned there, there may be corrupt fingerprint files which you can 
probably delete.


Regards,
Chris

--
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/558C5EDC.9010600%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Integrate Black duck Protex with Jenkins

2015-06-18 Thread Christopher Orr

On 18/06/15 12:17, Neelima Chowdary wrote:

I would like to integrate "*Black Duck Protex(Open source code auditing
tool)"* with Jenkins using Plugins for finding dependency jars used in
the build.

Request to provide the possible way for it.


You should ask Black Duck; they seem to have a Jenkins plugin for this.

A developer from BD is (presumably) soon going to release this plugin 
that helps install it:

https://wiki.jenkins-ci.org/display/JENKINS/Black+Duck+Vulnerability+Installer+Plugin

Regards,
Chris

--
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/5582D923.7000601%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Does the laster version of docker plugin requires java 1.7 ?

2015-06-16 Thread Christopher Orr

On 16/06/15 17:06, Suckow, Thomas J wrote:



Does the docker plugin requires java 1.7 ?


Yes


The minimum Jenkins requirement probably should have been bumped to 
1.612 (the first release to require Java 7), or at least there should 
have been a warning in the changelog I guess.


Regards,
Chris

--
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/5580AC23.2020304%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Standard Jenkins shell build step for testing a Rails app?

2015-06-16 Thread Christopher Orr

On 12/06/15 20:55, Jeff wrote:

Hi,

I've used Jenkins as a developer but never configured it myself. I'm not
setting it up for the first time and am stuck trying to get the shell
script build step to work. I want it to run all the Rails tests and tell
me whether they pass.

This seems like a standard question but my Google searching has been
unhelpful.

Does anyone know what the standard shell instructions are for testing a
Rails app from within Jenkins? I want to do something like:

bundle install
bundle exec rake spec

Seems simple but it doesn't work.


Could you possibly expand on "it doesn't work"?
Problems with installing gems, or something?

Does using the Rake or RVM plugins help?

-Chris (not a Ruby developer)

--
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/5580AB0A.8040309%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Master node not get listed in build executor list

2015-06-16 Thread Christopher Orr
That looks odd; what do you see if you hover over the clock icon in the 
build queue?


I have a vague feeling that's a bug that's been mentioned (could be 
wrong), but it doesn't hurt to search issues.jenkins-ci.org for builds 
not being taken from the queue.


-Chris


On 10/06/15 06:04, Sasikanth Eda wrote:

Thanks Richard, the node executors are not set to zero.
I have uploaded the configuration view here for analysis
https://www.dropbox.com/sh/1tekm0fzzw8pljd/AAD-rDKT34WFjD0M987BW2wHa?dl=0

On Wednesday, 10 June 2015 09:10:08 UTC+5:30, Richard Bywater wrote:

I'd check the configuration of the master node (think it's in the
system configuration screen) and make sure the number of executors
on that node isn't set to zero.

Richard


On 2:47PM, Wed, 10/06/2015 Sasikanth Eda > wrote:

Hi All,

I am working on a project where a particular job needs to be run
on master node (no slave nodes registered).
I have checked the properties of the job and could not find an
option "Restrict where this project can run".
Where as in the configure system, the Label field is empty and
at the master node configuration view, I am able to see the job
is tied to this node under "projects tied to this project".

But when I execute the job, it gets to waiting state due to node
unavailability.

Kindly request your help. Please let me know if missing any
settings or any other issue (my Jenkins version: 1.609.1)

Regards,
Sasi


--
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/5580A8FD.6040608%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: text-finder-plugin

2015-05-27 Thread Christopher Orr

On 27/05/15 16:48, Angela Kim wrote:

We have a requirement to add a specific text comment to all of our
source code. As a validation, during each CI build the changed files
should be scanned to ensure that the required text has been added. If
the comment does not exist, then the build should fail.


Ok, but what is your question?  Are you trying to say that you've tried 
the Text Finder Plugin to implement your requirement, but failed?


In the absence of more info, I'm with Matthew — using something other 
than `find` and `grep` seems like reinventing the wheel :)


-Chris

--
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/556652BE.2090606%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins NullPointerException ERROR

2015-05-26 Thread Christopher Orr

It looks like this has already been reported here:
https://issues.jenkins-ci.org/browse/JENKINS-28341

But if you could add your Jenkins version, and the other version info 
you mentioned here to that issue, that would be useful.


Regards,
Chris


On 26/05/15 20:18, Dippoakabob wrote:

I recently set up a new Jenkins server on a 64 bit Centos 6 server, and when I 
attempted to compile one of my existing Java projects I came across this 
Jenkins internal NPE. I've updated Jenkins to the latest stable build, and I've 
updated Maven to version 3.3.3 and Java is version 1.7.0_79.


If any further information is needed, please let me know.


|
ERROR:Processingfailed due to a bug inthe code.Pleasereport thisto
jenkinsci-users@googlegroups.com
java.lang.NullPointerException

   at
com.nirima.jenkins.SelectionTypeProject.getLastSuccessfulBuildNumber(SelectionTypeProject.java:117)

 at
com.nirima.jenkins.SelectionTypeProject.getAction(SelectionTypeProject.java:97)

 at
com.nirima.jenkins.RepositoryDefinitionProperty$1.buildEnvVars(RepositoryDefinitionProperty.java:83)

 at
hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)

 at
hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)

 at
hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)

 at
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:677)

 at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)

 at hudson.model.Run.execute(Run.java:1744)

 at
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)

 at
hudson.model.ResourceController.execute(ResourceController.java:98)

 at hudson.model.Executor.run(Executor.java:374)

project=hudson.maven.MavenModuleSet@63f7e3f5[hRedstoneBlock]
project.getModules()=[]
project.getRootModule()=null
FATAL:null
java.lang.NullPointerException

   at
com.nirima.jenkins.SelectionTypeProject.getLastSuccessfulBuildNumber(SelectionTypeProject.java:117)

 at
com.nirima.jenkins.SelectionTypeProject.getAction(SelectionTypeProject.java:97)

 at
com.nirima.jenkins.RepositoryDefinitionProperty$1.buildEnvVars(RepositoryDefinitionProperty.java:83)

 at
hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:944)

 at
hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)

 at
hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)

 at
hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:677)

 at
hudson.model.AbstractB

Re: how to upgrade Gradle version?

2015-05-26 Thread Christopher Orr

On 25/05/15 11:25, Carlo Lupo wrote:

We are using since some weeks Gradle version 2.4 in our build scripts.
But when we want upgrade the Gradle version used vai Jenkins at Jenkins'
system page ("install from gradle.org"), it only displays the Gradle
release candidates "2.4-rc-1" and "2.4-rc-2 in the combo box. Jenkins
obviously doesn't know from Gradle version "2.4".

So my question is: how are the entries of this combo box updated? Is
Jenkins looking at "gradle.org" and does somehow not detect the latest
release version? How can we influence what is displayed in the combo? We
do not wanna see all those old versions (which are only of some historic
interest).


There is an automated process which updates these versions daily (from 
gradle.org in this case), but unfortunately that process is currently 
broken.


The scripts are here:
https://github.com/jenkinsci/backend-crawler

The infrastructure bug tracking the brokenness is here:
https://issues.jenkins-ci.org/browse/INFRA-225

Regards,
Chris

--
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/55645A04.1040802%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins Wallpapers?

2015-05-22 Thread Christopher Orr

Sounds like this one:
https://wiki.jenkins-ci.org/display/JENKINS/Meme+Generator+Plugin


On 22/05/15 07:21, Kavitha Bhaskaran wrote:

Hi There:

What plugin would give me different funny wallpapers on Jenkins server -
builds' result page?

http://apmblog.dynatrace.com/2013/11/27/continuous-performance-validation-in-continuous-integration-environments/
-- some pics like here is what I am thinking "I dont always test my
code..." I dont have JIRA - just Jenkins.

I looked up the plugins but could not easily tell which one could be this..


--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/555F5AEE.8030402%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Wiki Offline?

2015-05-12 Thread Christopher Orr

It was down, and now, thanks to Tyler, it's back up and running.

Regards,
Chris


On 12/05/15 11:52, Steven Murphy wrote:

Hello,

I am having issue loading the Jenkins Wiki

https://wiki.jenkins-ci.org/

Is anyone else experiencing issues?

Thanks,
Steve


--
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/5552164D.8080008%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Requirement for Java 1.7?

2015-05-07 Thread Christopher Orr

On 07/05/15 15:40, David Aldrich wrote:

I notice that the Jenkins release notes for 1.612 state:

*Jenkins now requires Java 7*.

I tried upgrading from Jenkins 1.607 to 1.612 and many of our Linux
slaves failed to launch. Part of the reported error is:

[05/07/15 14:34:23] [SSH] Checking java version of
/data/hudsonuser/jdk/bin/java

[05/07/15 14:34:23] [SSH] /data/hudsonuser/jdk/bin/java -version
returned 1.6.0_16.

These slaves run Centos 5.  Please can anyone advise me how I should
install Java 7 on these slaves?


yum install java-1.7.0-openjdk

-Chris

--
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/554B7246.6050801%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


Re: Anyone have the direct link to the unmigrate instructions?

2015-05-05 Thread Christopher Orr

On 04/05/15 19:13, Randy Chapin wrote:

I am one of those that upgraded to a new version that changes the way
builds are stored on the drive only to find that some of the plugins
would not work so I was forced to downgrade.  As expected, I ran into
the incompatibility issue and now I am looking for the unmigrate
instructions that are mentioned in other posts.  My problem is I can't
find them... Can someone point me to the exact link that shows the
instructions?
https://issues.jenkins-ci.org/browse/JENKINS-24380 is what I was looking
at initially... I just can't find the actual instructions / script.  I
hope I am just missing something obvious.

Thanks for the help.


I imagine this is the page you're looking for:
https://wiki.jenkins-ci.org/display/JENKINS/JENKINS-24380+Migration

Regards,
Chris

--
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/5548E74E.8040007%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >