White screen when downloading plugins

2019-04-29 Thread Peter Berghold
Hi folks,

I saw mention of a "white screen of death" with some issues in the JIRA but
I'm not 100% sure this is related.

I selected a few plugins to install across the internet and when I
requested the download start I got "this page is not working" from the
browser.  I use Chrome both at home and work and my personal Jenkins server
is seeing the problem and one of the newest instances at work (version
2.164.2) are both displaying this behavior.

1) is there a good workaround to let me download and install plugins
(automating with Puppet would be the best!)

2) is this a known problem

3) is there a viable workaround to get the page "working" again?


-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

-- 
You received this message because you are subscribed to the Google 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/CAArvnv3ndaMEPV9AYFZNA0WtaCkTFBMWkgVWiYomQBcdxt%2BnjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Anyone using Jenkins as a job scheduler?

2019-03-12 Thread Peter Berghold
I actually use Jenkins to perform a backup of my Git (privately hosted)
repository and ship an archive off to AWS S3.

On Tue, Mar 12, 2019 at 4:15 PM Badarch Nergui 
wrote:

> For that and some other reasons I've been thinking about centralizing the
> scheduling of all of our jobs.
>
> Jenkins isn't really intended for this, but it could work.
>
>
> Enterprise grade job scheduling software is REALLY expensive, but also
> kind of overkill.
>
> --
> You received this message because you are subscribed to the Google 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/7e0089b2-d2c5-431a-af5a-429fb98a9a5a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1hDwrpk6A74a69WreNuPj2kEoy%3Dc186N6iAa-e_bdqjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Class paths for Jenkins?

2019-03-12 Thread Peter Berghold
was kinda hoping I could solve this without the overhead of a module.  And
no there isn't as far as I can tell a module that does what I need to do.

On Tue, Mar 12, 2019 at 2:37 PM Mark Waite 
wrote:

> It seems like you may be trying to extend the functionality of Jenkins
> with additional Java code that you want to run inside the Jenkins process
> on the Jenkins master, and possibly on one or more agents attached to the
> master.
>
> If so, first be certain that there isn't already a Jenkins plugin that
> solves the specific problem you're trying to solve.  The most frequent
> answer to the question, "Do I need to write a plugin to do X?" is "No,
> because a plugin already exists to do X, or to do Y which is very similar
> to X and can be extended or modified to do X".
>
> If a search of available plugins and a discussion of the specific problem
> you're trying to solve does not identify an existing plugin that will meet
> the need, then you probably need to write a plugin.
>
> While revising a Jenkins Plugin Development course prior to Jenkins World
> 2017, I wrote a blog post pointing to many resources on writing Jenkins
> plugins.  Refer to
> https://jenkins.io/blog/2017/08/07/intro-to-plugin-development/ for that
> blog post.
>
> Thanks,
> Mark Waite
>
> On Tue, Mar 12, 2019 at 12:10 PM Peter Berghold 
> wrote:
>
>> Following up on a silly question from the other day I have another silly
>> question. Where does Jenkins look for jar files to resolve classes and
>> packages?
>>
>> I've started writing a Java library that I want to access from a pipeline
>> and Jenkins can't seem to find it in spite of it being deployed to
>> /usr/share/java where other Java applications find their jars.
>>
>> Any pointers are appreciated.
>>
>> --
>>
>> Peter L. Berghold   salty.cowd...@gmail.com
>>
>> http://devops.berghold.net
>>
>>
>> --
>> You received this message because you are subscribed to the Google 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/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Thanks!
> Mark Waite
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHjZY_KjBn2k_0L0Knf1Ri-PNq_D9yUQPmSkLkhYNhyYQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHjZY_KjBn2k_0L0Knf1Ri-PNq_D9yUQPmSkLkhYNhyYQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

-- 
You received this message because you are subscribed to the Google 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/CAArvnv0w5vpbhYch1KTinesrhcSNtgfpxGDcN3B68HaZwaoh4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Class paths for Jenkins?

2019-03-12 Thread Peter Berghold
Following up on a silly question from the other day I have another silly
question. Where does Jenkins look for jar files to resolve classes and
packages?

I've started writing a Java library that I want to access from a pipeline
and Jenkins can't seem to find it in spite of it being deployed to
/usr/share/java where other Java applications find their jars.

Any pointers are appreciated.

-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2yA6SgjeCyNMmN0v_ecLPCtQgZ2qgu4E2K95B0hd4xqw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Adding java libraries to jenkins

2019-03-10 Thread Peter Berghold
Hmmm.. didn't look at it that way. Is it really that easy?

On Sun, Mar 10, 2019, 21:21 Jan Monterrubio 
wrote:

> Like a global jar that gets added to the class path?
>
> On Sun, Mar 10, 2019 at 9:12 AM Peter Berghold 
> wrote:
>
>> How would I go about adding java libraries to jenkins?  I may not be
>> voicing what I'm trying to do very well so I'll go into a little detail.
>>
>> I'd like to set up a library of beans such as one reflective of the
>> contents of a list of s3 files with the creation date, size and filename as
>> a structure.
>>
>> Is this even possible?
>>
>> --
>>
>> Peter L. Berghold   salty.cowd...@gmail.com
>>
>> http://devops.berghold.net
>>
>>
>> --
>> You received this message because you are subscribed to the Google 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/CAArvnv3DcvcDrOSCiwA8PHJJHKR4RSX2EKMA0qoOyt41h98aDw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv3DcvcDrOSCiwA8PHJJHKR4RSX2EKMA0qoOyt41h98aDw%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9Ktn07Nhan6xCY%3DEegG3P97qkbiB%3D0z1yM_vekfepjAmQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9Ktn07Nhan6xCY%3DEegG3P97qkbiB%3D0z1yM_vekfepjAmQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Adding java libraries to jenkins

2019-03-10 Thread Peter Berghold
How would I go about adding java libraries to jenkins?  I may not be
voicing what I'm trying to do very well so I'll go into a little detail.

I'd like to set up a library of beans such as one reflective of the
contents of a list of s3 files with the creation date, size and filename as
a structure.

Is this even possible?

-- 

Peter L. Berghold   salty.cowd...@gmail.com

http://devops.berghold.net

-- 
You received this message because you are subscribed to the Google 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/CAArvnv3DcvcDrOSCiwA8PHJJHKR4RSX2EKMA0qoOyt41h98aDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Shared groovy library frustration

2018-10-17 Thread Peter Berghold
Not sure if this is really what fixed the problem but here goes:

Destroyed the Docker instance running my Jenkins installation and rebuilt
it using LTS instead of the "latest and greatest bleeding edge" version.
Docker is a good thing that way. :-)

Now have a stripped down version and my simple shared library now works.
I'll move on to more complicated ones next.  Is this a problem with the
version I was using  dunno.


On Wed, Oct 17, 2018 at 2:29 PM Peter Berghold 
wrote:

> OK... seems this is somehow related to
> https://issues.jenkins-ci.org/browse/JENKINS-45260
>
> is there at least  a work-around?
>
> On Wed, Oct 17, 2018 at 10:16 AM Peter Berghold 
> wrote:
>
>> Interestingly enough on a Jenkins server i manage where I have working
>> shared libraries (multiple) I don't use the @Library form at all.  I tried
>> it on this other Jenkins server (the one I'm trying to *get* working) and
>> it didn't work.
>>
>> In my first attempt I simply used:
>>
>> @Library('lib3') _
>>
>> which I saw in this documentation:
>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>
>> that yielded me the following errors
>>
>> ERROR: No version specified for library lib3
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
>> failed:
>> WorkflowScript: Loading libraries failed
>>
>>
>> OK fine,  I'll add a version to it which according to the cited page above 
>> can be a branch and "master" is certainly a branch.
>>
>>
>> @Library('lib3@master') _
>>
>>
>> Using that gave me more errors
>>
>> Loading library lib3@master
>> java.lang.NullPointerException
>>  at 
>> org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:82)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
>>  at 
>> org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>>  at 
>> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>>  at 
>> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>>  at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>>  at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
>>  at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
>>  at 
>> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
>>  at 
>> org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
>>  at hudson.model.ResourceController.execute(ResourceController.java:97)
>>  at hudson.model.Executor.run(Executor.java:429)
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
>> failed:
>> WorkflowScript: Loading libraries failed
>>
>>
>> So what I'm wondering at this point, is there a plugin I'm missing?   What 
>> plugins are necessary to run Groovy pipelines including shared libraries?
>>
>>
>> I'm stumped here... and grasping at straws.
>>
>>
>> On Tue, Oct 16, 2018 at 6:29 PM Jan Monterrubio 
>> wrote:
>>
>>> Are you missing the @Library import in your pipeline?  Or does your
>>> shared library have a load implicitly declared?
>>>
>>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>>
>>>
>>>
>>> On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
>>> wrote:
>>>
>>>> Here is a tree of a very simple "library" I set up:
>>>>
>>>> ├── build.xml
>>>> ├── manifest.mf
>>>> ├── nbproject
>>>> │   ├── build-impl.xml
>>>> │   ├── genfiles.properties
>>>> │   ├── groovy-build.xml
>>>> │   ├── private
>>>> │   │  

Re: Shared groovy library frustration

2018-10-17 Thread Peter Berghold
OK... seems this is somehow related to
https://issues.jenkins-ci.org/browse/JENKINS-45260

is there at least  a work-around?

On Wed, Oct 17, 2018 at 10:16 AM Peter Berghold 
wrote:

> Interestingly enough on a Jenkins server i manage where I have working
> shared libraries (multiple) I don't use the @Library form at all.  I tried
> it on this other Jenkins server (the one I'm trying to *get* working) and
> it didn't work.
>
> In my first attempt I simply used:
>
> @Library('lib3') _
>
> which I saw in this documentation:
> https://jenkins.io/doc/book/pipeline/shared-libraries/
>
> that yielded me the following errors
>
> ERROR: No version specified for library lib3
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> WorkflowScript: Loading libraries failed
>
>
> OK fine,  I'll add a version to it which according to the cited page above 
> can be a branch and "master" is certainly a branch.
>
>
> @Library('lib3@master') _
>
>
> Using that gave me more errors
>
> Loading library lib3@master
> java.lang.NullPointerException
>   at 
> org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:82)
>   at 
> org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
>   at 
> org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
>   at 
> org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
>   at 
> org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
>   at 
> org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
>   at 
> org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
>   at 
> org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
>   at 
> groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
>   at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
>   at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
>   at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
>   at 
> org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
>   at 
> org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
>   at hudson.model.ResourceController.execute(ResourceController.java:97)
>   at hudson.model.Executor.run(Executor.java:429)
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup 
> failed:
> WorkflowScript: Loading libraries failed
>
>
> So what I'm wondering at this point, is there a plugin I'm missing?   What 
> plugins are necessary to run Groovy pipelines including shared libraries?
>
>
> I'm stumped here... and grasping at straws.
>
>
> On Tue, Oct 16, 2018 at 6:29 PM Jan Monterrubio 
> wrote:
>
>> Are you missing the @Library import in your pipeline?  Or does your
>> shared library have a load implicitly declared?
>>
>> https://jenkins.io/doc/book/pipeline/shared-libraries/
>>
>>
>>
>> On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
>> wrote:
>>
>>> Here is a tree of a very simple "library" I set up:
>>>
>>> ├── build.xml
>>> ├── manifest.mf
>>> ├── nbproject
>>> │   ├── build-impl.xml
>>> │   ├── genfiles.properties
>>> │   ├── groovy-build.xml
>>> │   ├── private
>>> │   │   ├── config.properties
>>> │   │   ├── private.properties
>>> │   │   └── private.xml
>>> │   ├── project.properties
>>> │   └── project.xml
>>> └── src
>>> ├── net
>>> │   └── berghold
>>> │   └── MainTest.groovy
>>> └── SimpleGroovyScript.groovy
>>>
>>>
>>> Most important of which is under "src" with the class MainTest
>>>
>>> Here is the class itself:
>>>
>>> /*
>>>  * To change this license header, choose License Headers in Project
>>> Properties.
>>>  * To change this template file, choose Tools | Templates
>>>  * and open the template in the editor.
>>>  */
>>>
>>> package net.berghold
>>>
>>> /**
>>>  *
>>>  * @

Re: Shared groovy library frustration

2018-10-17 Thread Peter Berghold
Interestingly enough on a Jenkins server i manage where I have working
shared libraries (multiple) I don't use the @Library form at all.  I tried
it on this other Jenkins server (the one I'm trying to *get* working) and
it didn't work.

In my first attempt I simply used:

@Library('lib3') _

which I saw in this documentation:
https://jenkins.io/doc/book/pipeline/shared-libraries/

that yielded me the following errors

ERROR: No version specified for library lib3
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: Loading libraries failed


OK fine,  I'll add a version to it which according to the cited page
above can be a branch and "master" is certainly a branch.


@Library('lib3@master') _


Using that gave me more errors

Loading library lib3@master
java.lang.NullPointerException
at 
org.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.retrieve(SCMSourceRetriever.java:82)
at 
org.jenkinsci.plugins.workflow.libs.LibraryAdder.retrieve(LibraryAdder.java:157)
at 
org.jenkinsci.plugins.workflow.libs.LibraryAdder.add(LibraryAdder.java:138)
at 
org.jenkinsci.plugins.workflow.libs.LibraryDecorator$1.call(LibraryDecorator.java:125)
at 
org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1065)
at 
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:603)
at 
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
at 
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
at 
groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688)
at groovy.lang.GroovyShell.parse(GroovyShell.java:700)
at 
org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.doParse(CpsGroovyShell.java:131)
at 
org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:125)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:560)
at 
org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:521)
at 
org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:317)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: Loading libraries failed


So what I'm wondering at this point, is there a plugin I'm missing?
What plugins are necessary to run Groovy pipelines including shared
libraries?


I'm stumped here... and grasping at straws.


On Tue, Oct 16, 2018 at 6:29 PM Jan Monterrubio 
wrote:

> Are you missing the @Library import in your pipeline?  Or does your shared
> library have a load implicitly declared?
>
> https://jenkins.io/doc/book/pipeline/shared-libraries/
>
>
>
> On Tue, Oct 16, 2018 at 14:49 Peter Berghold 
> wrote:
>
>> Here is a tree of a very simple "library" I set up:
>>
>> ├── build.xml
>> ├── manifest.mf
>> ├── nbproject
>> │   ├── build-impl.xml
>> │   ├── genfiles.properties
>> │   ├── groovy-build.xml
>> │   ├── private
>> │   │   ├── config.properties
>> │   │   ├── private.properties
>> │   │   └── private.xml
>> │   ├── project.properties
>> │   └── project.xml
>> └── src
>> ├── net
>> │   └── berghold
>> │   └── MainTest.groovy
>> └── SimpleGroovyScript.groovy
>>
>>
>> Most important of which is under "src" with the class MainTest
>>
>> Here is the class itself:
>>
>> /*
>>  * To change this license header, choose License Headers in Project
>> Properties.
>>  * To change this template file, choose Tools | Templates
>>  * and open the template in the editor.
>>  */
>>
>> package net.berghold
>>
>> /**
>>  *
>>  * @author peter
>>  */
>> class MainTest implements Serializable {
>> def Object context
>>
>> def void runme(){
>> context.sh('echo foobar')
>> }
>> }
>>
>> so far nothing earth shattering.  I've set up this shared library in the
>> main Jenkins setup menu.   Should be groovy so far  but it isn't
>>
>> Here is a simple pipeline I set up to test this:
>>
>> import net.berghold.MainTest
>>
>> node('master'){
>> step('run test'){
>> def MainTest mt = new MainTest(context: this)
>>
>> mt.runme()
>> }
>> }
>>
>> When I try to &qu

Shared groovy library frustration

2018-10-16 Thread Peter Berghold
Here is a tree of a very simple "library" I set up:

├── build.xml
├── manifest.mf
├── nbproject
│   ├── build-impl.xml
│   ├── genfiles.properties
│   ├── groovy-build.xml
│   ├── private
│   │   ├── config.properties
│   │   ├── private.properties
│   │   └── private.xml
│   ├── project.properties
│   └── project.xml
└── src
├── net
│   └── berghold
│   └── MainTest.groovy
└── SimpleGroovyScript.groovy


Most important of which is under "src" with the class MainTest

Here is the class itself:

/*
 * To change this license header, choose License Headers in Project
Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.berghold

/**
 *
 * @author peter
 */
class MainTest implements Serializable {
def Object context

def void runme(){
context.sh('echo foobar')
}
}

so far nothing earth shattering.  I've set up this shared library in the
main Jenkins setup menu.   Should be groovy so far  but it isn't

Here is a simple pipeline I set up to test this:

import net.berghold.MainTest

node('master'){
step('run test'){
def MainTest mt = new MainTest(context: this)

mt.runme()
}
}

When I try to "build" this I get the following error to the console:

Running in Durability level: MAX_SURVIVABILITY
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 1: unable to resolve class net.berghold.MainTest
 @ line 1, column 1.
   import net.berghold.MainTest
   ^

1 error


to me that implies the library is not being loaded for reasons I just don't
get.

Things I tried:

I actually told it to implicitly load this library but it now complains
that it needs a version.  I told it "master" and it claims it can't find
that version.   I tried */master refs/master and a few other things I know
exist and the error came back that it could not validate the version with a
null pointer error under the details.

Has this functionality been broken?

Running Jenkins 2.147.   This all used to work.  This example is a pared
down version and the original shared libs that worked no longer work and
I'm a bit concerned.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv3tBnk9B3Xm4Z2vug%2BNCv92822k5H70xRm_%3D-DW7jdhKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Load balanced Jenkins?

2018-08-23 Thread Peter Berghold
I've been messing about a bit with Docker on Digital Ocean and was going to
branch next onto  Docker Swarm stuff.  I was wondering about deploying
Jenkins into a swarm and using a load balancer to switch between instances.

Is anybody aware of way of having multiple instances of Jenkins using the
same configurations other than possibly using slaves?

In other words it in my mind would be kinda useful if I logged into
"jenkins.some.domain" and let the load balancer direct my request between
multiple instances and have them look the same.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1CkF3k47PuHmGHKne1emF58U2QY%3Dok-8J1jK0dBNgP5Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Templating inside a Groovy pipeline?

2018-03-09 Thread Peter Berghold
Is there a text templating solution that *works* inside a Groovy pipeline?

I tried both SimpleTemplate and StreamingTemplate and both error out with
an exception somewhere in the bowels of the class.  Am perhaps stuck with
using a callout to a Perl script 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/CAArvnv3dzoyoWFzoYEMcxWADW9FKxe9PvcVeEcv2w465vnX6YA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Security Access Violation?

2018-01-15 Thread Peter Berghold
Anybody know what the heck this means and how to fix it?

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
unclassified new com.att.ncs.entities.PerlApplication WorkflowScript
org.codehaus.groovy.runtime.GStringImpl java.lang.String
java.lang.String java.lang.String
at 
org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onNewInstance(SandboxInterceptor.java:144)


It is rejecting access to a class constructor that doesn't look a
whole lot different than others.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2TmcJFU6ziXtBVFheJLnn4NTU4X47KYfuMQfuywt85Cg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Pipelines) String split; why isn't this working?

2018-01-08 Thread Peter Berghold
Given an input of:
/data/ci/jenkins/workspace/PeterBLaboratory/Test-unittestlibobjs-10/somesubdir/somefile.txt

I have a function:


def basename(path){
def pieces

pieces = path.split("/")

context.sh 'echo first element: ' + pieces[0]
context.sh 'echo path: ' + path
context.sh 'echo parts: ' + pieces.size

def idx
idx = pieces.size - 1

return pieces[idx]
}

and I expect it to return the last element in a split array based on the
character '/'

What I'm seeing instead is:

groovy.lang.MissingPropertyException: Exception evaluating property
'size' for java.util.Arrays$ArrayList, Reason:
groovy.lang.MissingPropertyException: No such property: size for
class: java.lang.String


what the heck is going on here?

It also looks like path.split is not behaving as I'd expect and returning
an array of strings based on the delimiter. Thoughts folks?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv3AbsixuXJ14epdqLOJFg5hspnwiCuDCAvyLx61dxLwRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: RejectedAccessException

2017-12-12 Thread Peter Berghold
OK:
After deciding to put this project aside and not look at it for a while I
came back to it and found out that I was being stupid. :-(

The constructor for the Notification class has two parameters not one and
in the heat of battle so to speak I forgot about the other one.  Once I got
that straight the job has started working again..   well... at least isn't
having that issue any more. :-)

SO apparently unclassified applies to a difference in method signatures.

On Sat, Dec 9, 2017 at 5:08 PM Victor Martinez <
victormartinezru...@gmail.com> wrote:

> Apparently unclassified means the script approval process cannot be used:
> https://jenkins.io/doc/book/managing/script-approval/ . As Jesse already
> mentioned in another thread (
> https://stackoverflow.com/questions/33573568/sandbox-is-preventing-me-from-formatting-a-string)
> it seems a bug in the Script security plugin. Can you raise a jira ticket
> with all those details? The more details the better to help to diagnose
> what's going on.
>
> 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/e4172d1c-29af-4609-adab-567b18f29f3a%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/CAArvnv34wXJUfbjimse_W7XLV46986NvDNCUX%3D1%3D-_J-fjtA7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RejectedAccessException

2017-12-08 Thread Peter Berghold
What does this mean and how do I fix it?

org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:
unclassified new com.att.ncs.actions.Notifications WorkflowScript


somewhere in this:

} catch (Throwable e) {
currentBuild.result = "FAILURE"
stage('squeal like a pig'){
notify= new Notifications(this)

notify.notifyFailed()
}
workrepo.cleanup()
throw e


seems to be the issue.


Thoughts?

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


java.lang.UnsupportedOperationException: Refusing to marshal org.codehaus.groovy.runtime.GStringImpl for security reasons

2017-12-05 Thread Peter Berghold
what on earth does that message mean?

Here is the code this seems to be happening to:

class Notifications implements Serializable {
def context
def dataBlocks
def mailLists
def workspace

// emailext body: 'my email body', subject: 'email subject', to:
't...@test.dev', replyTo: 't...@test.dev', mimeType: 'text/html';
Notifications(ctx,workspace){
context=ctx;
dataBlocks = new Data(context,workspace)
mailLists = this.loadJSON('data/email-lists.json')

}
def loadJSON(fname){
def retval
context.dir(workspace){
retval = jsonParse(context.readFile(fname))
}
return retval
}
8< snip 8<-

in particular in the loading of the JSON file.

It is laid out as
{
"list1" :: [
"member1" ...etc.
 ]
}


thoughts?

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


Re: Translation between declaritive pipleline and groovy pipeline

2017-12-04 Thread Peter Berghold
Kool! Thanks!

I suspected as much but now I full understand what's going on.

On Mon, Dec 4, 2017 at 1:15 AM Ramanathan Muthaiah 
wrote:

> What would be the equivalent of this:
>>
>> post {
>> always {
>> echo 'One way or another, I have finished'
>> deleteDir() /* clean up our workspace */
>> }
>> success {
>> echo 'I succeeeded!'
>> }
>> unstable {
>> echo 'I am unstable :/'
>> }
>> failure {
>> echo 'I failed :('
>> }
>> changed {
>> echo 'Things were different before...'
>> }
>> }
>> }
>>
>> in a Groovy pipleline?
>>
>> I'm looking at using "something" to notify by email if a build fails
>>
>>
> Groovy code presented in this Cloudbees' article is about mail
> notifications (also, slack and hipchat) -- but you may want to extend it to
> suit your needs.
>
> https://www.cloudbees.com/blog/sending-notifications-pipeline
>
> /Ram
>
> --
> You received this message because you are subscribed to the Google 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/da5927cf-2fc5-4c46-9734-8db06b87be7a%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/CAArvnv3%2ByXh54RAG8pr3yspRUMXzmV6vAsADjuDn0gC__t-93w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Translation between declaritive pipleline and groovy pipeline

2017-12-03 Thread Peter Berghold
What would be the equivalent of this:

post {
always {
echo 'One way or another, I have finished'
deleteDir() /* clean up our workspace */
}
success {
echo 'I succeeeded!'
}
unstable {
echo 'I am unstable :/'
}
failure {
echo 'I failed :('
}
changed {
echo 'Things were different before...'
}
}
}

in a Groovy pipleline?

I'm looking at using "something" to notify by email if a build fails

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1EH79K8XA9QMUDTqRAa8QWsixi_Pdx7cYon-88nyjcKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Define a class inside a groovy pipeline?

2017-12-01 Thread Peter Berghold
Yep!  That's the ticket.   Thannks again Daniel!

On Fri, Dec 1, 2017 at 2:06 PM Peter Berghold <salty.cowd...@gmail.com>
wrote:

> going to give it a shot Daniel.  Thank!
>
> On Fri, Dec 1, 2017 at 1:56 PM Daniel Butler <danielsimonbut...@gmail.com>
> wrote:
>
>> This is my preferred as it’s nice and explicit:
>>
>> class MyClass implements Serializable {
>>
>>
>>
>>   def ctx
>>
>>
>>
>>   MyClass(ctx) {
>>
>>  this.ctx=ctx
>>
>>   }
>>
>>
>>
>>   def bark(){
>>
>>  ctx.sh 'echo WOOF!'
>>
>>  }
>>
>> }
>>
>>
>>
>>
>>
>> You’d then construct it:
>> def mc = new MyClass(this)
>>
>>
>>
>> If you remove the class definition so you end up with a groovy file of
>> methods you end up with class with the same name as the groovy file. Inside
>> the class you can call pipeline steps and access the global variables like
>> it’s a pipeline script. However I don’t think you can have anything other
>> than a no-arg constructor.
>>
>>
>>
>>
>>
>> Regards,
>>
>> Daniel.
>>
>>
>>
>> *From: *Peter Berghold <salty.cowd...@gmail.com>
>> *Sent: *01 December 2017 18:02
>> *To: *Jenkins Users <jenkinsci-users@googlegroups.com>
>> *Subject: *Define a class inside a groovy pipeline?
>>
>>
>>
>> So I was playing around and tried something.   Here's a class I defined:
>>
>>
>>
>> class MyClass implements Serializable {
>>
>>
>>
>>   MyClass() {
>>
>>   }
>>
>>
>>
>>   def bark(){
>>
>>  sh 'echo WOOF!'
>>
>>  }
>>
>> }
>>
>>
>>
>> and so I instantiate it
>>
>>
>>
>> def mc = new MyClass()
>>
>>
>>
>> and I access my method
>>
>>
>>
>> mc.bark()
>>
>>
>>
>> and I get
>>
>>
>>
>> hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
>> signature of method: MyClass.sh() is applicable for argument types: 
>> (java.lang.String) values: [echo WOOF!]
>>
>>
>>
>> So my question is: if I want to access what I perceive as normal pipeline 
>> functions from inside a class how do I do it?  What magic foo do I have to 
>> use?
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google 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/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Jenkins Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to jenkinsci-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/jenkinsci-users/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0Jz4AsdLQdtVPj0jg-eu0tX_f%2Bucv%3Dxt8PgK8K9myunw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Define a class inside a groovy pipeline?

2017-12-01 Thread Peter Berghold
going to give it a shot Daniel.  Thank!

On Fri, Dec 1, 2017 at 1:56 PM Daniel Butler <danielsimonbut...@gmail.com>
wrote:

> This is my preferred as it’s nice and explicit:
>
> class MyClass implements Serializable {
>
>
>
>   def ctx
>
>
>
>   MyClass(ctx) {
>
>  this.ctx=ctx
>
>   }
>
>
>
>   def bark(){
>
>  ctx.sh 'echo WOOF!'
>
>  }
>
> }
>
>
>
>
>
> You’d then construct it:
> def mc = new MyClass(this)
>
>
>
> If you remove the class definition so you end up with a groovy file of
> methods you end up with class with the same name as the groovy file. Inside
> the class you can call pipeline steps and access the global variables like
> it’s a pipeline script. However I don’t think you can have anything other
> than a no-arg constructor.
>
>
>
>
>
> Regards,
>
> Daniel.
>
>
>
> *From: *Peter Berghold <salty.cowd...@gmail.com>
> *Sent: *01 December 2017 18:02
> *To: *Jenkins Users <jenkinsci-users@googlegroups.com>
> *Subject: *Define a class inside a groovy pipeline?
>
>
>
> So I was playing around and tried something.   Here's a class I defined:
>
>
>
> class MyClass implements Serializable {
>
>
>
>   MyClass() {
>
>   }
>
>
>
>   def bark(){
>
>  sh 'echo WOOF!'
>
>  }
>
> }
>
>
>
> and so I instantiate it
>
>
>
> def mc = new MyClass()
>
>
>
> and I access my method
>
>
>
> mc.bark()
>
>
>
> and I get
>
>
>
> hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No 
> signature of method: MyClass.sh() is applicable for argument types: 
> (java.lang.String) values: [echo WOOF!]
>
>
>
> So my question is: if I want to access what I perceive as normal pipeline 
> functions from inside a class how do I do it?  What magic foo do I have to 
> use?
>
>
>
> --
> You received this message because you are subscribed to the Google 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/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.com
> <https://groups.google.com/d/msgid/jenkinsci-users/5a21a5b5.06aadf0a.a3b73.5f40%40mx.google.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Define a class inside a groovy pipeline?

2017-12-01 Thread Peter Berghold
So I was playing around and tried something.   Here's a class I defined:

class MyClass implements Serializable {

  MyClass() {
  }

  def bark(){
 sh 'echo WOOF!'
 }
}

and so I instantiate it

def mc = new MyClass()

and I access my method

mc.bark()

and I get

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No
signature of method: MyClass.sh() is applicable for argument types:
(java.lang.String) values: [echo WOOF!]


So my question is: if I want to access what I perceive as normal
pipeline functions from inside a class how do I do it?  What magic foo
do I have to use?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv0Dgkh-CnjYebNBzHji9pOpBZGDLhnioKD87w4-7BWn4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Environmental values from a Groovy Pipeline.

2017-12-01 Thread Peter Berghold
sounds like that was what bit me.   I'm seeing bizarre behavior all over
the place that now makes sense given what you said about node {}

On Fri, Dec 1, 2017 at 1:19 AM 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
>
> it depends on where in your code you are trying to use this. A workspace
> is only available (and the  env set) while inside a node or ws block. And
> beware, when different parts of the pipeline run on different node, then
> each
> part has it's own workspace, possibly even at different locations.  And
> unless there are strong requirements for absolute pathes,  better just use
> relative pathes (all steps will by default have the WORKSPACE as current
> working dir).
>
> Björn
>
>
> Am Donnerstag, 30. November 2017 21:48:15 UTC+1 schrieb Peter Berghold:
>>
>> I am most interested in using the "WORKSPACE" value in the enviromental
>> values. within my pipeline..  I use it as a base to create a staging
>> directory from so I have a value defined such as:
>>
>> def outrepo="${env.WORKSPACE}/shipping-${env.BUILD_NUMBER}"
>>
>> what I am getting back from that is not what I'm expecting at all.
>>
>> OUTREPO: null/shipping-152
>>
>>
>> Looks like env.WORKSPACE is being resolved as a "null" instead of the full 
>> path to the job's workspace.
>>
>>
>> Is there a different form of this I should be using?  I clearly see 
>> WORKSPACE as being defined when within a shell I see that value running the 
>> shell command "env."
>>
>>
>> I could hard code it I supposed, but that kind defeats the purpose a bit
>>
>>
>> --
> You received this message because you are subscribed to the Google 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/ff698027-6d29-476c-b04b-ac2397561c9e%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ff698027-6d29-476c-b04b-ac2397561c9e%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Environmental values from a Groovy Pipeline.

2017-11-30 Thread Peter Berghold
I am most interested in using the "WORKSPACE" value in the enviromental
values. within my pipeline..  I use it as a base to create a staging
directory from so I have a value defined such as:

def outrepo="${env.WORKSPACE}/shipping-${env.BUILD_NUMBER}"

what I am getting back from that is not what I'm expecting at all.

OUTREPO: null/shipping-152


Looks like env.WORKSPACE is being resolved as a "null" instead of the
full path to the job's workspace.


Is there a different form of this I should be using?  I clearly see
WORKSPACE as being defined when within a shell I see that value
running the shell command "env."


I could hard code it I supposed, but that kind defeats the purpose a bit

-- 
You received this message because you are subscribed to the Google 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/CAArvnv34ASTPPd6rfC5zQ%2BwXG%3Do5Q-xdwwAsriL-vwvJ6x8aeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Working pipeline has stopped working...

2017-11-29 Thread Peter Berghold
the only error I'm seeing is this:

[sendRPMS] touch: cannot touch
'/data/staging/repos/released@tmp/durable-e537873f/jenkins-log.txt


what would cause this to happen?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2E2SWPNt12fRFHsMH%2B2%3DhXvRtZbh_dPTcooWs6f-VGOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Pipelines and @tmp directories

2017-11-29 Thread Peter Berghold
Simple question:  is there a way to make a pipeline not create those? Or at
the very least clean up after them?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2t937xNzXDghHXowDDJgH75oLK%3D8Tzmx16wBiUuye%2B8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Book recommendation: Mastering Jenkins

2017-11-16 Thread Peter Berghold
Hi folks,

What I'm looking for in a new book to add to my digital bookshelf is
something that will expand my knowledge (very sketchy at the moment) of
Pipelines in Jenkins.  In particular creating libraries to extend
Pipelines.

I've run into few things that I just cannot figure out by reading what's on
line for this subject.

How well does "Mastering Jenkins" by Jonathan McAllister cover those two
topics above?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv3vwj9VTvxG9xpdYx230kByiK09LD6oupnCW51-E0sKbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


try/catch in a pipeline?

2017-10-10 Thread Peter Berghold
I've noticed some "non-deterministic behavior" in my first few pipelines
and I was wondering if there i some sort of try/catch structure I could use
to catch errors.  It would sort of look like this:

try {
  sh 'some_unix_command'
} catch {
 send_mail('Step foo failed on some_unix_command')
}

-- 
You received this message because you are subscribed to the Google 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/CAArvnv0LVdGBP3yfGT2t7tFEMDa8fDykZqjt19xHKnGOXZz3sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Pipelines and Puppet Code RSPEC testing

2017-10-10 Thread Peter Berghold
Hi folks,

I've been considering creating Jenkins files inside all of my Puppet
modules and converting from the way I'm dealing with our Puppet code today
to using pipelines.

A thumbnail of what I'm doing today with Jenkins is every Puppet module is
"tested" within a Jenkins job which is a mix of shell callouts and rake
callouts.   The critical steps are as follows:

bundle exec install
bundle exec rake spec_clean
bundle exec rake validate
bundle exec rake lint
bundle exec rake spec

This is all done the "Jenkins" way using the rake invocation job item with
"bundle exec" checked except for the very first step which is indeed a
shell callout

Moving to a pipeline I not only want to do the above but I'd like to
generate report especially for the rake spec step.

I get the impression that to invoke the spec steps I'd have to do so as a
"sh" step, is that true or is there some much more pipeline-ish way of
doing this?   How do I generate and publish reports from a pipeline?

Hints and nudging me in the right direction appreciated.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv21RUR-v8ySPFUWJzSp1i%2BkMQjsc4MiRN65bH6ZrUf0qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Weird failure in a build job (Python egg -> RPM)

2017-08-08 Thread Peter Berghold
DOH!  why didn't I think of that! :-)  Thanks Mark... going to give that a
try...

On Tue, Aug 8, 2017 at 11:20 AM Mark Waite <mark.earl.wa...@gmail.com>
wrote:

> Possibly you have a different locale setting in the context of your
> Jenkins job than you have in the context where it works?
>
> LC_ALL or LANG or ...
>
> Mark Waite
>
> On Tue, Aug 8, 2017 at 9:05 AM Peter Berghold <salty.cowd...@gmail.com>
> wrote:
>
>> I have a Python egg that I'm trying to repackage into an RPM for a custom
>> installation path. When the build is run manually it goes off without a
>> hitch.
>>
>> When the build is run within Jenkins (which is my preferred method) the
>> build fails with a oddball Unicode error.
>>
>> I know this is not a Python forum, but I'm in hopes someone in the
>> Jenkins community has seen this and has a fix for it
>>
>> error noted -
>> Traceback (most recent call last): File "setup.py", line 72, in 
>> "ipaddress", File "/opt/ncs/lib/python3.6/distutils/core.py", line 148, in
>> setup dist.run_commands() File "/opt/ncs/lib/python3.6/distutils/dist.py",
>> line 955, in run_commands self.run_command(cmd) File
>> "/opt/ncs/lib/python3.6/distutils/dist.py", line 974, in run_command
>> cmd_obj.run() File
>> "/opt/ncs/lib/python3.6/site-packages/setuptools/command/bdist_rpm.py",
>> line 19, in run orig.bdist_rpm.run(self) File
>> "/opt/ncs/lib/python3.6/distutils/command/bdist_rpm.py", line 283, in run
>> "writing '%s'" % spec_path) File "/opt/ncs/lib/python3.6/distutils/cmd.py",
>> line 335, in execute util.execute(func, args, msg, dry_run=self.dry_run)
>> File "/opt/ncs/lib/python3.6/distutils/util.py", line 301, in execute
>> func(*args) File "/opt/ncs/lib/python3.6/distutils/file_util.py", line
>> 236, in write_file f.write(line + "\n") UnicodeEncodeError: 'ascii' codec
>> can't encode character '\U0001f44b' in position 2671: ordinal not in
>> range(128)
>>
>> Thoughts anybody?
>>
>> --
>> You received this message because you are subscribed to the Google 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/CAArvnv2eCTJrU37mjAj8K2SEkawt67%3D2DvotxG2NEgbfUdbb8A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2eCTJrU37mjAj8K2SEkawt67%3D2DvotxG2NEgbfUdbb8A%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEy4LhCMwy_E%2BARyPCvb-Dm_9nmHj-78s2KAhwN%3DGmUMQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEy4LhCMwy_E%2BARyPCvb-Dm_9nmHj-78s2KAhwN%3DGmUMQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Weird failure in a build job (Python egg -> RPM)

2017-08-08 Thread Peter Berghold
I have a Python egg that I'm trying to repackage into an RPM for a custom
installation path. When the build is run manually it goes off without a
hitch.

When the build is run within Jenkins (which is my preferred method) the
build fails with a oddball Unicode error.

I know this is not a Python forum, but I'm in hopes someone in the Jenkins
community has seen this and has a fix for it

error noted -
Traceback (most recent call last): File "setup.py", line 72, in 
"ipaddress", File "/opt/ncs/lib/python3.6/distutils/core.py", line 148, in
setup dist.run_commands() File "/opt/ncs/lib/python3.6/distutils/dist.py",
line 955, in run_commands self.run_command(cmd) File
"/opt/ncs/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run() File
"/opt/ncs/lib/python3.6/site-packages/setuptools/command/bdist_rpm.py",
line 19, in run orig.bdist_rpm.run(self) File
"/opt/ncs/lib/python3.6/distutils/command/bdist_rpm.py", line 283, in run
"writing '%s'" % spec_path) File "/opt/ncs/lib/python3.6/distutils/cmd.py",
line 335, in execute util.execute(func, args, msg, dry_run=self.dry_run)
File "/opt/ncs/lib/python3.6/distutils/util.py", line 301, in execute
func(*args) File "/opt/ncs/lib/python3.6/distutils/file_util.py", line 236,
in write_file f.write(line + "\n") UnicodeEncodeError: 'ascii' codec can't
encode character '\U0001f44b' in position 2671: ordinal not in range(128)

Thoughts anybody?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2eCTJrU37mjAj8K2SEkawt67%3D2DvotxG2NEgbfUdbb8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installing / maintaining Jenkins on a Linux host machine

2017-07-11 Thread Peter Berghold
My first two installations of Jenkins were on RHEL 6.x (old company
standard image) and the issues I used to have there is why I moved to
Ubuntu. (future company standard image)

On Tue, Jul 11, 2017 at 10:37 AM Jason LeMauk <
jason.lem...@csquaredsystems.com> wrote:

> Thank you for sharing your experience!
>
>
>
> The company is leaning towards not using Ubuntu / Debian, however we can
> still use it as our native operating system hosting our Jenkins instance if
> it is best practice / required. I have my own personal Jenkins instance
> setup on an Ubuntu machine and agree that the Ubuntu approach has been
> pretty straight forward.
>
>
>
> Does anybody have any experience installing / maintaining Jenkins on a
> non-Debian / non-Ubuntu Linux operating system (with Red Hat / Fedora /
> CentOS ruled out)?
>
> I am trying to discern whether or not we are relegated to a Debian /
> Ubuntu base operating system to host our Jenkins instance on (keeping in
> mind that Red Hat / Fedora / CentOS is ruled out). It should probably be
> noted that we will likely install / upgrade on the Jenkins LTS release
> schedule.
>
> Thanks again for any advice or guidance!
>
> -Jason
>
>
>
> *From:* jenkinsci-users@googlegroups.com [mailto:
> jenkinsci-users@googlegroups.com] *On Behalf Of *Peter Berghold
> *Sent:* Tuesday, July 11, 2017 10:28 AM
> *To:* jenkinsci-users@googlegroups.com
> *Subject:* Re: Installing / maintaining Jenkins on a Linux host machine
>
>
>
> I migrated my Jenkins installation over to Ubuntu from RHEL and haven't
> looked back.  My drivers may be different than yours and my reason was I am
> using Jenkins to perform CI on my Puppet environment.  Part of that is
> running some tests on the Puppet code before it is deployed and this works
> *much* better on Ubuntu that Red Hat which was getting rather McGiverish
> given all the hacks I did to get it to work.
>
>
>
> So I guess YMMV depending on what you are trying to accomplish.   If you
> are doing this in a corporate environment make sure with the powers that be
> whatever solution you pick meets with your list of acceptable solutions.
>
>
>
> On Tue, Jul 11, 2017 at 10:18 AM Jason LeMauk <
> jason.lem...@csquaredsystems.com> wrote:
>
> We are currently provisioning a physical server as our automation server.
> We are making considerations as far as what our native operating system
> should be on this physical machine.
>
>
>
> We are going to use a Linux OS as our operating system. From the Jenkins
> download page, https://jenkins.io/download/, I can see that Jenkins’
> package distribution is available to Red Hat / Fedora / CentOS (which we
> will not be using), as well as Ubuntu / Debian. I also notice that a
> Generic Java package (WAR) distribution is available.
>
>
>
> Am I correct in assuming that if we use a non-Ubuntu / non-Debian
> operating system, we can still install Jenkins via the WAR distribution
> without issue?
>
> Are we relegated to using Debian / Ubuntu if we’re going to install
> Jenkins on a Linux machine (with the possibility of Red Hat / Fedora /
> CentOS ruled out)?
>
>
>
> Thanks for any guidance from anybody who may have experience installing /
> maintaining a Jenkins instance on a Linux machine!
>
>
>
> -Jason
>
> --
> You received this message because you are subscribed to the Google 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/BY2PR12MB0599526179AD04C5679959E489AE0%40BY2PR12MB0599.namprd12.prod.outlook.com
> <https://groups.google.com/d/msgid/jenkinsci-users/BY2PR12MB0599526179AD04C5679959E489AE0%40BY2PR12MB0599.namprd12.prod.outlook.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
>
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv22Md4_0YZdgOuAE%2BpZs9Vu3g0BdHJn5qm%2BnemwoAv5sg%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv22Md4_0YZdgOuAE%2BpZs9Vu3g0BdHJn5qm%2BnemwoAv5sg%40mail.gmail.com?utm_medium=email_source=footer>
> .
>
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because yo

Re: Installing / maintaining Jenkins on a Linux host machine

2017-07-11 Thread Peter Berghold
I migrated my Jenkins installation over to Ubuntu from RHEL and haven't
looked back.  My drivers may be different than yours and my reason was I am
using Jenkins to perform CI on my Puppet environment.  Part of that is
running some tests on the Puppet code before it is deployed and this works
*much* better on Ubuntu that Red Hat which was getting rather McGiverish
given all the hacks I did to get it to work.

So I guess YMMV depending on what you are trying to accomplish.   If you
are doing this in a corporate environment make sure with the powers that be
whatever solution you pick meets with your list of acceptable solutions.

On Tue, Jul 11, 2017 at 10:18 AM Jason LeMauk <
jason.lem...@csquaredsystems.com> wrote:

> We are currently provisioning a physical server as our automation server.
> We are making considerations as far as what our native operating system
> should be on this physical machine.
>
>
>
> We are going to use a Linux OS as our operating system. From the Jenkins
> download page, https://jenkins.io/download/, I can see that Jenkins’
> package distribution is available to Red Hat / Fedora / CentOS (which we
> will not be using), as well as Ubuntu / Debian. I also notice that a
> Generic Java package (WAR) distribution is available.
>
>
>
> Am I correct in assuming that if we use a non-Ubuntu / non-Debian
> operating system, we can still install Jenkins via the WAR distribution
> without issue?
>
> Are we relegated to using Debian / Ubuntu if we’re going to install
> Jenkins on a Linux machine (with the possibility of Red Hat / Fedora /
> CentOS ruled out)?
>
>
>
> Thanks for any guidance from anybody who may have experience installing /
> maintaining a Jenkins instance on a Linux machine!
>
>
>
> -Jason
>
> --
> You received this message because you are subscribed to the Google 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/BY2PR12MB0599526179AD04C5679959E489AE0%40BY2PR12MB0599.namprd12.prod.outlook.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/CAArvnv22Md4_0YZdgOuAE%2BpZs9Vu3g0BdHJn5qm%2BnemwoAv5sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: SSH Slave crashing immediately after start

2017-06-14 Thread Peter Berghold
Changing the version of Java to 1.8 did the trick.  The slave is back
online.

On Wed, Jun 14, 2017 at 7:53 AM Peter Berghold <salty.cowd...@gmail.com>
wrote:

> Okay I guess I'm going to have to investigate how to get the newer version
> of Java on Redhat. Redhat 6 at that. Thanks for the pointers.
>
> On Wed, Jun 14, 2017, 07:04 James Nord <jn...@cloudbees.com> wrote:
>
>> > java -version returned 1.7.0_75.
>>
>>
>> Jenkins 2.58+ only support java8 or higher, this includes your agents JVM.
>>
>>
>> /James
>>
>>
>> On Tuesday, June 13, 2017 at 9:05:40 PM UTC+1, Peter Berghold wrote:
>>>
>>> I'm trying to re-establish connectivity to an SSH slave that used to
>>> work when I was running a much older version of Jenkins.  Currently I'm
>>> using v2.65. What I'm seeing (somewhat trimmed) in the log is the following:
>>>
>>> [06/13/17 20:04:05] [SSH] Checking java version of java
>>> [06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
>>> [06/13/17 20:04:05] [SSH] Starting sftp client.
>>> [06/13/17 20:04:05] [SSH] Copying latest slave.jar...
>>> [06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
>>> Expanded the channel window size to 4MB
>>> [06/13/17 20:04:05] [SSH] Starting slave process: cd "/data/jenkins-slave" 
>>> && java  -jar slave.jar
>>> <===[JENKINS REMOTING CAPACITY]===>channel started
>>> Slave JVM has not reported exit code. Is it still running?
>>> [06/13/17 20:04:09] Launch failed - cleaning up connection
>>> [06/13/17 20:04:09] [SSH] Connection closed.
>>> ERROR: Connection terminated
>>> java.io.EOFException
>>> at 
>>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
>>> at 
>>> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
>>> at 
>>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
>>> at java.io.ObjectInputStream.(ObjectInputStream.java:301)
>>> at 
>>> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
>>> at 
>>> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>>> at 
>>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
>>> Caused: java.io.IOException: Unexpected termination of the channel
>>> at 
>>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
>>>
>>>
>>> At a loss...
>>>
>>> --
>> You received this message because you are subscribed to the Google 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/ea6f2611-da6f-448d-9065-2e23fdf29a85%40googlegroups.com
>> <https://groups.google.com/d/msgid/jenkinsci-users/ea6f2611-da6f-448d-9065-2e23fdf29a85%40googlegroups.com?utm_medium=email_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

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


Re: SSH Slave crashing immediately after start

2017-06-14 Thread Peter Berghold
Okay I guess I'm going to have to investigate how to get the newer version
of Java on Redhat. Redhat 6 at that. Thanks for the pointers.

On Wed, Jun 14, 2017, 07:04 James Nord <jn...@cloudbees.com> wrote:

> > java -version returned 1.7.0_75.
>
>
> Jenkins 2.58+ only support java8 or higher, this includes your agents JVM.
>
>
> /James
>
>
> On Tuesday, June 13, 2017 at 9:05:40 PM UTC+1, Peter Berghold wrote:
>>
>> I'm trying to re-establish connectivity to an SSH slave that used to work
>> when I was running a much older version of Jenkins.  Currently I'm using
>> v2.65. What I'm seeing (somewhat trimmed) in the log is the following:
>>
>> [06/13/17 20:04:05] [SSH] Checking java version of java
>> [06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
>> [06/13/17 20:04:05] [SSH] Starting sftp client.
>> [06/13/17 20:04:05] [SSH] Copying latest slave.jar...
>> [06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
>> Expanded the channel window size to 4MB
>> [06/13/17 20:04:05] [SSH] Starting slave process: cd "/data/jenkins-slave" 
>> && java  -jar slave.jar
>> <===[JENKINS REMOTING CAPACITY]===>channel started
>> Slave JVM has not reported exit code. Is it still running?
>> [06/13/17 20:04:09] Launch failed - cleaning up connection
>> [06/13/17 20:04:09] [SSH] Connection closed.
>> ERROR: Connection terminated
>> java.io.EOFException
>>  at 
>> java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
>>  at 
>> java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
>>  at 
>> java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
>>  at java.io.ObjectInputStream.(ObjectInputStream.java:301)
>>  at 
>> hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
>>  at 
>> hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
>>  at 
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
>> Caused: java.io.IOException: Unexpected termination of the channel
>>  at 
>> hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)
>>
>>
>> At a loss...
>>
>> --
> You received this message because you are subscribed to the Google 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/ea6f2611-da6f-448d-9065-2e23fdf29a85%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/ea6f2611-da6f-448d-9065-2e23fdf29a85%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


SSH Slave crashing immediately after start

2017-06-13 Thread Peter Berghold
I'm trying to re-establish connectivity to an SSH slave that used to work
when I was running a much older version of Jenkins.  Currently I'm using
v2.65. What I'm seeing (somewhat trimmed) in the log is the following:

[06/13/17 20:04:05] [SSH] Checking java version of java
[06/13/17 20:04:05] [SSH] java -version returned 1.7.0_75.
[06/13/17 20:04:05] [SSH] Starting sftp client.
[06/13/17 20:04:05] [SSH] Copying latest slave.jar...
[06/13/17 20:04:05] [SSH] Copied 719,269 bytes.
Expanded the channel window size to 4MB
[06/13/17 20:04:05] [SSH] Starting slave process: cd
"/data/jenkins-slave" && java  -jar slave.jar
<===[JENKINS REMOTING CAPACITY]===>channel started
Slave JVM has not reported exit code. Is it still running?
[06/13/17 20:04:09] Launch failed - cleaning up connection
[06/13/17 20:04:09] [SSH] Connection closed.
ERROR: Connection terminated
java.io.EOFException
at 
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2353)
at 
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2822)
at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:804)
at java.io.ObjectInputStream.(ObjectInputStream.java:301)
at 
hudson.remoting.ObjectInputStreamEx.(ObjectInputStreamEx.java:48)
at 
hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:59)
Caused: java.io.IOException: Unexpected termination of the channel
at 
hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:73)


At a loss...

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2jpH-nq1fxzarHa%2BZGMoCdN4nfCFqhf8%2BVbxRcgGGSqQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


RHEL slave

2016-11-16 Thread Peter Berghold
Got it working finally.  Put the SSH slaves plugin on the master, added
some credentials and from there it worked great.

Thanks to all that replied to my original thread

-- 
You received this message because you are subscribed to the Google 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/CAArvnv24sbnN40ZU9HwesriVRp1pMAM3w_ZOCV-ZGpi7L3VFEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Crafting a plugin for Jenkins

2016-11-16 Thread Peter Berghold
One of the tasks I've assigned to Jenkins is managing packages for release
to the test environment and to the production environment (two tasks?).  I
do this by creating two file trees for the packages to live in called "qa"
and "released" with their purpose being rather intuitive.   If the package
tree is being sent to the testing environment qa and released are merged
and then RSync'ed to the test environment and for production releases just
the released tree is tar-ed up and made available to operations.

I say all that to say this:  I know how to write Java code to handle file
uploads and subsequent storage in a file tree.  I've looked at a few
tutorials on writing Jenkins plugins.  What I haven't seen in my random
wanderings around is an example that would become a menu item in the left
had menu bar and manage the UI.

Is there something in github or elsewhere that I could look at that would
do something similar to what I'm after?   From a decent starting place I
can figure out the rest.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2v_t-4r3bRJU6aTWmvCMUWCxApOGWqV7nqbcn6o5reDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Slave Jenkins on an RHEL box

2016-11-15 Thread Peter Berghold
wish that were the case.  Nope:  running the same command from the command
line yields the results I'm after.  Since the script runs as tomcat8 and
tomcat8 is trusted between the hosts I'm at a complete loss as to why this
is happening.

On Mon, Nov 14, 2016 at 5:45 PM Donald Morton <d1mo...@gmail.com> wrote:

> Sounds like the ssh command is failing. Maybe the password or private key
> is wrong?
>
>
> On Monday, November 14, 2016 at 10:28:20 AM UTC-6, Peter Berghold wrote:
>
> I have Jenkins running merrily on an Ubuntu box and want to set up a slave
> on an RHEL box.
>
> Created a script on the RHEL box that essentially launches a script that
> in turn launches the slave.jar.  Trying to invoke it over SSH and there's
> where things take a turn for the worse.
>
> I'm getting this:
>
> [11/14/16 16:22:37] Launching agent
> $ /usr/share/tomcat8/startSlave0
> Host key verification failed.
> ERROR: Unable to launch the agent for java.io.EOFException 
> <http://stacktrace.jenkins-ci.org/search?query=java.io.EOFException>: 
> unexpected stream termination
>   at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:365) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.ChannelBuilder.negotiate=method>
>   at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:310) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.ChannelBuilder.build=method>
>   at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:388) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer.setChannel=method>
>   at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:131) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.CommandLauncher.launch=method>
>   at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.slaves.SlaveComputer$1.call=method>
>   at 
> jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.util.ContextResettingExecutorService$2.call=method>
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.FutureTask.run=method>
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor.runWorker=method>
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.ThreadPoolExecutor$Worker.run=method>
>   at java.lang.Thread.run(Thread.java:745) 
> <http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run=method>
> ERROR: Process terminated with exit code 255
>
>
> That first line is a script on the master that does the SSH.What I'm not 
> sure about is exactly what is complaining about Host key verification.  Given 
> I can run that script by hand and it starts the jar file I'm a bit confused 
> about what's going on here.
>
>
> Has anybody gotten 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/b9a359bf-eef0-4855-9178-515ee70acce6%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/b9a359bf-eef0-4855-9178-515ee70acce6%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0AhkoJr%3DDcyyyTi74qp6iVdT%2Bo7KZmPX%2Bi0e9m-RK4Vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Slave Jenkins on an RHEL box

2016-11-14 Thread Peter Berghold
I have Jenkins running merrily on an Ubuntu box and want to set up a slave
on an RHEL box.

Created a script on the RHEL box that essentially launches a script that in
turn launches the slave.jar.  Trying to invoke it over SSH and there's
where things take a turn for the worse.

I'm getting this:

[11/14/16 16:22:37] Launching agent
$ /usr/share/tomcat8/startSlave0
Host key verification failed.
ERROR: Unable to launch the agent for java.io.EOFException
:
unexpected stream termination
at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:365)

at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:310)

at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:388)

at hudson.slaves.CommandLauncher.launch(CommandLauncher.java:131)

at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:261)

at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

ERROR: Process terminated with exit code 255


That first line is a script on the master that does the SSH.What
I'm not sure about is exactly what is complaining about Host key
verification.  Given I can run that script by hand and it starts the
jar file I'm a bit confused about what's going on here.


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


Building RPMS from Jenkins job

2016-09-07 Thread Peter Berghold
I wonder if anybody else has had the experience that I've had.  I have
several jobs running in Jenkins right now that create an RPM file and
deliver it to a repository. What I've observed is the rpmbuild command can
error out and the build still get marked successful.

Anybody else running into this?  Any thoughts?

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


Rake invocation broke -- fixed it already

2016-04-06 Thread Peter Berghold
Using the Rake plugin with Jenkins got me into a bit of trouble this
morning.  Seems it got broken somewhere along the way issuing the following
error:

/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:319:in `to_specs':
Could not find 'rake' (>= 0) among 11 total gem(s) (Gem::LoadError)
Checked in 
'GEM_PATH=file:/usr/share/tomcat6/webapps/jenkins/plugins/ruby-runtime/WEB-INF/lib/stapler-jruby-1.209.jar!/gem:/usr/lib64/ruby/gems/1.8',
execute `gem env` for more information
from /usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:328:in `to_spec'
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_gem.rb:65:in 
`gem'


After running the rake invocation from the command line I deduced that
the issue was all about the GEM_PATH variable which I then set
globally in the Jenkins settings.


Not complaining, just posting this so I might be able to save others
some time troubleshooting.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1%2BsfNqPQMtYMU9%3Dm-dBp39MFSXuMOn_PRgYHDz46w-%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


cpan2rpm as part of a Jenkins job

2016-03-23 Thread Peter Berghold
Hi there,

I'm trying to run the CPAN application cpan2rpm to run as part of a Jenkins
job.  It isn't working and causes failed builds.

When I log in as the Jenkins user (tomcat in this case) and manually run
the cpan2rpm command from the command line exactly as it looks in the job
it runs fine.

Run as a job it exits without any sort of error which of course makes it
difficult to figure out why it is failing.

I've also asked about this over on PerlMonks and so far no insight.
Anybody out there creating RPMs for Perl modules with 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/CAArvnv1BVgOwxc60wqVep8v5P40G8xBksixhw88fdLTtSkX56w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Publishing to MediaWiki

2016-03-08 Thread Peter Berghold
Has anybody figured out a way to publish content to MediaWiki from
Jenkins?  I have a bunch of projects that have Markdown format
documentation that I'd like to publish to our wiki either at the end of the
steps of a build or as a post build step.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv0WVZmwsZRMHAbutrFqw0Gp5xBptzPGposi0h5BfPgNgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


why does this happen?

2016-02-12 Thread Peter Berghold
[image: multi-jenkins.PNG]

-- 
You received this message because you are subscribed to the Google 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/CAArvnv0aEhGwJB-Kfmk7MaQg9C%3DViCBCiemWi%2Bcf99%2BcV31XvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: why does this happen?

2016-02-12 Thread Peter Berghold
Nope.  There's a single war file in /var/lib/tomcat6/webapps named
"jenkins.war" but there is a directory "jenkins" which tomcat unpacked the
war file into.

On Fri, Feb 12, 2016 at 12:09 PM Björn Stabel <bjoern.sta...@data-experts.de>
wrote:

> Blind, uneducated guess: did you deploy the .war file twice, maybe under
> different names?
>
> On 12/02/16 15:48, Peter Berghold wrote:
>
> [image: multi-jenkins.PNG]
> --
> You received this message because you are subscribed to the Google 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/CAArvnv0aEhGwJB-Kfmk7MaQg9C%3DViCBCiemWi%2Bcf99%2BcV31XvQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv0aEhGwJB-Kfmk7MaQg9C%3DViCBCiemWi%2Bcf99%2BcV31XvQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/56BE11B7.5080206%40data-experts.de
> <https://groups.google.com/d/msgid/jenkinsci-users/56BE11B7.5080206%40data-experts.de?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Dead Parrots (threads)

2015-10-27 Thread Peter Berghold
I have a rather busy build flow that invokes other builds sometimes in
parallel and other things serially.  What I've been observing is thread on
the subordinate jobs dying with an error saying "Build XXX already exists"
and interestingly enough those build numbers don't show up in the build
history.

I'm running version 1.633 which I just upgraded to two weeks ago. That, by
the way, was a flaming disaster causing me to lose all my old job
definitions, but that's another story.

SO:  what is causing the threads to die and what do I do about it?   It's
becoming ridiculous...

-- 
You received this message because you are subscribed to the Google 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/CAArvnv0P%2Bvct53-gBQAYq%2Bk4E5T-%3Dfg79FDv71KanKq86Z6ZPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Global environmental variables

2015-10-16 Thread Peter Berghold
Yah... thought of that and I'm trying to avoid that.

On Fri, Oct 16, 2015, 15:14 John Mellor <john.mel...@esentire.com> 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
> <https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv3Uo5wuYOXhcpOm-mnf6tP9ON9KAUhJE%3DzzpRc761W16w%40mail.gmail.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/97e85cf2af374fe0b66a54ca5bd1c1f4%40mbx01colo01p.esentire.local
> <https://groups.google.com/d/msgid/jenkinsci-users/97e85cf2af374fe0b66a54ca5bd1c1f4%40mbx01colo01p.esentire.local?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Global environmental variables

2015-10-16 Thread Peter Berghold
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.


Threads dying...

2015-09-03 Thread Peter Berghold
Why does this happen?

java.lang.IllegalStateException:
/usr/share/tomcat6/webapps/jenkins/jobs/DEV-dnsstat/builds/2 already
existed; will not overwite with DEV-dnsstat #2

-- 
You received this message because you are subscribed to the Google 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/CAArvnv2pVHyiur6Ew7SKanXhcfD2X%3DQSH28973VJK0%3DuGeJFOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


anonymous user?

2015-08-28 Thread Peter Berghold
I really don't want an anonymous user, but none-the-less it's there.  I'm
in the process of re-installing Jenkins in my own personal environment and
when I enable security and save my changes Jenkins abends and complains
that

anonymous is missing the Overall/Administer permission

Correct me if I'm wrong here, but isn't that a huge security hole?

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1Y3_2PQAdpg3ZyBkZudb75C0N4c6UR-6C1%2B-y34qLUcw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


KIA or WIA threads

2015-08-28 Thread Peter Berghold
Why does this happen?

ava.lang.IllegalStateException:
/var/lib/tomcat7/webapps/ROOT/jobs/berghold-apps   dev/builds/3 already
existed; will not overwrite with berghold-apps   dev #3

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1LB07o3zsQRcDHg4adtqH2GaQj37w9bkkJdgF%3DAgTewA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Automated deployment process through Jenkins

2015-08-26 Thread Peter Berghold
On Wed, Aug 26, 2015, 15:47  veeral...@gmail.com wrote:


I am trying to Automate my build machine.Once it build automatically the
war files should copy to shared server location and do the auto
deployment.I need assistance to implement this proces

s


Not much to go on htere, but my builds I've implemented in Jenkins look a
lot like shell scripts using the same techniques I'd use manually.

For instance I'll build a .war file for a web application and then just
send it to the appropriate directory on the target server using scp.  Make
sure you have SSL certs in place making Jenkins trusted in the landing zone.

-- 
You received this message because you are subscribed to the Google 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/CAArvnv1iUOc8_D%3DAcQvfeCt6QH%2BnSuiiPH145Oqm7taH_G8uGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Bug or PEBKAC? Jenkins-Rally plugin

2015-08-17 Thread Peter Berghold
I did Git checkin of one of my projects with the following commit message:

 US496500: for task TA1117248 with status: completed; actuals: 2 hours, to
do: 1

and the build failed with this in the console output:

rally update plug-in error: could not update TaskDetails entry: JsonNull
java.lang.UnsupportedOperationException: JsonNull
at com.google.gson.JsonElement.getAsDouble(JsonElement.java:198)
at 
com.jenkins.plugins.rally.utils.RallyQueryBuilder$RallyQueryResponseObject.getTaskAttributeAsDouble(RallyQueryBuilder.java:23)
at 
com.jenkins.plugins.rally.service.RallyService.updateRallyTaskDetails(RallyService.java:81)
at com.jenkins.plugins.rally.RallyPlugin.perform(RallyPlugin.java:116)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
at hudson.model.Run.execute(Run.java:1744)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:374)
Build step 'Update Rally Task and ChangeSet' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
Sending e-mails to: pb8...@att.com
Finished: FAILURE


Is it me or is there a bug?   Please advise.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAArvnv2OXX%3DHSCG%3DkKSNko27zGxVsLvjkD%2Bh4CWx2qL%2Bs0p_Jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Introduction

2015-07-17 Thread Peter Berghold
Hi folks, 

Thought I'd drop a line introducing myself.  I'm the sole developer for the 
group I work for that is doing a Puppet infrastructure deployment.  As part 
of that project I'm writing Puppet modules and plan to use Jenkins to 
automate testing of the modules (syntax, code coverage, etc) as well as 
promoting modules to the test environment and later bundling up tarfiles to 
release to production.

A bit overwhelmed right now trying to sort out just where to start and it 
looks like Jenkins is going to exceed my requirements. 

Will mostly be lurking for the time being but hope to be able to contribute 
once I've some experience with this tool.



-- 
You received this message because you are subscribed to the Google 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/731c94a5-a7cc-4e3c-b1b3-9105e42bcf62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can i install jenkins server on rhel 7 machine ? Have anyone done it earlier ?

2015-07-17 Thread Peter Berghold
My favorite way is to use the WAR file and stick it into 
${CATALINA_HOME}/webapps and let tomcat do the rest. 

On Wednesday, July 15, 2015 at 4:45:50 AM UTC-4, Krishna Kumar Tiwari wrote:

 Hi 

 I want to install jenkins server on my rhel 7 machine for continuous 
 integration. Has anyone done it earlier ?




-- 
You received this message because you are subscribed to the Google 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/4459a8fa-0a11-44b1-9d4c-e59222df7005%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.