summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-java.yaml
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2017-05-31 16:27:48 -0700
committerJessica Wagantall <jwagantall@linuxfoundation.org>2017-06-06 10:14:14 -0700
commit7a37aa2c9e37fa0438a0efedac6555a4ffb2d655 (patch)
tree0473e46190638805ab66f31bc7ad1e0d301c0022 /jjb/global-templates-java.yaml
parent7aceac5bdb83e1383b9d49e6055fc754f2e7a069 (diff)
CLM: Added CLM scanner job template
This template will be used in jenkins per project to perform code scans in nexus-iq server Issue: RELENG-150 Change-Id: I93f7209c752748abcf1314ba3dfd2a1e112dc639 Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Diffstat (limited to 'jjb/global-templates-java.yaml')
-rw-r--r--jjb/global-templates-java.yaml66
1 files changed, 66 insertions, 0 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index 3326082e6..029d98ac4 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -1,5 +1,71 @@
---
- job-template:
+ # Template used for running CLM scans
+ # Arguements:
+ # {name} - Project Shortname
+ # {project} - Fully qualified project name
+ # {mvn-settings} - Project maven settings file
+ # {jdk}
+ name: '{project-name}-{stream}-clm'
+
+ project-type: freestyle
+ node: '{build-node}'
+ jdk: '{jdk}'
+
+ 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}'
+
+ scm:
+ - git-scm:
+ refspec: ''
+ branch: '{branch}'
+
+ wrappers:
+ - infra-wrappers:
+ build-timeout: '{build-timeout}'
+
+ triggers:
+ - timed: 'H H * * 6'
+
+ builders:
+ - provide-maven-settings:
+ global-settings-file: 'global-settings'
+ settings-file: '{mvn-settings}'
+ - maven-target:
+ maven-version: 'mvn33'
+ 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
+ java-opts:
+ - '-Xmx4096m -XX:MaxPermSize=512m'
+ settings: '{mvn-settings}'
+ settings-type: cfp
+ global-settings: 'global-settings'
+ global-settings-type: cfp
+ - shell: 'find . -regex ".*karaf/target" | xargs rm -rf'
+ - check-clm:
+ application-name: '{project-name}'
+
+ publishers:
+ - infra-shiplogs:
+ maven-version: '{maven-version}'
+
+- job-template:
# Job template for Java verify jobs
#
# The purpose of this job template is to run "maven clean install" for