Merge "Adding a notification step if docker-publish job fails"
diff --git a/jjb/defaults.yaml b/jjb/defaults.yaml
index 04c3573..af00943 100644
--- a/jjb/defaults.yaml
+++ b/jjb/defaults.yaml
@@ -182,3 +182,7 @@
# skip directories
# Used to skip directories in supported tests
skip-dirs: ''
+
+ # maintainers
+ # Used to notify users in supported tests
+ maintainers: 'zdw@opennetworking.org'
diff --git a/jjb/docker-publish-github.yaml b/jjb/docker-publish-github.yaml
index aed5882..1071aea 100644
--- a/jjb/docker-publish-github.yaml
+++ b/jjb/docker-publish-github.yaml
@@ -65,6 +65,11 @@
default: 'x86_64'
description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
+ - string:
+ name: maintainers
+ default: '{maintainers}'
+ description: "The person that sould be notified if this job fails"
+
project-type: pipeline
concurrent: true
diff --git a/jjb/docker-publish.yaml b/jjb/docker-publish.yaml
index 04f26ce..f9f878a 100644
--- a/jjb/docker-publish.yaml
+++ b/jjb/docker-publish.yaml
@@ -67,6 +67,11 @@
default: 'x86_64'
description: "List of architectures to build containers on, pipe separated (nonfunctional currently)"
+ - string:
+ name: maintainers
+ default: '{maintainers}'
+ description: "The person that sould be notified if this job fails"
+
project-type: pipeline
concurrent: true
diff --git a/jjb/pipeline/docker-publish.groovy b/jjb/pipeline/docker-publish.groovy
index 285b4e0..a21eda9 100644
--- a/jjb/pipeline/docker-publish.groovy
+++ b/jjb/pipeline/docker-publish.groovy
@@ -118,5 +118,8 @@
archiveArtifacts artifacts: 'docker-*.log', fingerprint: true
deleteDir()
}
+ failure {
+ step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "${params.maintainers}", sendToIndividuals: false])
+ }
}
}
diff --git a/jjb/verify/att-workflow-driver.yaml b/jjb/verify/att-workflow-driver.yaml
index b2a7fa8..ff3282e 100644
--- a/jjb/verify/att-workflow-driver.yaml
+++ b/jjb/verify/att-workflow-driver.yaml
@@ -27,5 +27,6 @@
name: 'publish-att-workflow-driver-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org, andy@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/bbsim.yaml b/jjb/verify/bbsim.yaml
index f2fbc43..f4e2e13 100644
--- a/jjb/verify/bbsim.yaml
+++ b/jjb/verify/bbsim.yaml
@@ -29,6 +29,7 @@
name: 'publish-bbsim-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'voltha'
dependency-jobs: 'version-tag'
- 'github-release':
diff --git a/jjb/verify/chameleon.yaml b/jjb/verify/chameleon.yaml
index 644cd32..9cc4325 100644
--- a/jjb/verify/chameleon.yaml
+++ b/jjb/verify/chameleon.yaml
@@ -26,6 +26,7 @@
name: 'publish-chameleon-jobs'
jobs:
- 'docker-publish':
+ maintainers: "scottb@opennetworking.org"
build-timeout: 30
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/device-management.yaml b/jjb/verify/device-management.yaml
index 5617e8e..193c78c 100644
--- a/jjb/verify/device-management.yaml
+++ b/jjb/verify/device-management.yaml
@@ -24,5 +24,6 @@
name: 'publish-device-management-jobs'
jobs:
- 'docker-publish':
+ maintainers: "scottb@opennetworking.org"
docker-repo: 'opencord'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/fabric-crossconnect.yaml b/jjb/verify/fabric-crossconnect.yaml
index 0b02aa9..bc2d2b8 100644
--- a/jjb/verify/fabric-crossconnect.yaml
+++ b/jjb/verify/fabric-crossconnect.yaml
@@ -26,5 +26,6 @@
name: 'publish-fabric-crossconnect-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/fabric.yaml b/jjb/verify/fabric.yaml
index 1f21918..b1e53e8 100644
--- a/jjb/verify/fabric.yaml
+++ b/jjb/verify/fabric.yaml
@@ -27,5 +27,6 @@
name: 'publish-fabric-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/kubernetes-service.yaml b/jjb/verify/kubernetes-service.yaml
index fa92f9f..0a55b21 100644
--- a/jjb/verify/kubernetes-service.yaml
+++ b/jjb/verify/kubernetes-service.yaml
@@ -27,5 +27,6 @@
name: 'publish-kubernetes-service-jobs'
jobs:
- 'docker-publish':
+ maintainers: "scottb@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/olt-service.yaml b/jjb/verify/olt-service.yaml
index a964f87..089a023 100644
--- a/jjb/verify/olt-service.yaml
+++ b/jjb/verify/olt-service.yaml
@@ -26,5 +26,6 @@
name: 'publish-olt-service-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/rcord.yaml b/jjb/verify/rcord.yaml
index aa3e828..c046fab 100644
--- a/jjb/verify/rcord.yaml
+++ b/jjb/verify/rcord.yaml
@@ -27,5 +27,6 @@
name: 'publish-rcord-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/simpleexampleservice.yaml b/jjb/verify/simpleexampleservice.yaml
index 738c0ac..5077924 100644
--- a/jjb/verify/simpleexampleservice.yaml
+++ b/jjb/verify/simpleexampleservice.yaml
@@ -27,5 +27,6 @@
name: 'publish-simpleexampleservice-jobs'
jobs:
- 'docker-publish':
+ maintainers: "scottb@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/tt-workflow-driver.yaml b/jjb/verify/tt-workflow-driver.yaml
index 7bce6b0..e3592c4 100644
--- a/jjb/verify/tt-workflow-driver.yaml
+++ b/jjb/verify/tt-workflow-driver.yaml
@@ -25,5 +25,6 @@
name: 'publish-tt-workflow-driver-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org, andy@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/voltha-bbsim.yaml b/jjb/verify/voltha-bbsim.yaml
index 7415d71..1ad61e9 100644
--- a/jjb/verify/voltha-bbsim.yaml
+++ b/jjb/verify/voltha-bbsim.yaml
@@ -27,6 +27,7 @@
name: 'publish-voltha-bbsim-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
build-timeout: 30
docker-repo: 'voltha'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/vrouter.yaml b/jjb/verify/vrouter.yaml
index 68e3901..7bf672d 100644
--- a/jjb/verify/vrouter.yaml
+++ b/jjb/verify/vrouter.yaml
@@ -25,5 +25,6 @@
name: 'publish-vrouter-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/xos-gui.yaml b/jjb/verify/xos-gui.yaml
index facb429..68bf816 100644
--- a/jjb/verify/xos-gui.yaml
+++ b/jjb/verify/xos-gui.yaml
@@ -25,5 +25,6 @@
name: 'publish-xos-gui-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/xos-rest-gw.yaml b/jjb/verify/xos-rest-gw.yaml
index 892dbc5..5af8c16 100644
--- a/jjb/verify/xos-rest-gw.yaml
+++ b/jjb/verify/xos-rest-gw.yaml
@@ -25,5 +25,6 @@
name: 'publish-xos-rest-gw-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/xos-tosca.yaml b/jjb/verify/xos-tosca.yaml
index 5ea83ae..9455ffe 100644
--- a/jjb/verify/xos-tosca.yaml
+++ b/jjb/verify/xos-tosca.yaml
@@ -23,5 +23,6 @@
name: 'publish-xos-tosca-jobs'
jobs:
- 'docker-publish':
+ maintainers: "teo@opennetworking.org, scottb@opennetworking.org"
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'
diff --git a/jjb/verify/xos.yaml b/jjb/verify/xos.yaml
index 93e0e1e..ff385f5 100644
--- a/jjb/verify/xos.yaml
+++ b/jjb/verify/xos.yaml
@@ -44,6 +44,7 @@
pypi-index: 'pypi'
dependency-jobs: 'version-tag'
- 'docker-publish':
+ maintainers: "teo@opennetworking.org, andy@opennetworking.org, scottb@opennetworking.org"
build-timeout: 30
docker-repo: 'xosproject'
dependency-jobs: 'version-tag'