Skip to content

Instantly share code, notes, and snippets.

@arilivigni
Created November 11, 2015 20:11
Show Gist options
  • Save arilivigni/9afcd66e44c9c330c111 to your computer and use it in GitHub Desktop.
Save arilivigni/9afcd66e44c9c330c111 to your computer and use it in GitHub Desktop.
JJB to poll url for content changes
- defaults:
name: poll-url-defaults
logrotate:
numToKeep: 30
artifactNumToKeep: 30
wrappers:
- ansicolor
- workspace-cleanup
- timestamps
- job-template:
name: '{name}-url-trigger'
defaults: poll-url-defaults
concurrent: false
node: master
triggers:
- pollurl:
cron: 'H/10 * * * *'
urls:
- url: '{url}'
check-content:
- simple: true
builders:
shell: |
echo "URL has changed"
publishers:
- email-ext:
recipients: '{recepients}'
reply-to: $DEFAULT_REPLYTO
content-type: default
subject: $DEFAULT_SUBJECT
body: $DEFAULT_CONTENT
attach-build-log: true
always: true
matrix-trigger: only-configurations
send-to:
- requester
- recipients
- project:
name: delorean
url: http://trunk.rdoproject.org/centos7/current/delorean.repo
recepients: [email protected],[email protected]
jobs:
- '{name}-url-trigger'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment