summaryrefslogtreecommitdiffstats
path: root/jjb/global-templates-java.yaml
diff options
context:
space:
mode:
authorAnaël Closson <ac2550@intl.att.com>2017-03-10 15:39:09 +0100
committerAnaël Closson <ac2550@intl.att.com>2017-03-10 18:09:55 +0100
commitadcb39da84bf10dd4adc5ca7b664c491a38411c2 (patch)
treebff599975486ab7b14d526c68458ff8992676696 /jjb/global-templates-java.yaml
parenta781533e82b16a596653b0147ba15831f939920e (diff)
New template and mso job for maven site staging
Change-Id: I83f431355970c48e126289c04f7c908921b7de63 Signed-off-by: Anaël Closson <ac2550@intl.att.com>
Diffstat (limited to 'jjb/global-templates-java.yaml')
-rw-r--r--jjb/global-templates-java.yaml55
1 files changed, 55 insertions, 0 deletions
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