diff options
author | 2017-02-02 14:51:09 +0000 | |
---|---|---|
committer | 2017-02-02 14:51:09 +0000 | |
commit | 31c6d8951656c52286cd4217988529910bb14307 (patch) | |
tree | a11e5fc3495c2ce1c385eacf45a39054139f4c69 /jjb | |
parent | 54f23e3794287656af46319ec207e12b30beb51e (diff) | |
parent | 2f4ee077b93e1179423f26ad4b292b728e2dad9c (diff) |
Merge "Creation of the daily autorelease for mso-libs"
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/global-templates-java.yaml | 63 | ||||
-rw-r--r-- | jjb/mso/mso-libs.yaml | 2 |
2 files changed, 65 insertions, 0 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 4c77aef54..1d8b9a9b9 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -120,6 +120,69 @@ # maven-version: 'mvn33' - 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-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 * * *' + + builders: + - provide-maven-settings: + global-settings-file: 'global-settings' + settings-file: '{mvn-settings}' + + - inject: + properties-file: version.properties + - maven-target: + maven-version: 'mvn33' + goals: 'versions:set versions:update-child-modules versions:commit' + properties: + - 'newVersion=${{release_version}}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + + - maven-target: + maven-version: 'mvn33' + goals: 'clean deploy' + properties: '{maven-deploy-properties}' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + +- job-template: # Job template for Java merge jobs # # The purpose of this job template is to run "maven clean deploy" for diff --git a/jjb/mso/mso-libs.yaml b/jjb/mso/mso-libs.yaml index de7b6844c..3a43a669d 100644 --- a/jjb/mso/mso-libs.yaml +++ b/jjb/mso/mso-libs.yaml @@ -5,11 +5,13 @@ jobs: - '{project-name}-{stream}-verify-java' - '{project-name}-{stream}-merge-java' + - '{project-name}-{stream}-release-java-daily' project: 'mso/libs' stream: - 'master': branch: 'master' mvn-settings: 'mso-settings' + maven-deploy-properties: 'deployAtEnd=true' files: '**' archive-artifacts: '' |