add no-sonar release template
Change-Id: If3469caf0403159b364d4edf1064d432c76e1b9c
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml
index 52e0c3a..3326082 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 bcf831e..4ff5d83 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 2dcb429..7c20ab8 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 ca38ee3..73065ba 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 0dbb83b..49b8771 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'