diff options
author | 2017-02-17 01:08:38 -0800 | |
---|---|---|
committer | 2017-02-17 01:12:39 -0800 | |
commit | 5641aa0e927b24bbe0706fcf0d97d3fb34063c39 (patch) | |
tree | 015f2861e37a7cc5f4173ee911e27000134e4e1a /jjb | |
parent | 41fbc3dca4141daff878b3aa47c79db4afcf6a16 (diff) |
Moving version plugin to specific template
Change-Id: I27b63bb2851f19f54450901534db3a54006fc255
Signed-off-by: JulienBe <jb379x@att.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/global-templates-java.yaml | 56 | ||||
-rw-r--r-- | jjb/mso/mso-libs.yaml | 2 | ||||
-rw-r--r-- | jjb/mso/mso.yaml | 2 |
3 files changed, 58 insertions, 2 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index b88567f1d..27c973109 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -226,6 +226,62 @@ global-settings-file: 'global-settings' settings-file: '{mvn-settings}' + - maven-target: + maven-version: 'mvn33' + goals: 'clean deploy sonar:sonar -Dsonar.host.url=https://sonar.openecomp.org' + properties: + - '{maven-deploy-properties}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + +- 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-java-daily' + + project-type: freestyle + node: '{build-node}' + maven-deploy-properties: + properties: + - ecomp-infra-properties: + build-days-to-keep: '{build-days-to-keep}' + + parameters: + - ecomp-infra-parameters: + project: '{project}' + branch: '{branch}' + refspec: 'refs/heads/{branch}' + artifacts: '{archive-artifacts}' + + scm: + - gerrit-trigger-scm: + refspec: '' + choosing-strategy: 'default' + + wrappers: + - ecomp-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: diff --git a/jjb/mso/mso-libs.yaml b/jjb/mso/mso-libs.yaml index 99c25d425..e44632a11 100644 --- a/jjb/mso/mso-libs.yaml +++ b/jjb/mso/mso-libs.yaml @@ -5,7 +5,7 @@ jobs: - '{project-name}-{stream}-verify-java' - '{project-name}-{stream}-merge-java' - - '{project-name}-{stream}-release-java-daily' + - '{project-name}-{stream}-release-version-java-daily' project: 'mso/libs' stream: diff --git a/jjb/mso/mso.yaml b/jjb/mso/mso.yaml index 2628fecb1..ae78a4d82 100644 --- a/jjb/mso/mso.yaml +++ b/jjb/mso/mso.yaml @@ -6,7 +6,7 @@ jobs: - '{project-name}-{stream}-verify-java' - '{project-name}-{stream}-merge-java' - - '{project-name}-{stream}-release-java-daily' + - '{project-name}-{stream}-release-version-java-daily' - '{project-name}-{stream}-docker-java-daily': docker-pom: 'pom.xml' mvn-profile: 'docker' |