YAML examples for Link Checker
Check broken links with options
yaml
- action: "Check broken links"
type: "LINK_CHECKER"
trigger_time: "ON_EVERY_EXECUTION"
scan_url: "https://example.com"
threads: 5
depth: 3
connection_timeout: 30
check_external_links: true
check_ssl_certificate: true
respect_robot_exclusions: true
user_agent: "Mozilla/5.0 (compatible; LinkChecker)"
requests_per_host: 5
internal_links: "^https://example.com/"
ignore_urls:
- "^https://cdn.example.com/"
no_follow_urls:
- "/logout"
warning_regex: "(?i)error|exception"
cookies:
- name: "session"
value: "$SESSION_COOKIE"
host: "example.com"
path: "/"
Check links behind HTTP basic authentication
yaml
- action: "Check links on staging"
type: "LINK_CHECKER"
scan_url: "https://staging.example.com"
ba_username: "tester"
ba_password: "$STAGING_HTTP_PASSWORD"
Check links behind a login form
yaml
- action: "Check links after login"
type: "LINK_CHECKER"
scan_url: "https://example.com/dashboard"
html_form_auth_url: "https://example.com/login"
html_form_auth_username_input_name: "login"
html_form_auth_password_input_name: "password"
html_form_auth_username: "tester"
html_form_auth_password: "$APP_PASSWORD"