Skip to content

Commit

Permalink
converted yaml syntax errors to warning (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
madhansansel authored Nov 19, 2024
2 parents fd179d8 + d53af96 commit 63e3d41
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 106 deletions.
105 changes: 0 additions & 105 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,25 +340,6 @@ jobs:
find / -name run_tests.sh
cat ccc_roles.yml | circleci tests run --command "xargs ./run_tests.sh" --split-by=timings --timings-type=name
# echo -n 0 > rc
# cat ccc_roles.yml | circleci tests run --command "xargs ./run_tests.sh" --split-by=timings --timings-type=name || echo -n $? > rc
# echo ${LOGS_SSH_KEY} | base64 -d > ~/id_ssh
# chmod 600 ~/id_ssh
# export NO_PROXY=""
# export no_proxy=""
# ssh $LOGS_MACHINE \
# -o StrictHostKeyChecking=no \
# -o UserKnownHostsFile=/dev/null \
# -i ~/id_ssh \
# mkdir -p /var/www/html/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BUILD_NUM
# scp \
# -i ~/id_ssh \
# -o StrictHostKeyChecking=no \
# -o UserKnownHostsFile=/dev/null \
# sanity_tests_logs_$CIRCLE_NODE_INDEX.log $LOGS_MACHINE:/var/www/html/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BUILD_NUM
# echo "LOGS URL: http://10.195.243.37/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BUILD_NUM/sanity_tests_logs_$CIRCLE_NODE_INDEX.log"
# if [[ $(cat rc) != "0" ]]; then exit 1; fi
no_output_timeout: 120m

post_pnp_testing:
Expand All @@ -373,51 +354,6 @@ jobs:
command: |
python ${HOME}/static/pnp_script.py #TODO
# main-pr:
# docker:
# - image: maniator/gh:v2.49.2
# resource_class: cisco-en-programmability/catalyst-center-ansible-runner-main
# steps:
# - run:
# name: Clone repo to workspace
# command: git clone --depth=1 -b $CIRCLE_BRANCH https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git .
# - run:
# name: Create release pr to main
# command: |
# gh repo set-default $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
# gh pr create \
# --base main \
# --head $CIRCLE_BRANCH \
# --title "Release v<< pipeline.parameters.ansible_cisco_dnac_version >>" \
# --body "Release v<< pipeline.parameters.ansible_cisco_dnac_version >>"

# release-job:
# docker:
# - image: python:3.8.10
# resource_class: cisco-en-programmability/catalyst-center-ansible-runner-main
# steps:
# - run:
# name: Clone repo to workspace
# command: |
# git clone --depth=1 https://github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git .
# git fetch origin $CIRCLE_BRANCH:work
# git checkout work
# - restore_cache:
# keys:
# - collection-<< pipeline.git.revision >>
# # - add_ssh_keys:
# # fingerprints:
# # - "KEY_FINGERPRINT"
# - run:
# echo create release
# git tag \
# -a v<< pipeline.parameters.ansible_cisco_dnac_version >> \
# -m "Ansible DNACCollection Version v<< pipeline.parameters.ansible_cisco_dnac_version >>"
# gh release create "v<< pipeline.parameters.ansible_cisco_dnac_version >>" \
# --title "DNAC Collection Version v<< pipeline.parameters.ansible_cisco_dnac_version >>" \
# --latest
# ansible-galaxy collection publish workspace/*.tar.gz --api-key=$GALAXYKEY

workflows:

building:
Expand Down Expand Up @@ -493,44 +429,3 @@ workflows:
# - post_pnp_testing:
# requires:
# - sanity-tests

# release-candidate:
# when:
# or:
# - equal: [run-release-prep, << pipeline.parameters.GHA_Meta >>]
# jobs:
# - build
# - addrole:
# matrix:
# parameters:
# run-all:
# - true
# - sanity-tests:
# requires:
# - addrole
# - build
# context:
# - dnac-servers
# - hold:
# type: approval
# requires:
# - sanity-tests

# - main-pr:
# context:
# - gh-token
# requires:
# - hold

# release:
# when:
# or:
# - equal: [run-release, << pipeline.parameters.GHA_Meta >>]
# jobs:
# - build
# - release-job:
# requires:
# - build
# context:
# - gh-token
# - galaxy-token
11 changes: 10 additions & 1 deletion .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@ extends: default
ignore:
- tests
- changelogs/changelog.yaml
# - playbooks
# - playbooks
# - plugins

level: warning

rules:
syntax-error:
level: warning

line-length:
max: 160
level: warning

indentation:
level: warning

trailing-spaces:
level: warning

new-line-at-end-of-file:
level: warning

key-duplicates:
level: warning

0 comments on commit 63e3d41

Please sign in to comment.