summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-java.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/global-templates-java.yaml')
-rw-r--r--jjb/global-templates-java.yaml78
1 files changed, 17 insertions, 61 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index db06431ab..c8d566500 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -1,65 +1,5 @@
---
- 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: 30
-
- 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
- {onap-infra-mvn-opts}
- 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'
- - sonatype-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
@@ -1518,6 +1458,22 @@
- provide-maven-settings:
global-settings-file: 'global-settings'
settings-file: '{mvn-settings}'
+ - conditional-step:
+ condition-kind: regex-match
+ regex: DoSetVersion
+ label: '{setVersion}'
+ steps:
+ - inject:
+ properties-file: version.properties
+ - maven-target:
+ maven-version: '{maven-version}'
+ goals: 'versions:set versions:update-child-modules versions:commit -B'
+ properties:
+ - 'newVersion=${{release_version}}'
+ settings: '{mvn-settings}'
+ settings-type: cfp
+ global-settings: 'global-settings'
+ global-settings-type: cfp
- docker-login
- maven-docker-push-daily:
maven-version: '{maven-version}'
@@ -2333,7 +2289,7 @@
- maven-target:
maven-version: '{maven-version}'
pom: '{site-pom}'
- goals: 'clean site:site site:stage-deploy'
+ goals: 'clean site:site site:stage-deploy -B'
settings: '{mvn-settings}'
settings-type: cfp
global-settings: 'global-settings'