Drop initial code
This commit is contained in:
22
bamboo-specs/validate/ansible-lint.yaml
Normal file
22
bamboo-specs/validate/ansible-lint.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
## Molecule deploy and test
|
||||
tasks:
|
||||
- script: |
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
|
||||
# Run ansible-lint for the first set of roles (cp/lifecycle)
|
||||
if ! docker run --rm --volume ${bamboo.hostvolume}:/data \
|
||||
--workdir=/data \
|
||||
${bamboo.container_molecule} \
|
||||
ansible-lint -c .ansible-lint.yml; then
|
||||
echo "ERROR: Ansible Lint failed. Check the output for details."
|
||||
exit 1 # Stop the script immediately
|
||||
fi
|
||||
echo "Ansible Lint successful for all ansible/collections/ansible_collections!"
|
||||
other:
|
||||
clean-working-dir: true
|
||||
requirements:
|
||||
- system.docker.executable
|
||||
- AGENT_TYPE: Linux_Base_Agent
|
||||
Reference in New Issue
Block a user