[SEBA-685] Creating a per-repo job to pusblish ONOS Apps snapshots
Change-Id: Ica56473b4b1269c90e40ef01cff4e4e8b535a44d
diff --git a/jjb/maven.yaml b/jjb/maven.yaml
index 00fa36f..b0f12e9 100644
--- a/jjb/maven.yaml
+++ b/jjb/maven.yaml
@@ -57,6 +57,57 @@
pom: pom.xml
goals: 'clean install'
+- job-template:
+ id: maven-deploy
+ name: '{project}-gerrit-deploy'
+ description: |
+ <!-- Managed by Jenkins Job Builder -->
+ Created by {id} job-template from ci-management/jjb/maven.yaml
+
+ node: 'ubuntu16.04-basebuild-1c-2g'
+ project-type: freestyle
+
+ parameters:
+ - string:
+ name: GERRIT_BRANCH
+ default: 'master'
+ description: 'Use default when using "Build Now"'
+
+ - string:
+ name: GERRIT_REFSPEC
+ default: 'refs/heads/master'
+ description: 'Use default when using "Build Now"'
+
+ triggers:
+ - cord-infra-gerrit-trigger-merge:
+ gerrit-server-name: '{gerrit-server-name}'
+ project-regexp: '{project}'
+ branch-regexp: '{branch-regexp}'
+ file-include-regexp: '{all-files-regexp}'
+ dependency-jobs: '{dependency-jobs}'
+
+ properties:
+ - cord-infra-properties:
+ build-days-to-keep: '{build-days-to-keep}'
+ artifact-num-to-keep: '{artifact-num-to-keep}'
+
+ scm:
+ - git:
+ url: '{gerrit-server-url}/{project}'
+ branches:
+ - '$GERRIT_BRANCH'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+ shallow-clone: true
+
+ builders:
+ - inject:
+ properties-content: |
+ _JAVA_OPTIONS=-Djdk.net.URLClassPath.disableClassPathURLCheck=true
+ - maven-target:
+ pom: pom.xml
+ settings: onoscord-apps
+ goals: 'clean deploy'
- job-template:
id: maven-test
diff --git a/jjb/maven/aaa.yaml b/jjb/maven/aaa.yaml
index 9a86551..e11b20b 100644
--- a/jjb/maven/aaa.yaml
+++ b/jjb/maven/aaa.yaml
@@ -7,10 +7,11 @@
jobs:
- 'aaa-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'aaa-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/config.yaml b/jjb/maven/config.yaml
index d865397..8c4669b 100644
--- a/jjb/maven/config.yaml
+++ b/jjb/maven/config.yaml
@@ -7,10 +7,11 @@
jobs:
- 'config-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'config-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/dhcpl2relay.yaml b/jjb/maven/dhcpl2relay.yaml
index 93c3648..1f3ed0a 100644
--- a/jjb/maven/dhcpl2relay.yaml
+++ b/jjb/maven/dhcpl2relay.yaml
@@ -7,10 +7,11 @@
jobs:
- 'dhcpl2relay-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'dhcpl2relay-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/igmp.yaml b/jjb/maven/igmp.yaml
index 438e78b..4e59cb7 100644
--- a/jjb/maven/igmp.yaml
+++ b/jjb/maven/igmp.yaml
@@ -7,10 +7,11 @@
jobs:
- 'igmp-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'igmp-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/igmpproxy.yaml b/jjb/maven/igmpproxy.yaml
index 855c809..5e88bb2 100644
--- a/jjb/maven/igmpproxy.yaml
+++ b/jjb/maven/igmpproxy.yaml
@@ -7,10 +7,11 @@
jobs:
- 'igmpproxy-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'igmpproxy-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/kafka-onos.yaml b/jjb/maven/kafka-onos.yaml
index 2736186..cfc438d 100644
--- a/jjb/maven/kafka-onos.yaml
+++ b/jjb/maven/kafka-onos.yaml
@@ -7,10 +7,11 @@
jobs:
- 'kafka-onos-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'kafka-onos-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/mcast.yaml b/jjb/maven/mcast.yaml
index 4ed1433..60874bb 100644
--- a/jjb/maven/mcast.yaml
+++ b/jjb/maven/mcast.yaml
@@ -7,10 +7,11 @@
jobs:
- 'mcast-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'mcast-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/olt.yaml b/jjb/maven/olt.yaml
index cc8da23..38ae126 100644
--- a/jjb/maven/olt.yaml
+++ b/jjb/maven/olt.yaml
@@ -7,10 +7,11 @@
jobs:
- 'olt-gerrit':
- branch-regexp: '^(master|{name}-.*)$'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'olt-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/sadis.yaml b/jjb/maven/sadis.yaml
index 9b4dff4..2058847 100644
--- a/jjb/maven/sadis.yaml
+++ b/jjb/maven/sadis.yaml
@@ -7,10 +7,11 @@
jobs:
- 'sadis-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'sadis-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'
diff --git a/jjb/maven/vtn.yaml b/jjb/maven/vtn.yaml
index c7ceee3..8afe595 100644
--- a/jjb/maven/vtn.yaml
+++ b/jjb/maven/vtn.yaml
@@ -7,10 +7,11 @@
jobs:
- 'vtn-gerrit':
- branch-regexp: '{supported-branches-regexp}'
+ branch-regexp: '^(.*)$'
- job-group:
name: 'vtn-gerrit'
jobs:
- 'verify-licensed'
- 'maven-install'
+ - 'maven-deploy'