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
Staff Sotware Engineer
India
267 accepted answers
3 comments