Skip to content

build still continue even if commands fail #121

@ayaka209

Description

@ayaka209
======CMD======
set -o pipefail
cd /home/xxx
mkdir backup-drone
cd backup-drone
mysqldump xx -uxx --add-drop-table --create-options | bzip2 -c > runrunfitness.latest.sql.bz2
cp runrunfitness.latest.sql.bz2 runrunfitness.$(date +%Y%m%d%H%M%S).sql.bz2
 ======END======
err: mkdir: cannot create directory ‘backup-drone’: File exists
err: Enter password: mysqldump: Got error: 1045: Access denied for user 'xx'@'localhost' (using password: NO) when trying to connect
 ==========================================
Successfully executed commands to all host.
 ==========================================

build steps should be stopped and returns error.
continued currently

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions