What would be the correct replacement for deploy.skip_cleanup: true to avoid this error:
Not currently on any branch.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: gradlew
no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (9fcc757e1adcea11837cf468b569c3fd8d28b9a4)
Script failed with status 127
failed to deploy
You are not using dpl v2 (see the above link for details). So if you need build artifacts for deployment, either leave skip_cleanup: true in, or move to dpl v2.