I like yaml to edit preexisting files, but they should come with a generator.
Jenkins pipelines as YAML
11–20 of 76 posts
Re: Jenkins pipelines as YAML
#12YAML doesn't let you transcribe logic easily compared to any programming language, and build logic always tends to go up. Programming languages also allows you to create abstraction to remove some of the complexity from the users.
Re: Jenkins pipelines as YAML
#13Re: Jenkins pipelines as YAML
#14This would be great if you didn't have to use scripted pipelines for so much stuff. Declarative pipeline isn't there yet.
From what I can tell, this creates a mapping of YAML to Declarative pipeline syntax, so it's unlikely to improve on that.
Re: Jenkins pipelines as YAML
#15This is just lowering themselves to the same level as every other CI tool. For sure YAML is an easier barrier to entry to overcome, but it's also a low ceiling. YAML doesn't let you transcribe logic easily compared to any programming language, and build logic always tends to go up. Programming languages also allows you to create abstraction to remove some of the complexity from the users.
https://docs.saltstack.com/en/latest/topics/jinja/index.html
Re: Jenkins pipelines as YAML
#16Re: Jenkins pipelines as YAML
#17I am so grateful for this. As a non-Java person, using the Groovy pipelines was incredibly painful to incrementally fix on the server. Nothing like pushing 20 commits in a row and forcing a build, only to find each time that an odd syntax error.
Re: Jenkins pipelines as YAML
#18This is just lowering themselves to the same level as every other CI tool. For sure YAML is an easier barrier to entry to overcome, but it's also a low ceiling. YAML doesn't let you transcribe logic easily compared to any programming language, and build logic always tends to go up. Programming languages also allows you to create abstraction to remove some of the complexity from the users.
YAML is a way better way of doing it than the current jenkins way though.
Re: Jenkins pipelines as YAML
#19This is just lowering themselves to the same level as every other CI tool. For sure YAML is an easier barrier to entry to overcome, but it's also a low ceiling. YAML doesn't let you transcribe logic easily compared to any programming language, and build logic always tends to go up. Programming languages also allows you to create abstraction to remove some of the complexity from the users.
I've been thinking this recently as well. Some problem spaces are definitely very amenable to being transformed into a purely declarative language like YAML but, while builds look like that at first glance, I find that turing-complete-code customization is required just a little too often for it to be worthwhile. YAML is a way better way of doing it than the current jenkins way though.
Re: Jenkins pipelines as YAML
#20I am so grateful for this. As a non-Java person, using the Groovy pipelines was incredibly painful to incrementally fix on the server. Nothing like pushing 20 commits in a row and forcing a build, only to find each time that an odd syntax error.