summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2018-08-06 16:42:21 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-08-06 17:38:58 -0700
commit5918acd57d29be5077a1fdf1597dff1c66279f89 (patch)
treee702764f9d8433417ae3e7b679a2143066caf949
parent8992eebb090df51eae3ff1ddaf504714b4cd324b (diff)
Refactor java verify jobs
Change-Id: Iecf1891cfa85d056f62fc8b842a901da1de0dee1 Issue-ID: CIMAN-187 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
-rw-r--r--jjb/dcaegen2/apod-analytics.yaml7
-rw-r--r--jjb/global-templates-java.yaml129
-rw-r--r--jjb/sdnc/sdnc-plugins.yaml3
-rw-r--r--jjb/vfc/vfc-nfvo-driver-vnfm-svnfm-root.yaml4
4 files changed, 10 insertions, 133 deletions
diff --git a/jjb/dcaegen2/apod-analytics.yaml b/jjb/dcaegen2/apod-analytics.yaml
index c11a28d4a..3b9881234 100644
--- a/jjb/dcaegen2/apod-analytics.yaml
+++ b/jjb/dcaegen2/apod-analytics.yaml
@@ -20,10 +20,9 @@
jobs:
- gerrit-maven-clm
- '{project-name}-{stream}-release-version-java-daily'
- - '{project-name}-{stream}-verify-java-skip-tests':
- mvn-goals: 'clean install'
- - '{project-name}-{stream}-merge-java':
- mvn-goals: 'clean deploy'
+ - '{project-name}-{stream}-verify-java':
+ mvn-params: '-DskipTests=true'
+ - '{project-name}-{stream}-merge-java'
- project:
name: dcaegen2-analytics-tca-sonar
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index ad7fe533d..03653d853 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -3,70 +3,6 @@
# Job template for Java verify jobs
#
# The purpose of this job template is to run:
- # 1. maven clean install -DskipTests=true
- #
- # Required Variables:
- # branch: git branch (eg. stable/lithium or master)
-
- name: '{project-name}-{stream}-verify-java-skip-tests'
-
- project-type: freestyle
- concurrent: true
- node: '{build-node}'
-
- properties:
- - infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
-
- parameters:
- - infra-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
- - maven-exec:
- maven-version: '{maven-version}'
-
- scm:
- - gerrit-trigger-scm:
- refspec: '$GERRIT_REFSPEC'
- choosing-strategy: 'gerrit'
- submodule-recursive: '{submodule-recursive}'
-
- wrappers:
- - infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - gerrit-trigger-patch-submitted:
- server: '{server-name}'
- project: '{project}'
- branch: '{branch}'
- files: '**'
-
- builders:
- - provide-maven-settings:
- global-settings-file: 'global-settings'
- settings-file: '{mvn-settings}'
- - maven-target:
- maven-version: '{maven-version}'
- goals: 'clean install -DskipTests=true -B
- -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
- settings: '{mvn-settings}'
- settings-type: cfp
- global-settings: 'global-settings'
- global-settings-type: cfp
- maven-opts:
- - maven.test.skip=true
-
- publishers:
- - infra-shiplogs:
- maven-version: '{maven-version}'
-
-- job-template:
- # Job template for Java verify jobs
- #
- # The purpose of this job template is to run:
# 1. maven clean install
#
# Required Variables:
@@ -77,6 +13,7 @@
project-type: freestyle
concurrent: true
node: '{build-node}'
+ pattern: '**'
properties:
- infra-properties:
@@ -108,7 +45,7 @@
server: '{server-name}'
project: '{project}'
branch: '{branch}'
- files: '**'
+ files: '{obj:pattern}'
builders:
- provide-maven-settings:
@@ -189,68 +126,6 @@
- checkstyle-result
- job-template:
- # Job template for Java verify jobs that takes a maven template
- #
- # The purpose of this job template is to run:
- # 1. maven clean install -P {mvn-profile}
- #
- # Required Variables:
- # branch: git branch (eg. stable/lithium or master)
-
- name: '{project-name}-{stream}-verify-profile-java'
-
- project-type: freestyle
- concurrent: true
- node: '{build-node}'
-
- properties:
- - infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
-
- parameters:
- - infra-parameters:
- project: '{project}'
- branch: '{branch}'
- refspec: 'refs/heads/{branch}'
- artifacts: '{archive-artifacts}'
- - maven-exec:
- maven-version: '{maven-version}'
-
- scm:
- - gerrit-trigger-scm:
- refspec: '$GERRIT_REFSPEC'
- choosing-strategy: 'gerrit'
- submodule-recursive: '{submodule-recursive}'
-
- wrappers:
- - infra-wrappers:
- build-timeout: '{build-timeout}'
-
- triggers:
- - gerrit-trigger-patch-submitted:
- server: '{server-name}'
- project: '{project}'
- branch: '{branch}'
- files: '{files}'
-
- builders:
- - provide-maven-settings:
- global-settings-file: 'global-settings'
- settings-file: '{mvn-settings}'
- - maven-target:
- maven-version: '{maven-version}'
- goals: 'clean install -P {mvn-profile} -B
- -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn'
- settings: '{mvn-settings}'
- settings-type: cfp
- global-settings: 'global-settings'
- global-settings-type: cfp
-
- publishers:
- - infra-shiplogs:
- maven-version: '{maven-version}'
-
-- job-template:
# Job template for Java verify jobs with POM not at the root
#
# The purpose of this job template is to run:
diff --git a/jjb/sdnc/sdnc-plugins.yaml b/jjb/sdnc/sdnc-plugins.yaml
index 633a9cd11..551b79df5 100644
--- a/jjb/sdnc/sdnc-plugins.yaml
+++ b/jjb/sdnc/sdnc-plugins.yaml
@@ -4,7 +4,8 @@
project-name: 'sdnc-plugins'
jobs:
- gerrit-maven-clm
- - '{project-name}-{stream}-verify-java-skip-tests'
+ - '{project-name}-{stream}-verify-java':
+ mvn-params: '-DskipTests=true'
- '{project-name}-{stream}-merge-java'
- '{project-name}-{stream}-release-version-java-daily'
diff --git a/jjb/vfc/vfc-nfvo-driver-vnfm-svnfm-root.yaml b/jjb/vfc/vfc-nfvo-driver-vnfm-svnfm-root.yaml
index b8ba2d611..22df5d22a 100644
--- a/jjb/vfc/vfc-nfvo-driver-vnfm-svnfm-root.yaml
+++ b/jjb/vfc/vfc-nfvo-driver-vnfm-svnfm-root.yaml
@@ -9,7 +9,9 @@
mvn-settings: 'vfc-nfvo-driver-vnfm-svnfm-settings'
mvn-profile: rootOnly
jobs:
- - '{project-name}-{stream}-verify-profile-java'
+ - '{project-name}-{stream}-verify-java':
+ mvn-params: '-P rootOnly'
+ pattern: 'pom.xml'
- '{project-name}-{stream}-merge-profile-java':
build-node: ubuntu1604-docker-8c-8g
- '{project-name}-{stream}-release-version-profile-java-daily'