diff options
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/global-macros.yaml | 10 | ||||
-rw-r--r-- | jjb/global-templates-java.yaml | 55 | ||||
-rw-r--r-- | jjb/mso/mso.yaml | 3 |
3 files changed, 68 insertions, 0 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index 46c4d827f..ad0992c20 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -338,6 +338,16 @@ - compare-type: 'ANT' pattern: '**' +- trigger: + name: trigger-on-build-success + triggers: + - build-result: + groups: + - jobs: + - '{job-name}' + results: + - success + # WRAPPERS - wrapper: name: build-timeout diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index 549fbd58f..37bf58512 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -945,3 +945,58 @@ settings-type: cfp global-settings: 'global-settings' global-settings-type: cfp + +- job-template: + # Template for maven site plugin invocation + # + # It's designed to be triggered when the trigger-job job + # succeeds as there's no need for new documentaiton + # if the build job fails. + # + # Those parameters should be set : + # - site-pom : the pom file that contains the site confiration + # - trigger-job : the name of the project that triggers this job + # upon success. The job name can be + # parameterized. + name: '{project-name}-{stream}-stage-site-java' + project-type: freestyle + + 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}' + - maven-exec: + maven-version: '{maven-version}' + + scm: + - gerrit-trigger-scm: + refspec: '' + choosing-strategy: 'default' + + wrappers: + - ecomp-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - trigger-on-build-success: + job-name: '{trigger-job}' + + builders: + - provide-maven-settings: + global-settings-file: 'global-settings' + settings-file: '{mvn-settings}' + + - maven-target: + maven-version: '{maven-version}' + pom: '${site-pom}' + goals: 'clean site:stage-deploy' + settings: '{mvn-settings}' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp diff --git a/jjb/mso/mso.yaml b/jjb/mso/mso.yaml index b577194b7..8c4db3ec6 100644 --- a/jjb/mso/mso.yaml +++ b/jjb/mso/mso.yaml @@ -11,6 +11,9 @@ docker-pom: 'pom.xml' mvn-profile: 'docker' - '{project-name}-docker-image-blessing' + - '{project-name}-{stream}-stage-site-java': + site-pom: 'pom.xml' + trigger-job: '{project-name}-{stream}-release-version-java-daily' project: 'mso' stream: |