Comments (2)
Yes, this is rather awkward and is caused by the parser that ships with pipelines itself. I see two options here:
-
install the PHP YAML extension - if available it will be used and works on your YAML
-
slightly modify the YAML, e.g. you could write the two commands on a single line:
.test-sleep: &test-sleep
sleep 10; sleep 20;
(the newline is folded into space with the original as well)
or use |
:
.test-sleep: &test-sleep |
sleep 10;
sleep 20;
(this adds new-lines but should not become a problem within the script, I'd prefer the first thought)
Thanks for providing the example. @adimoi
from pipelines.
I've used your first recommendation
.test-sleep: &test-sleep
sleep 10; sleep 20;
Thanks!
from pipelines.
Related Issues (20)
- 'image' required in service definition HOT 3
- Dockerfile for pipelines? HOT 5
- `step.clone-path` does not match current Bitbucket behavior HOT 4
- Support for `condition` HOT 4
- (Some) Anchors Do Not Work - Raises Invalid YAML HOT 12
- Support for 'docker' in 'options' HOT 9
- /bin/sh: 5: source: not found HOT 12
- Pipelines Fatal Environment Definition Error is puzzling HOT 11
- BITBUCKET_REPO_SLUG holds the `.git` extension HOT 6
- PHP Deprecated: trim(): ... no pipeline to run! HOT 7
- script non-zero exit status: 243 HOT 3
- pipelines: file parse error: 'image' required in service definition HOT 1
- coverage-checker.php deprecated notice HOT 1
- Parallel step support for fail-fast and steps properties HOT 3
- Validator fails on pipes in steps HOT 3
- Dealing with SSH stuff HOT 16
- Services support (e.g. mysql) HOT 5
- Default pipeline with parallel fails validation HOT 3
- Working with private repos HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipelines.