Skip to content

Commit 6b84c20

Browse files
committed
ci: activate pipefail option in order to fix error from ansible-lint
The error was: 306 Shells that use pipes should set the pipefail option src/main/scripts/ci/ansible/deploy.yml:41 Task/Handler: Ensuring whether Liquibase migrations are valid Should be in 6162b3c commit. See https://ansible-lint.readthedocs.io/en/latest/rules/risky-shell-pipe/ Relate to #383
1 parent b63baa3 commit 6b84c20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/scripts/ci/ansible/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
- name: Ensuring whether Liquibase migrations are valid
4242
shell: |
4343
set -eu
44+
set -o pipefail
4445
eval "$(sed -n '/^[A-Z]/s||export &|p' mystamps.conf)"
4546
java $JAVA_OPTS -jar mystamps-candidate.war liquibase validate
4647
args:
4748
chdir: /data/mystamps
49+
executable: /bin/bash
4850
changed_when: False
4951
register: liquibase_validate
5052

0 commit comments

Comments
 (0)