Bug: last part of 'command' is being truncating causing steady error #3973
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Can you post your config? |
Beta Was this translation helpful? Give feedback.
-
Make the scripts and run them from the commands.
steps:
create-or-update-service:
commands:
- .set-env.sh
- .pull-image.sh
- .create-service.sh
- ... |
Beta Was this translation helpful? Give feedback.
-
@zc-devs's solution is possible, but yaml actually supports multiline strings itself: https://yaml-multiline.info/ You can just use that and add a |
Beta Was this translation helpful? Give feedback.
-
@qwerty287, it is sad to know that the config is wrong as you mentioned there #3974 (comment) . That means there is no way to fix it...
and replacing it with:
makes a miracle. |
Beta Was this translation helpful? Give feedback.
-
If we mean the syntax you're using currently, yes, this is prohibited by the YAML specs.
I don't get that. steps:
- name: xyz
commands:
- |
ssh-whatever with a "long
multiline
arg" This should parse as
If you want the newlines in there replaced by spaces, just replace the And, in the future, please don't be that placative like "That means there is no way to fix it...". |
Beta Was this translation helpful? Give feedback.
If we mean the syntax you're using currently, yes, this is prohibited by the YAML specs.
I don't get that.
YAML has support for multiline strings and the . Please try something like this:
This should parse as
If you want the newlines in there replaced by spaces, just replace the
|
by>
.And, in the future, please don't …