diff options
author | Will Soula <william.soula@drillinginfo.com> | 2015-12-01 15:09:20 -0600 |
---|---|---|
committer | Will Soula <william.soula@drillinginfo.com> | 2015-12-03 19:12:18 -0600 |
commit | c72cf731efe985ccb4afc9f7c3c423e5090ea868 (patch) | |
tree | 8acc4231778a3cde9211d6f3f0be36120b087140 /tests/triggers | |
parent | 440cc0d12f20ea5dbe28a49dd3cca13968711229 (diff) | |
download | python-jenkins-job-builder-c72cf731efe985ccb4afc9f7c3c423e5090ea868.tar.gz python-jenkins-job-builder-c72cf731efe985ccb4afc9f7c3c423e5090ea868.tar.xz python-jenkins-job-builder-c72cf731efe985ccb4afc9f7c3c423e5090ea868.zip |
Fix pollscm backwards compatiblity
This change https://review.openstack.org/#/c/211993/ made '' an
invalid attribute value for pollscm, but that is a valid value. We use
'' for pollscm with the option to build when a changed is pushed to
github. This might have changed since we set it up, but you had to
specify a blank poll schedule for jenkins to build on pushes to github.
This changes allows '' as a valid value.
Change-Id: I35c45b4619584b3358562131399fc5ef16c4c5ec
Diffstat (limited to 'tests/triggers')
-rw-r--r-- | tests/triggers/fixtures/pollscm004.xml | 9 | ||||
-rw-r--r-- | tests/triggers/fixtures/pollscm004.yaml | 3 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/triggers/fixtures/pollscm004.xml b/tests/triggers/fixtures/pollscm004.xml new file mode 100644 index 00000000..239bed26 --- /dev/null +++ b/tests/triggers/fixtures/pollscm004.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<project> + <triggers class="vector"> + <hudson.triggers.SCMTrigger> + <spec/> + <ignorePostCommitHooks>false</ignorePostCommitHooks> + </hudson.triggers.SCMTrigger> + </triggers> +</project> diff --git a/tests/triggers/fixtures/pollscm004.yaml b/tests/triggers/fixtures/pollscm004.yaml new file mode 100644 index 00000000..3d0d9d5e --- /dev/null +++ b/tests/triggers/fixtures/pollscm004.yaml @@ -0,0 +1,3 @@ +triggers: + - pollscm: + cron: "" |