summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-05-23 12:23:16 -0400
committerPamela Dragosh <pdragosh@research.att.com>2017-05-23 12:23:23 -0400
commit55ceb8fde35167910041fdd5b5ca985dae524cb9 (patch)
tree3f985e4149a0ffd19895c755ea0dadc29a0ba77d /jjb
parent644fd5279a34c8c3fb36f0129fc6cefd28ea04b1 (diff)
add no-sonar release template
Change-Id: If3469caf0403159b364d4edf1064d432c76e1b9c Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'jjb')
-rw-r--r--jjb/global-templates-java.yaml75
-rw-r--r--jjb/policy/policy-common.yaml17
-rw-r--r--jjb/policy/policy-drools-applications.yaml16
-rw-r--r--jjb/policy/policy-drools-pdp.yaml16
-rw-r--r--jjb/policy/policy-engine.yaml17
5 files changed, 141 insertions, 0 deletions
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index 52e0c3a57..3326082e6 100644
--- a/jjb/global-templates-java.yaml
+++ b/jjb/global-templates-java.yaml
@@ -320,6 +320,81 @@
#
# Required Variables:
# branch: git branch (eg. stable/lithium or master)
+ name: '{project-name}-{stream}-release-version-java-daily-no-sonar'
+
+ 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'
+
+ 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'
+ 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 -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
+ #
+ # 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
diff --git a/jjb/policy/policy-common.yaml b/jjb/policy/policy-common.yaml
index bcf831ea4..4ff5d83b4 100644
--- a/jjb/policy/policy-common.yaml
+++ b/jjb/policy/policy-common.yaml
@@ -14,6 +14,23 @@
stream:
- 'master':
branch: 'master'
+ mvn-settings: 'policy-common-settings'
+ files: '**'
+ archive-artifacts: ''
+ build-node: ubuntu1604-basebuild-4c-4g
+- project:
+ name: policy-common-release-1.0.0
+ project-name: 'policy-common'
+ jobs:
+ - '{project-name}-{stream}-verify-java-skip-tests'
+ - '{project-name}-{stream}-merge-java'
+ - '{project-name}-{stream}-release-version-java-daily-no-sonar'
+ - '{project-name}-{stream}-stage-site-java':
+ site-pom: 'pom.xml'
+ trigger-job: '{project-name}-{stream}-release-version-java-daily'
+
+ project: 'policy/common'
+ stream:
- 'release-1.0.0':
branch: 'release-1.0.0'
mvn-settings: 'policy-common-settings'
diff --git a/jjb/policy/policy-drools-applications.yaml b/jjb/policy/policy-drools-applications.yaml
index 2dcb42920..7c20ab85a 100644
--- a/jjb/policy/policy-drools-applications.yaml
+++ b/jjb/policy/policy-drools-applications.yaml
@@ -14,6 +14,22 @@
stream:
- 'master':
branch: 'master'
+ mvn-settings: 'policy-drools-applications-settings'
+ files: '**'
+ archive-artifacts: ''
+- project:
+ name: policy-drools-applications-release-1.0.0
+ project-name: 'policy-drools-applications'
+ jobs:
+ - '{project-name}-{stream}-verify-java'
+ - '{project-name}-{stream}-merge-java'
+ - '{project-name}-{stream}-release-version-java-daily-no-sonar'
+ - '{project-name}-{stream}-stage-site-java':
+ site-pom: 'pom.xml'
+ trigger-job: '{project-name}-{stream}-release-version-java-daily'
+
+ project: 'policy/drools-applications'
+ stream:
- 'release-1.0.0':
branch: 'release-1.0.0'
mvn-settings: 'policy-drools-applications-settings'
diff --git a/jjb/policy/policy-drools-pdp.yaml b/jjb/policy/policy-drools-pdp.yaml
index ca38ee3ab..73065ba2e 100644
--- a/jjb/policy/policy-drools-pdp.yaml
+++ b/jjb/policy/policy-drools-pdp.yaml
@@ -14,6 +14,22 @@
stream:
- 'master':
branch: 'master'
+ mvn-settings: 'policy-drools-pdp-settings'
+ files: '**'
+ archive-artifacts: ''
+- project:
+ name: policy-drools-pdp-release-1.0.0
+ project-name: 'policy-drools-pdp'
+ jobs:
+ - '{project-name}-{stream}-verify-java'
+ - '{project-name}-{stream}-merge-java'
+ - '{project-name}-{stream}-release-version-java-daily-no-sonar'
+ - '{project-name}-{stream}-stage-site-java':
+ site-pom: 'pom.xml'
+ trigger-job: '{project-name}-{stream}-release-version-java-daily'
+
+ project: 'policy/drools-pdp'
+ stream:
- 'release-1.0.0':
branch: 'release-1.0.0'
mvn-settings: 'policy-drools-pdp-settings'
diff --git a/jjb/policy/policy-engine.yaml b/jjb/policy/policy-engine.yaml
index 0dbb83b95..49b87712e 100644
--- a/jjb/policy/policy-engine.yaml
+++ b/jjb/policy/policy-engine.yaml
@@ -15,6 +15,23 @@
stream:
- 'master':
branch: 'master'
+ mvn-settings: 'policy-engine-settings'
+ files: '**'
+ archive-artifacts: ''
+- project:
+ name: policy-engine-release-1.0.0
+ project-name: 'policy-engine'
+ jobs:
+ - '{project-name}-{stream}-verify-java'
+ - '{project-name}-{stream}-merge-java'
+ - '{project-name}-{stream}-release-version-java-daily-no-sonar'
+ - '{project-name}-{stream}-stage-site-java':
+ build-node: 'ubuntu1604-basebuild-4c-4g'
+ site-pom: 'pom.xml'
+ trigger-job: '{project-name}-{stream}-release-version-java-daily'
+
+ project: 'policy/engine'
+ stream:
- 'release-1.0.0':
branch: 'release-1.0.0'
mvn-settings: 'policy-engine-settings'