diff options
author | 2017-09-28 18:44:18 +0200 | |
---|---|---|
committer | 2017-09-28 20:20:59 +0200 | |
commit | 645951d221a46cbf3ec93c8a2b4e0b103e08d37e (patch) | |
tree | a60deb956954f7e8eb122297923e6a39dca50fa3 /jjb/global-templates-java.yaml | |
parent | 046d5f03c2b65cabb302eadbeaf948a64f5363bb (diff) |
Add integration-tests to sonar for so
add new template for this purpose
Template allows to pass a maven profile
Change-Id: I984d836bd053065d3d10b726aaca9851c2132fe7
Issue-ID: SO-168
Signed-off-by: JulienBe <jb379x@att.com>
Diffstat (limited to 'jjb/global-templates-java.yaml')
-rw-r--r-- | jjb/global-templates-java.yaml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 2c82db479..9cee53c8c 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -805,6 +805,83 @@ maven-version: '{maven-version}' - job-template: + # Job template for Java daily release jobs + # + # The purpose of this job template is to run "maven version && maven clean + # deploy" for projects using this template. + # + # Required Variables: + # branch: git branch (eg. stable/lithium or master) + name: '{project-name}-{stream}-release-version-profile-java-daily' + + project-type: freestyle + node: '{build-node}' + maven-deploy-properties: + 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: '' + choosing-strategy: 'default' + submodule-recursive: '{submodule-recursive}' + + wrappers: + - infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + # 11 AM UTC + - timed: 'H 11 * * *' + - gerrit-trigger-release-manually: + server: '{server-name}' + project: '{project}' + branch: '{branch}' + + builders: + - provide-maven-settings: + global-settings-file: 'global-settings' + settings-file: '{mvn-settings}' + + - 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 + + - maven-target: + maven-version: '{maven-version}' + goals: 'clean deploy sonar:sonar -P {mvn-profile} -Dsonar.host.url=${{SONAR}} -B + -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' + properties: + - '{maven-deploy-properties}' + 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 daily release jobs with POM not at the root # # The purpose of this job template is to run "maven version && maven clean |