I had a really long command in my pipeline file, and being a programmer I can't tolerate anything longer than 120 columns (it was 80, but with modern screen real estate I think 120 is good number).
This is how my file looked like,
As you can see my really long command is going pass editor screen. So, how do we wrap this?
bitbuket-pipeline.yml file is YAML file, and after visiting and reading RFC for YAML, I had a eureka moment. The magical symbol is '>-' for non white space multiple lines.
So my file now look like this,
Isn't it more beautiful?
DPKJ
Engineer | Architecture | System Design
India
267 accepted answers
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
3 comments