Re: Pipeline documentation jenkins-book vs realty?

2017-02-15 Thread christian polzer
Thanks again... 

it is hurting, thou:)

On Wednesday, February 15, 2017 at 2:24:56 PM UTC+1, Daniel Beck wrote:
>
>
> > On 15.02.2017, at 14:21, christian polzer  > wrote: 
> > 
> > Should i report that with lts version and version of all plugins?? 
>
> You're overriding PATH in an unsupported way. See JENKINS-41339 for 
> solutions. 
>
>

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-15 Thread Daniel Beck

> On 15.02.2017, at 14:21, christian polzer  wrote:
> 
> Should i report that with lts version and version of all plugins??

You're overriding PATH in an unsupported way. See JENKINS-41339 for solutions.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/570CE1CF-B086-47C0-9EFC-A41A8128778D%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline documentation jenkins-book vs realty?

2017-02-15 Thread christian polzer
Ok.

updating the plugins did enable the new declarative poipeline, but disabled 
usage of everything path related.. shell "sh"  steps:

Running shell script
nohup: failed to run command ‘sh’: No such file or directory


Should i report that with lts version and version of all plugins??



On Tuesday, February 14, 2017 at 1:14:26 PM UTC+1, Daniel Beck wrote:
>
>
> > On 14.02.2017, at 11:59, christian polzer  > wrote: 
> > 
> > Would it be possible to somehow track the version the documentation is 
> written for? :) 
>
> You can assume latest LTS or newer, with plugins up to date, as these are 
> the only releases we consider to be supported. (I think rtyler has plans to 
> improve this, but I doubt that'll be available soon.) 
>
> Running anything older is frequently a terrible idea anyway, see 
> https://jenkins.io/security/advisories/ 
>
>

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-14 Thread Daniel Beck

> On 14.02.2017, at 11:59, christian polzer  wrote:
> 
> Would it be possible to somehow track the version the documentation is 
> written for? :)

You can assume latest LTS or newer, with plugins up to date, as these are the 
only releases we consider to be supported. (I think rtyler has plans to improve 
this, but I doubt that'll be available soon.)

Running anything older is frequently a terrible idea anyway, see 
https://jenkins.io/security/advisories/

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5AC82BC4-928C-4ABD-9BFA-9D9B847EB0DF%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline documentation jenkins-book vs realty?

2017-02-14 Thread christian polzer
Ok, we have Jenkins LTS ver. 2.19.4 
installed with plugins updated just now.

And voila - it is working. 

Then now to another issue: Would it be possible to somehow track the 
version the documentation is written for? :)


On Tuesday, February 14, 2017 at 11:11:20 AM UTC+1, Daniel Beck wrote:
>
>
> > On 14.02.2017, at 10:22, christian polzer  > wrote: 
> > 
> > I just wondered if the pipeline example is pseudo code and if so - if it 
> has to? 
> > 
>
> You don't have the correct plugin installed: 
> https://plugins.jenkins.io/pipeline-model-definition 
>
> It should be automatically installed if you update plugins now, assuming 
> you have the default set from 2.0 onward installed. 
>
>

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-14 Thread Daniel Beck

> On 14.02.2017, at 10:22, christian polzer  wrote:
> 
> I just wondered if the pipeline example is pseudo code and if so - if it has 
> to?
> 

You don't have the correct plugin installed:
https://plugins.jenkins.io/pipeline-model-definition

It should be automatically installed if you update plugins now, assuming you 
have the default set from 2.0 onward installed.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4267B60C-31F4-4F16-90EB-2EDC66B6E1A4%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.


Re: Pipeline documentation jenkins-book vs realty?

2017-02-14 Thread christian polzer
Hi there, 

just a comment on your second question:

2) secondly, why Jenkins creates another  directory @tmp when I would like 
to execute a command from my workspace.

-> you are able to configure the executing jvm to use another tmp dir. 
Example : java -Djava.io.tmpdir=/path/to/tmpdir
(Especially handy if you are using RHEL7 or other oses which do not allow 
to execute stuff in /tmp)

On Tuesday, February 14, 2017 at 3:34:12 AM UTC+1, Sharan Basappa wrote:
>
> Tyler,
>
> I have a few questions for which I could not find answers after going 
> through the documentation.
> Unfortunately, understanding of these are necessary for anyone to create a 
> decent build jobs.
>
> 1) Jenkins seems to be executing from a directory named @tmp (and some 
> other names). The files I am referring are not available in @tmp directory 
> and hence
> the pipeline stage is exiting
> 2) secondly, why Jenkins creates another  directory @tmp when I would like 
> to execute a command from my workspace.
> All the references made by the script are available here.
> 3) I have also seen that sometimes the files from git are available but 
> .git itself is missing
>
> Can you comment?
>
> On Monday, 13 February 2017 19:31:37 UTC+5:30, R Tyler Croy wrote:
>
>> (replies inline) 
>>
>> On Mon, 13 Feb 2017, christian polzer wrote: 
>>
>> > Hello, 
>> > 
>> > I am currently trying to spread pipeline usage for a jenkins 
>> environment 
>> > within my fellow coworkers. 
>> > Of course, th jenkins pipeline is greatly embrased :) 
>> > 
>> > But what is the documentation in the jenkins book about? Fellow 
>> CoCoders 
>> > stumble over the jenkinsfile chapter as the examples are not working: 
>> > https://jenkins.io/doc/book/pipeline/ 
>> > 
>> > What documentation do you guys use? 
>>
>>
>> What examples are not working for you? I wrote almost all of them and I'm 
>> pretty sure every single one works, perhaps I made a typo. 
>>
>> Could you share the error you're seeing and the corresponding Jenkinsfile 
>> example? 
>>
>>
>> Cheers 
>> - R. Tyler Croy 
>>
>> -- 
>>  Code:  
>>   Chatter:  
>>  xmpp: rty...@jabber.org 
>>
>>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
>> -- 
>>
>

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-14 Thread christian polzer
Hi, 
and thanks for the quick reply.
To be precice, I am getting questions about the "Jenkinsfile (Declarative 
Pipeline)" example. 

*For example : *

1.) No such DSL method 'pipeline'

*2.) "*agent any" is not working , and as far as I learned from other 
coverage, agents (= nodes? ) are addressed with this syntax:  

"node('[slave|node|agent] name here'){
}"   
**

When introducing jenkins pipelines,  I had setup loads of pipeline examples 
on our Jenkins. But as the common developer is behaving, 
they never get bored of digging into stuff, in a struggle to make things 
easier and try out different angles :-)

When they finally stumble upon the jenkins book section, this is the 
question I get from most of my colleagues:
"How is this example meant to be used, or is it referring to a version of 
pipeline which is either outdated or we dont have installed yet?"
-> It also is unclear to me, if that syntax would be working, since I never 
saw this in any other example when digging into pipeline. 

This results in parts of the team drawing conclusions how pipeline is not 
so precise at all and syntax save and blablablah, and oh well - the 
documentation...
and then they skip multibranch pipelines and setup 60 identically build 
jobs by hand (which I have to maintain and backup) :-/

Please excuse my partly bad english - and please understand that no harm is 
intended here. I am really amazed by the jenkins project and the 
documentation and all.
 
I just wondered if the pipeline example is pseudo code and if so - if it 
has to?

Thanks for the good work and kind regards,

chris












On Monday, February 13, 2017 at 3:01:37 PM UTC+1, R Tyler Croy wrote:
>
> (replies inline) 
>
> On Mon, 13 Feb 2017, christian polzer wrote: 
>
> > Hello, 
> > 
> > I am currently trying to spread pipeline usage for a jenkins environment 
> > within my fellow coworkers. 
> > Of course, th jenkins pipeline is greatly embrased :) 
> > 
> > But what is the documentation in the jenkins book about? Fellow CoCoders 
> > stumble over the jenkinsfile chapter as the examples are not working: 
> > https://jenkins.io/doc/book/pipeline/ 
> > 
> > What documentation do you guys use? 
>
>
> What examples are not working for you? I wrote almost all of them and I'm 
> pretty sure every single one works, perhaps I made a typo. 
>
> Could you share the error you're seeing and the corresponding Jenkinsfile 
> example? 
>
>
> Cheers 
> - R. Tyler Croy 
>
> -- 
>  Code:  
>   Chatter:  
>  xmpp: rty...@jabber.org  
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
> -- 
>

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread Daniel Beck

> On 14.02.2017, at 03:34, Sharan Basappa  wrote:
> 
> 1) Jenkins seems to be executing from a directory named @tmp (and some other 
> names). The files I am referring are not available in @tmp directory and hence
> the pipeline stage is exiting
> 2) secondly, why Jenkins creates another  directory @tmp when I would like to 
> execute a command from my workspace.
> All the references made by the script are available here.
> 3) I have also seen that sometimes the files from git are available but .git 
> itself is missing

Answered yesterday here: 
https://groups.google.com/d/msg/jenkinsci-users/OFez67DYYVY/YvSyQnE1AAAJ

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread Sharan Basappa
Tyler,

I have a few questions for which I could not find answers after going 
through the documentation.
Unfortunately, understanding of these are necessary for anyone to create a 
decent build jobs.

1) Jenkins seems to be executing from a directory named @tmp (and some 
other names). The files I am referring are not available in @tmp directory 
and hence
the pipeline stage is exiting
2) secondly, why Jenkins creates another  directory @tmp when I would like 
to execute a command from my workspace.
All the references made by the script are available here.
3) I have also seen that sometimes the files from git are available but 
.git itself is missing

Can you comment?

On Monday, 13 February 2017 19:31:37 UTC+5:30, R Tyler Croy wrote:

> (replies inline) 
>
> On Mon, 13 Feb 2017, christian polzer wrote: 
>
> > Hello, 
> > 
> > I am currently trying to spread pipeline usage for a jenkins environment 
> > within my fellow coworkers. 
> > Of course, th jenkins pipeline is greatly embrased :) 
> > 
> > But what is the documentation in the jenkins book about? Fellow CoCoders 
> > stumble over the jenkinsfile chapter as the examples are not working: 
> > https://jenkins.io/doc/book/pipeline/ 
> > 
> > What documentation do you guys use? 
>
>
> What examples are not working for you? I wrote almost all of them and I'm 
> pretty sure every single one works, perhaps I made a typo. 
>
> Could you share the error you're seeing and the corresponding Jenkinsfile 
> example? 
>
>
> Cheers 
> - R. Tyler Croy 
>
> -- 
>  Code:  
>   Chatter:  
>  xmpp: rty...@jabber.org  
>
>   % gpg --keyserver keys.gnupg.net --recv-key 1426C7DC3F51E16F 
> -- 
>

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread jerome
https://jenkins.io/doc/pipeline/examples/

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


Re: Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread Christopher Orr
Hi there,



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

> Hello,

> 

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

> 

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



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



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


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


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



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



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


Regards,

Chris

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


Pipeline documentation jenkins-book vs realty?

2017-02-13 Thread christian polzer
Hello,

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

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

What documentation do you guys 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/85bef299-294a-43c2-9e4a-f629e51fac88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.