From 98a82bd6763343644130e6a8a2aa70ba4a12533a Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Tue, 6 Jun 2017 11:02:26 -0700 Subject: CLM: Update CLM scanner job template - Remove check-clm global macro - Isolate mvn goals in a separate variable - Update build-days-to-keep Issue: RELENG-150 Change-Id: I153cacbaef288ee8fbb1498b958b31d5457663f1 Signed-off-by: Jessica Wagantall --- jjb/global-defaults.yaml | 10 ++++++++++ jjb/global-macros.yaml | 6 ------ jjb/global-templates-java.yaml | 12 +++--------- 3 files changed, 13 insertions(+), 15 deletions(-) (limited to 'jjb') diff --git a/jjb/global-defaults.yaml b/jjb/global-defaults.yaml index 5e5bafd6b..aaeec9b1d 100644 --- a/jjb/global-defaults.yaml +++ b/jjb/global-defaults.yaml @@ -14,6 +14,16 @@ # default gerrit server definition server-name: 'Primary' + # Maven / Java + jdk: 'openjdk8' + onap-infra-mvn-opts: | + --show-version + --batch-mode + -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + -Djenkins + -Dmaven.repo.local=/tmp/r + -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r + # Timeout in minutes build-timeout: 360 build-node: ubuntu1604-basebuild-2c-1g diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index d69e918ba..efc0d095b 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -66,12 +66,6 @@ builders: - shell: !include-raw: include-docker-login.sh -- builder: - name: check-clm - builders: - - sonatype-clm: - application-name: '{application-name}' - # PARAMETERS - parameter: name: infra-parameters diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 029d98ac4..385bd6aa6 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -14,7 +14,7 @@ properties: - infra-properties: - build-days-to-keep: '{build-days-to-keep}' + build-days-to-keep: 30 parameters: - infra-parameters: @@ -44,13 +44,7 @@ pom: 'pom.xml' goals: | clean install dependency:tree com.sonatype.clm:clm-maven-plugin:index - -Pq - --show-version - --batch-mode - -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - -Djenkins - -Dmaven.repo.local=/tmp/r - -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r + {onap-infra-mvn-opts} java-opts: - '-Xmx4096m -XX:MaxPermSize=512m' settings: '{mvn-settings}' @@ -58,7 +52,7 @@ global-settings: 'global-settings' global-settings-type: cfp - shell: 'find . -regex ".*karaf/target" | xargs rm -rf' - - check-clm: + - sonatype-clm: application-name: '{project-name}' publishers: -- cgit 1.2.3-korg