diff options
author | Sylvain Baubeau <lebauce@gmail.com> | 2019-10-04 11:30:15 +0200 |
---|---|---|
committer | Sylvain Baubeau <lebauce@gmail.com> | 2019-10-04 13:01:10 +0200 |
commit | 84c114c0887248a79cd70619ab8e5229524f683c (patch) | |
tree | 37c0b21af221b7fc9f85858e8faac435352bfd7b | |
parent | fc63f1439816d9022a2d538614b0b7592f96b454 (diff) | |
download | python-jenkins-job-builder-84c114c0887248a79cd70619ab8e5229524f683c.tar.gz python-jenkins-job-builder-84c114c0887248a79cd70619ab8e5229524f683c.tar.xz python-jenkins-job-builder-84c114c0887248a79cd70619ab8e5229524f683c.zip |
Add support for new 'notify every failure' option in Slack Plugin
Change-Id: Idd48c5c0e595195aaecfee9aab7233cbf1d1a640
-rw-r--r-- | jenkins_jobs/modules/publishers.py | 3 | ||||
-rw-r--r-- | tests/publishers/fixtures/slack003.xml | 1 | ||||
-rw-r--r-- | tests/publishers/fixtures/slack004.xml | 1 | ||||
-rw-r--r-- | tests/publishers/fixtures/slack004.yaml | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/jenkins_jobs/modules/publishers.py b/jenkins_jobs/modules/publishers.py index 6c079ed9..c9162965 100644 --- a/jenkins_jobs/modules/publishers.py +++ b/jenkins_jobs/modules/publishers.py @@ -7402,6 +7402,8 @@ def slack(registry, xml_parent, data): (>=2.0). (default false) :arg bool notify-failure: Send notification when job fails for the first time (previous build was a success) (>=2.0). (default false) + :arg bool notify-every-failure: Send notification everytime a job fails + (>=2.23). (default false) :arg bool notify-back-to-normal: Send notification when job is succeeding again after being unstable or failed (>=2.0). (default false) :arg bool notify-repeated-failure: Send notification when job fails @@ -7478,6 +7480,7 @@ def slack(registry, xml_parent, data): ("notify-not-built", "notifyNotBuilt", False), ("notify-unstable", "notifyUnstable", False), ("notify-failure", "notifyFailure", False), + ("notify-every-failure", "notifyEveryFailure", False), ("notify-back-to-normal", "notifyBackToNormal", False), ("notify-regression", "notifyRegression", False), ("notify-repeated-failure", "notifyRepeatedFailure", False), diff --git a/tests/publishers/fixtures/slack003.xml b/tests/publishers/fixtures/slack003.xml index 026be446..bb4480e8 100644 --- a/tests/publishers/fixtures/slack003.xml +++ b/tests/publishers/fixtures/slack003.xml @@ -13,6 +13,7 @@ <notifyNotBuilt>false</notifyNotBuilt> <notifyUnstable>false</notifyUnstable> <notifyFailure>false</notifyFailure> + <notifyEveryFailure>false</notifyEveryFailure> <notifyBackToNormal>false</notifyBackToNormal> <notifyRegression>false</notifyRegression> <notifyRepeatedFailure>false</notifyRepeatedFailure> diff --git a/tests/publishers/fixtures/slack004.xml b/tests/publishers/fixtures/slack004.xml index 73eb8b68..425b3370 100644 --- a/tests/publishers/fixtures/slack004.xml +++ b/tests/publishers/fixtures/slack004.xml @@ -13,6 +13,7 @@ <notifyNotBuilt>true</notifyNotBuilt> <notifyUnstable>true</notifyUnstable> <notifyFailure>true</notifyFailure> + <notifyEveryFailure>true</notifyEveryFailure> <notifyBackToNormal>true</notifyBackToNormal> <notifyRegression>true</notifyRegression> <notifyRepeatedFailure>true</notifyRepeatedFailure> diff --git a/tests/publishers/fixtures/slack004.yaml b/tests/publishers/fixtures/slack004.yaml index bf4d9e1c..d4a36e04 100644 --- a/tests/publishers/fixtures/slack004.yaml +++ b/tests/publishers/fixtures/slack004.yaml @@ -11,6 +11,7 @@ publishers: notify-not-built: True notify-unstable: True notify-failure: True + notify-every-failure: True notify-back-to-normal: True notify-repeated-failure: True notify-regression: True |