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:
<pre>
"node('[slave|node|agent] name here'){
}"
</pre>
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