FATAL Pipeline parsing of “script.sh” failed (Failed to parse script.sh: line 17: mapping values are not allowed in this context)
Error: The command exited with status 1
The issue is probably in the YAML you are trying to upload in that script. Can you upload the contents of that script? It probably just means your indentation is wrong or you have your wait defined incorrect.
If your wait uses properties you need to add :~ after it.