diff options
-rw-r--r-- | jjb/global-macros.yaml | 6 | ||||
-rw-r--r-- | jjb/global-templates-java.yaml | 66 |
2 files changed, 72 insertions, 0 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index efc0d095b..d69e918ba 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -66,6 +66,12 @@ 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 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 |