Created
November 11, 2015 20:11
-
-
Save arilivigni/9afcd66e44c9c330c111 to your computer and use it in GitHub Desktop.
JJB to poll url for content changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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