Skip to content

Bug: last part of 'command' is being truncating causing steady error #3973

Closed Answered by qwerty287
Danylov-Mykola asked this question in Ask a Question
Discussion options

You must be logged in to vote

Do we prohibited to use multiline shell commands with quoted parts?

If we mean the syntax you're using currently, yes, this is prohibited by the YAML specs.

Unfortunately, all of leading spaces from .woodpecker.yaml are goes to preprocessing and taking in the consider increasing a "command" string inside woodpecker app

I don't get that.
YAML has support for multiline strings and the . Please try something like this:

steps:
 - name: xyz
   commands:
    - |
     ssh-whatever with a "long
     multiline
     arg"

This should parse as

ssh-whatever with a "long
multiline
arg"

If you want the newlines in there replaced by spaces, just replace the | by >.


And, in the future, please don't …

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@Danylov-Mykola
Comment options

Comment options

You must be logged in to vote
2 replies
@Danylov-Mykola
Comment options

@zc-devs
Comment options

Comment options

You must be logged in to vote
1 reply
@Danylov-Mykola
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Danylov-Mykola
Comment options

Answer selected by Danylov-Mykola
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants